- Current version:
1.6.2 23sep2023
- Jump to:
overview
installation
update history
author
texsave
is a Stata command that outputs the dataset currently in memory to a file in LaTeX format. It uses the booktabs
, tabularx
, and geometry
LaTeX packages to produce publication-quality tables. The syntax is described in the Stata help file included in this package.
Julian Reif's Stata Coding Guide provides a tutorial.
Type which texsave
at the Stata prompt to determine which version you have installed. To install the most recent version, copy and paste the following line of code:
net install texsave, from("https://raw.githubusercontent.com/reifjulian/texsave/master") replace
To install the version that was uploaded to SSC, copy and paste the following line of code:
ssc install texsave, replace
After installing, type help texsave
to learn the syntax.
-
September 23, 2023
- Fixed bug affecting long variable names
-
May 22, 2023
- Added
rowstretch()
,rowheight()
,colwidth()
, andtablelines()
options - Added
headerlines2()
option - Added 'R' and 'L' options to
align()
- Added
-
November 30, 2022
- Added
@{}
to header alignment - Changed footnote to use
\parbox
- Added
-
January 3, 2022
- Added
dataonly
option, which outputs only content of the table (no variable names, footnotes, etc.) - Updated
endash
option to work with multiple negative values
- Added
-
November 2, 2020
- Added support for aligning numeric values at the decimal point using the
siunitx
package
- Added support for aligning numeric values at the decimal point using the
-
July 1, 2020
texsave
now outputs en dash's instead of hyphens for negative numbers. Specifyingnoendash
restores previous behavior.
-
December 11, 2019
- Added
headersep()
option, with new default:\addlinespace[\belowrulesep]
- Added
-
January 17, 2019
- Added
preamble()
option
- Added
Julian Reif
University of Illinois
jreif@illinois.edu