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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: AW: Stata package / Latex |

Date |
Mon, 15 Feb 2010 13:30:11 +0100 |

<> You can also use the official solution from the Stata Journal. First, you run: ************* cap erase cox.log cap erase cox.log.tex set rmsg off clear* webuse kva, clear stset failtime sjlog using cox, replace stcox load bearings sjlog close sjlog clean cox.smcl, sjlog ************* Subsequently, you -texify- or -pdflatex- the following document, making sure it can find the -log- created above: ************* \documentclass[bib]{statapress} \usepackage[crop,newcenter,frame]{pagedims} \usepackage{sj} \usepackage{epsfig} \usepackage{stata} \begin{document} \begin{stlog} \input{cox.log.tex}\nullskip \end{stlog} \end{document} ************* HTH Martin -----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Vincent Gesendet: Sonntag, 14. Februar 2010 19:53 An: statalist@hsphsun2.harvard.edu Betreff: st: Stata package / Latex Hello, I am trying to find a solution to easily export (whole) tables (Cox-regression tables) from Stata to Latex. I tried to use the stata package in combination with "sjlog" in Stata The following problem arises: The macro/ commands of \HLI{} do not seem to be recognized correctly and the tables are messed up. "test_latex.tex" produces the output of "test_latex.pdf" (In the appendix you find the files used) On the internet ( http://www.stata.com/statalist/archive/2005-09/msg00876.html) I have found the solution to write: \def\DASH{{\vrule width\stxwidth height\stmtdepth depth-\stmbdepth}} after \usepackage{stata}. However, if I do that I receive the following error message: ! Undefined control sequence. \DASH ->{\vrule width\stxwidth height\stmtdepth depth-\stmbdepth } I also attached my preamble and the do-file. I would be really happy if you can provide me with a solution to easily export tables from Stata to Latex. (There seem to a solution using "maketex". As I have an APPLE, this command doesn't work in Stata) Kind regards Vincent * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Stata package / Latex***From:*Vincent <>

- Prev by Date:
**st: Invalid Lags message - gmm, a system of two simultaneous equations** - Next by Date:
**Re: st: RE:RE: AW: marginal effects after ssm command** - Previous by thread:
**st: AW: Stata package / Latex** - Next by thread:
**st: Invalid Lags message - gmm, a system of two simultaneous equations** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |