haghish / markdoc

A literate programming package for Stata which develops dynamic documents, slides, and help files in various formats
http://haghish.com/markdoc
87 stars 30 forks source link

Using a dataset as a table with tbl #9

Closed aghaynes closed 8 years ago

aghaynes commented 8 years ago

Hi,

Is it possible to use an entire dataset as a table with tbl? I've looked through the help files and have the impression that the only way to create is to use a long string of macros/scalars etc. I often use post files to store results and it would be great to just pull those into the document without having to generate lots of macros...

Thanks

Alan

haghish commented 8 years ago

There is a smarter way to do that. There are other packages that can EXPORT LaTeX, HTML, or Markdown tables.

Based on the markup language you are writing with, you can use the //IMPORT filename to import the exported table in your document. See the help file.

aghaynes commented 8 years ago

Hi haghish,

Could you make a couple of suggestions? Tracking down the relevant packages is proving difficult. It might also make a good addition to your help files...

Thanks

Alan

haghish commented 8 years ago

If you post on Statalist.org I will surely do that. These questions are rather common and I am afraid, only the developers end up on my GitHub. So many users will get benefit from the examples on statalist.