Thanks to Kit Baum, a new dynamic document package to integrate Stata results into a LaTeX document is available from the SSC Archive. Type
to install the package. Stata 11 or newer is required. The package is also available from GitHub, see https://github.com/benjann/sttex.
Description: sttex is a command to process a LaTeX source file containing blocks of Stata code. sttex will extract the Stata commands into a do-file, run the do-file, and then weave the LaTeX source and the Stata output into a target LaTeX document. Optionally, sttex also typesets the LaTeX document and displays the resulting PDF. Various tags can be used within the LaTeX source file to define the information that will be processed by sttex. A main feature of sttex is that it detects whether Stata code changed between calls. If the code did not change, execution of Stata commands will be skipped to save computer time. It is also possible to partition a source file into independent sections, such that only the sections affected by changes will be executed.
A brief presentation on sttex can be found at https://ideas.repec.org/p/boc/lsug22/14.html.
Best,
ben
Code:
. ssc install sttex, replace
Description: sttex is a command to process a LaTeX source file containing blocks of Stata code. sttex will extract the Stata commands into a do-file, run the do-file, and then weave the LaTeX source and the Stata output into a target LaTeX document. Optionally, sttex also typesets the LaTeX document and displays the resulting PDF. Various tags can be used within the LaTeX source file to define the information that will be processed by sttex. A main feature of sttex is that it detects whether Stata code changed between calls. If the code did not change, execution of Stata commands will be skipped to save computer time. It is also possible to partition a source file into independent sections, such that only the sections affected by changes will be executed.
A brief presentation on sttex can be found at https://ideas.repec.org/p/boc/lsug22/14.html.
Best,
ben

Comment