SuperAPI AI Directory

latex-compile

Writing & research

View repository

Updated 10-21 16:21

About this skill

LaTeX Compilation

See the repository root directory for directory placeholders README.md. The following uses the default directory name 论文章节(i.e., {{THESIS_DIR}}) and main file Thesis.tex as an example; if your main file is named main.tex, simply replace the file name in the commands.

Thesis (Thesis.tex)

In {{THESIS_DIR}}(default 论文章节), execute the following 4 commands in a fixed order. The PDF is generated in the same directory Thesis.pdf。

PowerShell(Windows):

cd 论文章节
xelatex -interaction=nonstopmode Thesis.tex
bibtex Thesis
xelatex -interaction=nonstopmode Thesis.tex
xelatex -interaction=nonstopmode Thesis.tex

Bash(Linux/macOS):

cd 论文章节
xelatex -interaction=nonstopmode Thesis.tex
bibtex Thesis
xelatex -interaction=nonstopmode Thesis.tex
xelatex -interaction=nonstopmode Thesis.tex

When executing, the current working directory should be the project root (i.e., the directory containing {{THESIS_DIR}} ), or first cd to that directory before executing the above commands.

Presentation Slides (ThesisPresentation.tex)

The Beamer presentation PDF is in the same directory as the thesis, compiled with XeLaTeX, and does not require BibTeX. It is recommended to compile twice to stabilize the table of contents and navigation.

cd 论文章节
xelatex -interaction=nonstopmode ThesisPresentation.tex
xelatex -interaction=nonstopmode ThesisPresentation.tex

Output:{{THESIS_DIR}}/ThesisPresentation.pdf(default is 论文章节/ThesisPresentation.pdf)。