6533b873fe1ef96bd12d5629

RESEARCH PRODUCT

Reports and other PDF Documents

Rafael J. A. Cámara

subject

World Wide WebMathematics (miscellaneous)Information retrievalSyntax (programming languages)Computer scienceMargin (machine learning)String (computer science)FontTable (database)MacroAuthor name

description

Stata users often need to combine text, tables, and figures. The author's command, lpdf, generates reports and other PDF documents. lpdf compiles text stored in global macros, tables stored as dataset tables or LATEX table input files, and figures stored as Stata graphs or PDF figure files. LATEX must be installed, but familiarity with LATEX is not necessary. lpdf performs every step through Stata and with Stata syntax. It generates documents in report or article style and portrait or landscape orientation. The default author name, document title, and date can be modified. Further format options include the font and margin sizes. For each table and figure, the width and layout can be adapted. Stata users with LATEX skills may benefit from additional possibilities. The lpdf ado-file includes two other useful commands called latexize and latext. latexize processes the content of string variables to properly type special characters and symbols in LATEX input files. latext modifies text stored in global macros in the same way.

https://doi.org/10.1177/1536867x1401400108