Any updates with Markdoc

Any updates with Markdoc

by Zlatan Coralic -
Number of replies: 7

Anyone having issue with markdoc producing a docx or pdf with all the graphs? At this time the do file just produces docx or pdf with code, without the actual images of graphs. 

Any updates appreciated. 

Thanks. 


In reply to Zlatan Coralic

Re: Any updates with Markdoc

by Elizabeth -

I had a similar problem in the previous homeworks as well.

There was a command prompt screen that popped up and I noticed that it was looking for the image in a temp folder, but the .do file creates the image in the working directory folder. For that homework I transferred the images from my working directory to the file path appearing in the command prompt screen then rerun the .do file. That solved my problem then. I haven't tried it again now cause I could not get the directory fast enough from the command prompt screen.

In reply to Zlatan Coralic

Re: Any updates with Markdoc

by Shokoufeh -

I was able to resolve this by putting in command img after each graph I wanted to publish in the markdoc file. i.e. 

scatter weight bmi

img



In reply to Zlatan Coralic

Re: Any updates with Markdoc

by Kristen -

Hi Zlatan and Maria, 


Are you accessing Stata via MyResearch? 


Did the histogram image appear in the pdf or docX when you ran markdoc, test ?


In reply to Kristen

Re: Any updates with Markdoc

by Zlatan Coralic -

I am using STATA 15 standalone desktop version. 


One histogram did appear. I submitted the markdoc as HW. 


Thanks!

In reply to Zlatan Coralic

Re: Any updates with Markdoc

by Kristen -

Send your .do file to me and I'll see if i debug it. 

In reply to Kristen

Re: Any updates with Markdoc

by Elizabeth -

Hi Kristen,

I am using the standalone stata on my personal laptop. I followed Shokoufeh's suggestion of typing the img and got all my graphs into the docx file.

I've submitted the homework as well.


Thank you.

In reply to Zlatan Coralic

Re: Any updates with Markdoc

by Kristen -

I wanted to post an update that we resolved this issue. 


Remember to include the img command after each plot/graph you want to include in your MarkDoc document. For example: 


histogram bpsystol, frequency normal bin(15) scheme(s2mono)

img