Daniel Becker

2.3 Stata -> LATEX

  2.3.1 Writing a codebook (compact) as a table that can be used in a LATEX-document
  2.3.2 Using the stata command tabout to write tables that can be used in a LATEX-document (TBD)
  2.3.3 Writing a table containing notes from a stata-dataset that can be used in a LATEX-document (TBD)
  2.3.4 Exporting stata-graphics for use in a LATEX-document, add annotation (TBD)

semi-official manual: http://www.ats.ucla.edu/stat/stata/latex/default.htm

Important Stata-Commands for producing tables and the like: tabstat, statsmat, tablemat, fsum, tabform, tabout, svytabs, svytabform, mkcorr, corrtab, makematrix, eststo, esttab, outreg2 (findit commandname finds them)

2.3.1 Writing a codebook (compact) as a table that can be used in a LATEX-document

zip-download Download .zip-file with everything necessary, 116 KB.

Usage:

  1. download the zip-file
  2. open the do-file codebook.do. Read the comments. It is necessary that you adjust a few file-paths and that you use the resulting .tex-file properly.
  3. TeX/Example.tex is a small .tex-file that demonstrates how the resulting file can be used.

Based on ideas from: Gini / Pasquini (2006).

2.3.2 Using the stata command tabout to write tables that can be used in a LATEX-document (TBD)

TBD - please ask if you need that

2.3.3 Writing a table containing notes from a stata-dataset that can be used in a LATEX-document (TBD)

TBD - please ask if you need that

2.3.4 Exporting stata-graphics for use in a LATEX-document, add annotation (TBD)

TBD - please ask if you need that. For the second part, see 2.4.2.

Last update: October 14, 2010 (14:37)  | This Website as an PDF