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

Compiling as pdf #1

Closed
roblem opened this issue Sep 2, 2019 · 3 comments
Closed

Compiling as pdf #1

roblem opened this issue Sep 2, 2019 · 3 comments

Comments

@roblem
Copy link

roblem commented Sep 2, 2019

On Linux and Stata 15, have a working latex distribution (and pandoc) and commands like

markstat using test, pdf 

produce pdf's.

Using stmd, I was able to create a word document (although the markstat header syntax wasn't honored) using

stmd test.stmd, replace saving(test.docx)

but the pdf produced by

stmd test.stmd, replace saving(test.pdf)

wasn't able to be opened by any pdf reader I had access to (it didn't have a size of 0, so something was put in it).

@roblem
Copy link
Author

roblem commented Sep 3, 2019

Upon further inspection, when I try opening the file this error appears:

file type plain text document (text/plain) is not supported

The docx file is of type text/html. Maybe I am mistaken that stmd can output Word and pdf files, since no matter the extension it appears that html code is in the file. But based on this comment on the stata message board it should be possible since pandoc is installed. Maybe it requires a secondary step in terminal to invoke pandoc on the html output?

@roblem roblem closed this as completed Sep 3, 2019
@roblem roblem reopened this Sep 3, 2019
@Hemken
Copy link
Owner

Hemken commented Sep 5, 2019 via email

@roblem
Copy link
Author

roblem commented Sep 5, 2019

Thanks. Closing.

@roblem roblem closed this as completed Sep 5, 2019
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