Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: LaTeX in variable labels for esttab

From   Austin Nichols <>
Subject   Re: st: LaTeX in variable labels for esttab
Date   Fri, 25 May 2012 12:29:49 -0400

Bert Lloyd <>:
can't you just
from("\rho\_{1}") to("\rho_{1}")
after the fact?

On Fri, May 25, 2012 at 12:06 PM, Bert Lloyd <> wrote:
> Dear Statalist,
> I have a question about creating LaTeX tables using esttab (version
> 2.0.5  09mar2009, downloaded by -net install estout.pkg-).
> I would like to include LaTeX markup in the variable labels. For
> example, suppose I have a variable rho_1 and I would like it to appear
> in the table as a rho symbol with a 1 subscript.
> In stata, I create the label as follows"
> label variable rho_1 "$\rho_{1}$"
> and call esttab using the label option.
> However, esttab protects the underscore character by adding a
> backslash, so the LaTeX code that is created is:
> $\rho\_{1}$
> and what appears in the compiled pdf is a rho symbol, followed by an
> underscore, followed by a 1 (not as a subscript).
> Is there a way to turn off this protection? (Which, of course, makes a
> great deal of sense in many contexts.)

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index