Dear All,
I've problem using dynamic path on markdoc. What I want to do is generate graphs in a loop, save them as an eps file and put them in a .docx generated by Markdoc.
Here is my code :
However, the markdoc is breaking inside the loop. I've attached the log file to the post.
I'm using Mac OS 10.9.5 with Stata/SE 14.1
I'd rather not use the `img` command since I'm using Stata inside Emacs (in which this command is not working).
I'd be grateful of any help.
Best,
Louis
I've problem using dynamic path on markdoc. What I want to do is generate graphs in a loop, save them as an eps file and put them in a .docx generated by Markdoc.
Here is my code :
Code:
capture log close
qui log using test_markdoc, replace smcl
sysuse auto.dta
graph box price
graph export box_price.eps, replace
/***

***/
/***
Testing dynamic path
***/
foreach var in price weight {
graph box `var'
graph export box_`var'.eps, replace
txt 
}
qui log c
markdoc test_markdoc, replace export(docx) install
I'm using Mac OS 10.9.5 with Stata/SE 14.1
I'd rather not use the `img` command since I'm using Stata inside Emacs (in which this command is not working).
I'd be grateful of any help.
Best,
Louis

Comment