Pandoc suggestions? There is an ado from Hua Peng buried on github, called "pandocmarkdown.ado". There is a revised version of this at https://github.com/hemken/pandoc-stata . Haghish has a pandoc command bundled in markdoc, but it is pretty bare (you have to specify most options by writing the pandoc arguments yourself). Markstat has a _pandoc command buried within it.
None of these are documented (i.e. none have useful help files, that I know of).
I'd like to see several of us collaborate on a common Stata -pandoc- command that could stand alone or be bundled with other commands like -markstat-. I would combine the features of -pandocmarkdown- and `_pandoc` (and my little revision adds the ability to echo `pandoc` errors, something I see German has also built into -markstat- for handling R errors! "Great minds ..."?!)
As far as producing true tables, neither `markstat` nor `log2html` will do this for you. Your approach looks good (I'm unfamiliar with listtab), and the `putdocx` suggestion would work. Actually, Stata's `table` command can produce native Markdown tables (as piped tables) (but this capability is experimental, and I have been warned it may not be stable). This works with `dyntext` and `dyndoc`.
Get the impression that producing a document with real tables is a hassle? This is a real hurdle to literate programming, once the source document becomes laden with formatting code rather than the code that is to the point of the document.
None of these are documented (i.e. none have useful help files, that I know of).
I'd like to see several of us collaborate on a common Stata -pandoc- command that could stand alone or be bundled with other commands like -markstat-. I would combine the features of -pandocmarkdown- and `_pandoc` (and my little revision adds the ability to echo `pandoc` errors, something I see German has also built into -markstat- for handling R errors! "Great minds ..."?!)
As far as producing true tables, neither `markstat` nor `log2html` will do this for you. Your approach looks good (I'm unfamiliar with listtab), and the `putdocx` suggestion would work. Actually, Stata's `table` command can produce native Markdown tables (as piped tables) (but this capability is experimental, and I have been warned it may not be stable). This works with `dyntext` and `dyndoc`.
Get the impression that producing a document with real tables is a hassle? This is a real hurdle to literate programming, once the source document becomes laden with formatting code rather than the code that is to the point of the document.
Comment