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

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

From |
Nick Cox <njcoxstata@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Table Export of suffix / index |

Date |
Thu, 10 Jan 2013 14:35:34 +0000 |

I sympathise, but the same question gets the same answer. That won't work in Stata. You can try an escape character strategy but you then have to fight Stata every step of the way. Nick On Thu, Jan 10, 2013 at 2:27 PM, Meulemann Max <mmeulemann@ethz.ch> wrote: > That is what I am trying to label my variable so that Latex would understand it as a math environment input > > Therefore I tried label var x $CO_2$ which would give the proper chemical notation and not an italic CO, I just checked. > > I will consider the manual -estout- way, but it would just be nice to find way to solve it directly with labelling, so that I don't have to adapt every -estout command individually Nick Cox > You have to use Stata to write LaTeX code, which is then interpreted externally. Stata does not interpret LaTeX mark-up internally. Note in particular that the $ sign is used in Stata in global macro references (when it is not taken literally as a dollar sign). So using $ $ or $$ $$ to indicate math[s] would be difficult at best in Stata. > > By the way, $CO_2$ in LaTeX gives you italic "CO", which is not standard for chemical notation. > > Nick > > On Thu, Jan 10, 2013 at 2:07 PM, Meulemann Max <mmeulemann@ethz.ch> wrote: >> Im using Stata 12. I d like to directly export variables label names like CO_2 or x^2 so that Latex will display them properly when I tell tabout, sutex or estout to use labels. >> >> I tried several version like >> >> label var x "$CO_2$" >> or >> label var x "\[CO_2\] >> >> but I either just get a $ or $\backslash$ >> >> Is there a way to label the variable properly that latex understands it. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**References**:**st: RTF issues.***From:*Amadou DIALLO <stata.diallo@gmail.com>

**st: Re: st: RTF issues.***From:*"Roger B. Newson" <r.newson@imperial.ac.uk>

**Re: st: Re: st: RTF issues.***From:*Jeph Herrin <stata@spandrel.net>

**st: Re: st: RTF issues.***From:*"Roger B. Newson" <r.newson@imperial.ac.uk>

**Re: st: Re: st: RTF issues.***From:*Jeph Herrin <stata@spandrel.net>

**Re: st: Re: st: RTF issues.***From:*Rebecca Pope <rebecca.a.pope@gmail.com>

**Re: st: Re: st: RTF issues.***From:*William Buchanan <william@williambuchanan.net>

**Re: st: Re: st: RTF issues.***From:*Jeph Herrin <stata@spandrel.net>

**Re: st: Re: st: RTF issues.***From:*Austin Nichols <austinnichols@gmail.com>

**Re: st: Re: st: RTF issues.***From:*Jeph Herrin <stata@spandrel.net>

**Re: st: Re: st: RTF issues.***From:*Austin Nichols <austinnichols@gmail.com>

**Re: st: Re: st: RTF issues.***From:*Jeph Herrin <stata@spandrel.net>

**Re: st: Re: st: RTF issues (and Stata 13 wish list)***From:*"Roger B. Newson" <r.newson@imperial.ac.uk>

**st: Table Export of suffix / index***From:*"Meulemann Max" <mmeulemann@ethz.ch>

**Re: st: Table Export of suffix / index***From:*Nick Cox <njcoxstata@gmail.com>

**AW: st: Table Export of suffix / index***From:*"Meulemann Max" <mmeulemann@ethz.ch>

- Prev by Date:
**Re: st: rounding the minimum of a negative number** - Next by Date:
**AW: st: Table Export of suffix / index** - Previous by thread:
**Re: st: Cohen's Kappa or other interrater agreement statistics** - Next by thread:
**Re: st: Table Export of suffix / index** - Index(es):