LaTex 系列 - 2. LaTex 编译器设置
不同的 LaTeX 项目需要不同的编译器,例如 (英文需要 pdflatex, 中文需要 xelatex). 以下是两种设置方案
方案1:手动切换编译器
Options -> Configure TeXstudio -> Build -> Meta Commands -> Default Compiler: 选择 pdflatex 或者 xelatex
Options -> Configure TeXstudio -> Build -> Meta Commands -> Default Bibliography Tool: 选择 Bibtex 或者 Biber
方案2:文件自动选择编译器
1 | |
- 第一行: 指定当前 .tex 文件的 主编译器 为 XeLaTeX, 等效于手动执行:
xelatex mydocument.tex(针对 VS Code/TeXstudio) - 第二行: 指定当前 .tex 文件的 主编译器 为 XeLaTeX, 等效于手动执行:
xelatex mydocument.tex(针对 TeXShop、TeXworks、TeXmaker) - 第三行: 指定当前.tex 文件的 文献管理工具 为 Biber, 等效于手动执行:
biber mydocument.bcf
LaTex 系列 - 2. LaTex 编译器设置
http://yylustb.github.io/2025/02/02/code/Latex/latex_2-compile-2025-02-02/