Loading...
Loading...
Compare original and translation side by side
xelatex --versiondocker --versionundefinedxelatex --versiondocker --versionundefined
**If both local XeLaTeX and Docker are not installed, then STOP trying to run this skill.**
And Ask user question: "XeLaTeX or Docker is required to compile translated PDFs. Which one do you want to use? I'll help you to setup."
**若本地XeLaTeX和Docker均未安装,请停止运行本工具**。
并询问用户:"编译翻译后的PDF需要XeLaTeX或Docker。您想使用哪一个?我会帮您完成配置。"undefinedundefined
**Verify extraction:**
```bash
**验证提取结果:**
```bashundefinedundefinedpaper_source/paper_cn/cd arXiv_${ARXIV_ID}
mkdir -p paper_cn
cp -r paper_source/* paper_cn/cd arXiv_${ARXIV_ID}
mkdir -p paper_cn
rsync -av paper_source/ paper_cn/paper_cn/\title{...}\begin{abstract}...\end{abstract}\abstract{...}paper_cn/find paper_cn/ -name "*.tex" -exec grep -l '\\documentclass' {} \; | head -1paper_source/paper_cn/cd arXiv_${ARXIV_ID}
mkdir -p paper_cn
cp -r paper_source/* paper_cn/cd arXiv_${ARXIV_ID}
mkdir -p paper_cn
rsync -av paper_source/ paper_cn/paper_cn/\title{...}\begin{abstract}...\end{abstract}\abstract{...}\documentclass{...}paper_cn/find paper_cn/ -name "*.tex" -exec grep -l '\\documentclass' {} \; | head -1\usepackage{xeCJK}
\setCJKmainfont{FandolSong}[ItalicFont=FandolKai] % 宋体 - 正文,\emph 用楷体
\setCJKsansfont{FandolHei} % 黑体 - 标题、\textsf
\setCJKmonofont{FandolFang} % 仿宋 - 代码、\textttfc-list :lang=zh family\usepackage{xeCJK}
\setCJKmainfont{FandolSong}[ItalicFont=FandolKai] % 宋体 - 正文,\emph 用楷体
\setCJKsansfont{FandolHei} % 黑体 - 标题、\textsf
\setCJKmonofont{FandolFang} % 仿宋 - 代码、\textttfc-list :lang=zh familyundefinedundefinedOr use `latexmk` for automated compilation:
```bash
latexmk -xelatex main.tex或使用`latexmk`进行自动化编译:
```bash
latexmk -xelatex main.texundefinedundefinedundefinedundefinedarXiv_${ARXIV_ID}/technical_report.mdarXiv_${ARXIV_ID}/technical_report.mdpaper_cn/<main-file>.pdfarXiv_${ARXIV_ID}/technical_report.mdpaper_cn/paper_cn/<主文件名>.pdfarXiv_${ARXIV_ID}/technical_report.mdpaper_cn/| Issue | Solution |
|---|---|
| Downloaded file is single .tex, not .tar.gz | |
| Main file not named main.tex | |
| Compilation fails with encoding error | |
Command misspelling (e.g. | See review checklist step 2 — diff command sets to find typos |
| Undefined control sequence - \xmax概率 | xeCJK catcode issue — insert |
| Undefined control sequence - \chinese{弋} | Original uses CJK package's \chinese macro; add \newcommand{\chinese}[1]{#1} after xeCJK config to prevent catcode issue |
| Custom .sty/.cls files | Copy to |
| Mixed CJK/Latin characters may cause xeCJK font switching errors (e.g. |
Undefined references (e.g., | Ensure ALL referenced files are present in |
| 问题 | 解决方案 |
|---|---|
| 下载的文件是单个.tex文件而非.tar.gz包 | 执行 |
| 主文件未命名为main.tex | 执行 |
| 编译时出现编码错误 | 执行 |
命令拼写错误(如 | 参考审核清单步骤2 — 使用diff命令对比查找拼写错误 |
| 未定义控制序列 - \xmax概率 | xeCJK字符编码问题 — 在自定义宏与CJK文本间插入 |
| 未定义控制序列 - \chinese{弋} | 原文使用了CJK包的\chinese宏;在xeCJK配置后添加 |
| 自定义.sty/.cls文件 | 复制到 |
翻译后的表格出现 | 混合CJK/拉丁字符可能导致xeCJK字体切换错误(如 |
未定义引用(如 | 确保 |