Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to include comments in the generated report #30

Open
mronkko opened this issue Jan 27, 2021 · 3 comments
Open

Add options to include comments in the generated report #30

mronkko opened this issue Jan 27, 2021 · 3 comments

Comments

@mronkko
Copy link
Contributor

mronkko commented Jan 27, 2021

I am using markdoc on my course where we learn statistical research methods using Stata. As a part of the course, the students produce a do-file that answers a research question that I give the students. Then the students export the log of the analysis file to a word document and write their interpretation.

I just realized that markdoc does not include the comments in the do file in the output. I understand that this is useful when the purpose is to generate reports. However, for my use case it would be useful to add an option that would print the comments just as they appear in Stata into the word document. This would allow me to check not also how the students interpreted the results by writing in Word, but how they documented that Stata do-file itself. I am not looking for any fancy formatting, but just printing the comments as if they were Stata commands that did not produce any output. I hope that this comment makes sense.

@haghish
Copy link
Owner

haghish commented Jan 31, 2021

Hi Mikko,

Actually there are other programs you can use for that purpose, which basically run a do file and preserve the comments.

MarkDoc's engine is written to basically ignore regular comments. It is possible to change it and make that behavior optional, but I am afraid it will take a lot of time to ensure no bug is occurring again as the current version seems to be quite stable.

@mronkko
Copy link
Contributor Author

mronkko commented Jan 31, 2021

Interesting. When I was choosing a report generation software a few years ago, MarkDoc seemed to be the only one. What other software are there? I would need to get the Stata log including commands, comments, and output and all the figures that are produced as a word document. MarkDoc is nearly perfect solution for this task.

@haghish
Copy link
Owner

haghish commented Jan 31, 2021

I was about to say log2html but actually, I am not certain if that program preserves the comments...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants