BITSS / WorldBankApril2016

Materials for the April 2016 Reproducibility Training at the World Bank
MIT License
4 stars 15 forks source link

oureg table to word output #4

Closed ghost closed 7 years ago

ghost commented 8 years ago

Trying to use outreg2 to put table in word doc output. Tried: \input(./myfile.tex) doesn't work at all And: gives an image box but can't read the image

garretchristensen commented 7 years ago

@mjones5 @pythagoraswitch Hey there! It only took me a year+ to answer this, but I did! Yes, you can make a kind of dynamic doc with Word. Estout handles RTF output, and you can insert that as a link into a Word doc. So it's more like the two-step Stata+LaTeX combo than a one-step R Markdown or Stata-Markdoc solution, but it seems to work. Read through the "This is the paper.docx" file I put in my repo at https://github.com/BITSS/RT2Berkeley2017/tree/master/2-StataWord

garretchristensen commented 7 years ago

Ha! Literally on the day I figure this out, Stata 15 comes out, and has built-in support for Word! http://www.stata.com/new-in-stata/create-word-documents/

pythagoraswitch commented 7 years ago

ha! that's pretty cool! DIME is teaching dynamic documents to RAs now (LaTeX), so I will notify this to the people.