

There are several encodings available to LaTeX: But if we want accents and other special characters to appear directly in the source file, we have to tell TeX that we want to use a different encoding. TeX has its own way of doing that with commands for every diacritical marking (see Escaped codes). But 128 characters is not enough to support non-English languages.


\estwide uses tabular* and fills the table to the width of the text, \estauto uses tabular and uses the “standard” table width (i.e.
#Xlist latex name code
The complete code that generates this table is then: * TABLE 2Įsttab A B C using table2.tex, replace /// Why? Because the first part ( Age to Housing) is percentages and has therefore 2 decimal points, the second part (Household Finances) are income variables with 0 decimal points, and the last part has 2 decimal points again. You cannot see it, but these are actually three tables appended together. The principle of estout is simple: you run a command in Stata that generates some statistics, you tell estout to (temporarily) store those results and then you create a table.Ĭonsider Table 2, which is simply a bunch of summarised variables, split into three categories.

Ready? Let’s start.Įdit: Have a look at my follow-up post if you encounter any problems!Įdit 2: Another follow-up to improve the design. I explain three things: creating tables for 1.
#Xlist latex name install
First install estout in Stata ( ssc install estout), then we can jump right into the examples. I think it is easiest to explain everything with examples, for which I use some tables from my current working paper. So hopefully this post is helpful for aspiring applied econometricians who want to automate output reporting from Stata into LaTeX. That has saved me a lot of time, but setting everything up took a long long time. you omit a particular group), you don’t have to change anything: the results get automatically updated in LaTeX. If you change something in your do-file (e.g. The advantage is that the whole system is dynamic. I use estout to generate tables of summary statistics and regression results that can be easily imported into LaTeX.
