*! version 2.4 19-Oct-2025

Title

art2tex - Automatically generate structured academic paper LaTeX framework (Chinese/English support)

Syntax

art2tex [, Language(string) Filename(string) Replace Title(string) Author(string)]

Description

art2tex is a professional Stata program designed for empirical researchers in economics, management, and related fields.
It automatically generates LaTeX paper frameworks that comply with international academic standards, with support for both Chinese and English papers.
The program creates complete document structures, preset table environments, mathematical formulas, reference formats,
and generates accompanying Stata table export commands and BibTeX reference templates.

Key features include:

• Intelligent generation of complete LaTeX documents with abstract, keywords, and chapter structure

• Preconfigured variable definition tables, empirical model formulas, and regression table templates

• Automatic creation of tables and figures directories

• Generation of accompanying Stata table export command scripts

• Generation of accompanying Stata figure export command scripts

• Pre-built figure environments in introduction, theoretical analysis, and robustness sections

• Support for XeLaTeX compilation and BibTeX reference management

• Bilingual support for both Chinese and English papers

• Includes comment package for easy annotation and draft management

Options

Language(str) (minimal abbreviation: l) specifies document language, defaults to "chinese". Supports "chinese" or "english".

Filename(str) (minimal abbreviation: f) specifies output LaTeX filename, defaults to "paper.tex".

Replace (minimal abbreviation: r) specifies that existing files can be overwritten. If this option is not specified and the output file already exists, the command will display an error and exit.

Title(str) (minimal abbreviation: t) specifies paper title. Defaults to "论文标题" for Chinese or "Paper Title" for English.

Author(str) (minimal abbreviation: a) specifies author names, multiple authors separated by spaces. Defaults to "作者姓名" for Chinese or "Author Name" for English.

Examples

Generate default Chinese paper framework:

. art2tex

Generate English paper framework:

. art2tex, l(english)

Overwrite existing template files:

. art2tex, r

Custom title and authors with replace option:

. art2tex, t("ESG Performance and Corporate Green Innovation") a("John Zhang Mary Li") l(english) r

Specify filename and language with replace option:

. art2tex, f("my_paper") l("chinese") r

Compilation Instructions

Generated LaTeX documents require compilation with XeLaTeX and BibTeX. Recommended compilation sequence:

1. xelatex paper

2. bibtex paper (essential for reference compilation)

3. xelatex paper

4. xelatex paper

For Chinese papers, ensure your TeX distribution includes Chinese font support.

The framework includes the comment package, allowing you to use comment environments for annotations and draft management:

\begin

This text will not appear in the final document.

\end

Recommended environment: TeX Live 2023 or later, with a LaTeX-supported editor (TeXstudio, VS Code, etc.).

Authors

Wu Lianghai, Chen Liwen, Liu Changyun, Zhao Xin

School of Business, Anhui University of Technology(AHUT)

Ma'anshan, China

agd2010@yeah.net

2184844526@qq.com

2437563124@qq.com

1980124145@qq.com

Hu Fangfang

School of Finance and Economics, Wanjiang University of Technology(WJUT)

Ma'anshan, China

huff470@163.com

Wu Hanyan

School of Economics and Management, Nanjing University of Aeronautics and Astronautics(NUAA)

Nanjing, China

2325476320@qq.com

Wu Xinzhuo

University of Bristol(UB)

2957833979@qq.com

Also see

Related commands: esttab, estout, latex, sumtex, corrtex2, regtex, reg2tex, reftex, getref, get2ref