Skip to content

Commit

Permalink
enable embedimage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemken committed Oct 2, 2019
1 parent 17e9b97 commit 3d12fd5
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Examples/stmd individual download and setup.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
net describe stmd, from("https://www.ssc.wisc.edu/~hemken/Stataworkshops")

net install stmd
net get stmd

run stmd_menu_setup.do
15 changes: 15 additions & 0 deletions Examples/stmd to various.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cd "y:/hemken"

doedit example0.stmd

stmd example0.stmd

stmd example0.stmd, docx

stmd example0.stmd, pdf

stmd example0.stmd, saving(example0_emb.html) replace embedimage

stmd2dyn example0.stmd

dyndoc example0.dyn, saving(example0.emb.html) embedimage
22 changes: 21 additions & 1 deletion stmd.ado
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*! version 1.7.1
*! Doug Hemken
*! 30 Sep 2019
*! 2 Oct 2019

// ISSUES
// ======
Expand Down Expand Up @@ -106,3 +106,23 @@ display in error "target file can not be the same as the source file"


end

mata:
void _getfileextension(string scalar path,
string scalar loc)
{
string scalar p
p = strtrim(strlower(pathsuffix(path)))
st_local(loc, p)
}
void _getpathparent( string scalar path,
string scalar loc)
{
string scalar p
p = pathgetparent(path)
st_local(loc, p)
}
end
Binary file modified stmd.stpr
Binary file not shown.
6 changes: 3 additions & 3 deletions stmd2dyn.ado
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*! version 1.7
*! version 1.7.1
*! Doug Hemken
*! 28 Sep 2019
*! 2 Oct 2019

// ISSUES
// ======
Expand Down Expand Up @@ -223,7 +223,7 @@ string colvector function _gr_link() {
`"local checkdate = "\`r(command_date)' \`r(command_time)'" "' \
`"<</dd_do>>"' \
`"<<dd_skip_if: ="\`\`gdate''"~="" & "\`\`gdate''"=="\`checkdate'">>"' \
`"<<dd_graph>>"' \
`"<<dd_graph: png markdown>>"' \
`"<<dd_skip_end>>"' \
`"<<dd_do: quietly>>"' \
`"local \`gdate' = "\`r(command_date)' \`r(command_time)'""' \
Expand Down
2 changes: 1 addition & 1 deletion update stmd package files.do
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* update stmd package files

cd "Z:/Stata/stmd"
local destpath "Z:/PUBLIC_Web/Stataworkshops/stmd"

copy stmd.ado `destpath'/stmd.ado, replace
Expand Down

0 comments on commit 3d12fd5

Please sign in to comment.