IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/y16y2016i2p245-263.html
   My bibliography  Save this article

Creating LaTeX documents from within Stata using texdoc

Author

Listed:
  • Ben Jann

    (University of Bern)

Abstract

I discuss the use of texdoc for creating LaTeX documents from within Stata. Specifically, texdoc provides a way to embed LaTeX code directly in a do-file and to automate the integration of results from Stata in the final document. One can use the command, for example, to assemble automatic reports, write a Stata Journal article, prepare slides for classes, or put together solutions for homework assignments. Copyright 2016 by StataCorp LP.

Suggested Citation

  • Ben Jann, 2016. "Creating LaTeX documents from within Stata using texdoc," Stata Journal, StataCorp LP, vol. 16(2), pages 245-263, June.
  • Handle: RePEc:tsj:stataj:y:16:y:2016:i:2:p:245-263
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=pr0062
    File Function: link to article purchase
    Download Restriction: no

    File URL: http://www.stata-journal.com/software/sj16-2/pr0062/
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Ben Jann, 2007. "Making regression tables simplified," Stata Journal, StataCorp LP, vol. 7(2), pages 227-244, June.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Ben Jann, 2022. "sttex: A new dynamic document command for Stata and LaTeX," Northern European Stata Conference 2022 11, Stata Users Group.
    2. Valérie Orozco & Christophe Bontemps & Elise Maigné & Virginie Piguet & Annie Hofstetter & Anne Lacroix & Fabrice Levert & Jean‐Marc Rousselle, 2020. "How To Make A Pie: Reproducible Research For Empirical Economics And Econometrics," Journal of Economic Surveys, Wiley Blackwell, vol. 34(5), pages 1134-1169, December.
    3. Valérie Orozco & Christophe Bontemps & Élise Maigné & Virginie Piguet & Annie Hofstetter & Anne Marie Lacroix & Fabrice Levert & Jean-Marc Rousselle, 2017. "How to make a pie? Reproducible Research for Empirical Economics & Econometrics," Post-Print hal-01939942, HAL.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ben Jann, 2017. "Creating HTML or Markdown documents from within Stata using webdoc," Stata Journal, StataCorp LP, vol. 17(1), pages 3-38, March.
    2. Höglinger, Marc & Diekmann, Andreas, 2017. "Uncovering a Blind Spot in Sensitive Question Research: False Positives Undermine the Crosswise-Model RRT," Political Analysis, Cambridge University Press, vol. 25(1), pages 131-137, January.
    3. Jacques Muthusi & Samuel Mwalili & Peter Young, 2019. "%svy_logistic_regression: A generic SAS macro for simple and multiple logistic regression and creating quality publication-ready tables using survey or non-survey data," PLOS ONE, Public Library of Science, vol. 14(9), pages 1-14, September.
    4. David Roodman, 2022. "Schooling and Labor Market Consequences of School Construction in Indonesia: Comment," Papers 2207.09036, arXiv.org, revised Mar 2024.
    5. Ben Jann, 2013. "Plotting regression coefficients and other estimates in Stata," University of Bern Social Sciences Working Papers 1, University of Bern, Department of Social Sciences, revised 18 Sep 2017.
    6. Ciani, Emanuele, 2016. "Retirement, pension eligibility and home production," Labour Economics, Elsevier, vol. 38(C), pages 106-120.
    7. Jakob, Martina & Combet, Benita, 2020. "Educational aspirations and decision-making in a context of poverty. A test of rational choice models in El Salvador," SocArXiv w9bkq, Center for Open Science.
    8. Hannes Kröger & Johan Fritzell & Rasmus Hoffmann, 2016. "The Association of Levels of and Decline in Grip Strength in Old Age with Trajectories of Life Course Occupational Position," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-16, May.
    9. Carsten Sauer & Peter Valet & Stefan Liebig, 2013. "The Impact of within and between Occupational Inequalities on People's Justice Perceptions towards Their Own Earnings," SOEPpapers on Multidisciplinary Panel Data Research 567, DIW Berlin, The German Socio-Economic Panel (SOEP).
    10. Hlavac, Marek, 2016. "TableMaker: An Excel Macro for Publication-Quality Tables," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 70(c03).
    11. Vincenzo Atella & Federico Belotti & Ludovico Carrino & Andrea Piano Mortari, 2017. "The future of Long Term Care in Europe. An investigation using a dynamic microsimulation model," CEIS Research Paper 405, Tor Vergata University, CEIS, revised 08 May 2017.
    12. Zhao, Yuejun, 2023. "Job displacement and the mental health of households: Burden sharing counteracts spillover," Labour Economics, Elsevier, vol. 81(C).
    13. Dang, Hai-Anh & Lanjouw, Peter & Luoto, Jill & McKenzie, David, 2014. "Using repeated cross-sections to explore movements into and out of poverty," Journal of Development Economics, Elsevier, vol. 107(C), pages 112-128.
    14. Daniel Homocianu, 2023. "Exploring the Predictors of Co-Nationals’ Preference over Immigrants in Accessing Jobs—Evidence from World Values Survey," Mathematics, MDPI, vol. 11(3), pages 1-29, February.
    15. Diriwaechter, Patric & Shvartsman, Elena, 2018. "The anticipation and adaptation effects of intra- and interpersonal wage changes on job satisfaction," Journal of Economic Behavior & Organization, Elsevier, vol. 146(C), pages 116-140.
    16. Hannes Kröger & Rasmus Hoffmann, 2018. "The association between CVD-related biomarkers and mortality in the Health and Retirement Survey," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 38(62), pages 1933-2002.
    17. Dagmar Brožová & Jan Zouhar, 2022. "The effect of court-mandated mediation on the length of court proceedings in the Czech Republic," European Journal of Law and Economics, Springer, vol. 53(3), pages 485-508, June.
    18. Przepiorka, Wojtek, 2013. "Buyers pay for and sellers invest in a good reputation: More evidence from eBay," Journal of Behavioral and Experimental Economics (formerly The Journal of Socio-Economics), Elsevier, vol. 42(C), pages 31-42.
    19. Francisco Fernández López, 2017. "Impacto de la informalidad laboral sobre el acceso a crédito formal," Coyuntura Económica, Fedesarrollo, vol. 47(1 y 2), pages 169-204, December.
    20. Kröger, Hannes & Hoffmann, Rasmus, 2018. "The Association between Cvd-Related Biomarkers and Mortality in the Health and Retirement Survey," EconStor Open Access Articles and Book Chapters, ZBW - Leibniz Information Centre for Economics, vol. 38, pages 1933-2002.

    More about this item

    Keywords

    texdoc; LaTeX; weaving; Stata output; Stata log; reproducible research;
    All these keywords.

    JEL classification:

    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software
    • C88 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Other Computer Software

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tsj:stataj:y:16:y:2016:i:2:p:245-263. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.