Bookmark and Share

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]

st: -outreg-, factor variables and LaTeX special characters


From   Jorge Eduardo Pérez Pérez <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: -outreg-, factor variables and LaTeX special characters
Date   Thu, 24 Oct 2013 16:55:47 -0400

I am using -outreg- (version 4.29) to export regression results to
latex. -outreg- does not handle LaTeX special characters
automatically. The issue shows up when using factor variables, because
# appears frequently.

For example, if I export a regression table, make a proper tex
document out of it using the user written command -maketex- and try to
compile it using texify, it will fail to compile because of the #
character in the factor variable.

sysuse auto, clear
reg price c.mpg##c.turn
outreg using test.tex, tex replace
maketex using test.tex
!texify -p -c -b --run-viewer test.tex

Is there a workaround to this using -outreg- ? I could try -estout-,
-outreg2- (which I think has the same issue) etc ..., but I am just
used to -outreg-

Thank you,

--------------------------------------------
Jorge Eduardo Pérez Pérez
Graduate Student
Department of Economics
Brown University

*
*   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/


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