- Current version:
1.6.3 4feb2026 - Jump to:
overviewinstallationupdate historyauthor
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.
-
February 4, 2026
- Added
autonumber2option - Fixed bug in en-dash conversion loop counter
- Fixed bug in size validation for "Huge"
- Added
-
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
dataonlyoption, which outputs only content of the table (no variable names, footnotes, etc.) - Updated
endashoption to work with multiple negative values
- Added
-
November 2, 2020
- Added support for aligning numeric values at the decimal point using the
siunitxpackage
- Added support for aligning numeric values at the decimal point using the
-
July 1, 2020
texsavenow outputs en dashes instead of hyphens for negative numbers. Specifyingnoendashrestores 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