如何编译通过《数学年刊》LaTeX 模板
前言
国内很多期刊都还在使用 CTeX 套装时代的「模板」,用 Live 基本编译不了,但用 CTeX 套装编译通过也不是那么容易的,这里给出编译通过的方法。
编译环境
- Win 10
- CTeX 2.9.2.164
正文
C 辑
下载链接
编译方式
latex
/pdflatex
步骤
- 解压,编译
latex Main.tex && dvipdfmx Main.dvi
- 报错:
! I can't write on file `Main.bat'.
<to be read again>
\relax
l.276 \contbat
Please type another output file name: - 解决:键入「回车键」
- 报错:
pdflatex Main.tex
- 报错:和
! I can't write on file `Main.bat'.
<to be read again>
\relax
l.276 \contbat
Please type another output file name:! LaTeX Error: Unknown graphics extension: .eps.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.209 \scalebox{0.35}{\includegraphics{car.eps}}
\hspace{20mm}
? - 解决:参考上下文
- 报错:
AC 辑
下载链接
编译方式
pdflatex
步骤
- 解压,编译
pdflatex AC_example.tex
- 报错:
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
(C:\tex\AC杈戞ā鐗?pdflatex: No space left on device - 解决:将中文文件夹名改为纯西文文件夹名
- 报错:
- 再次编译
- 报错:
! I can't find file `astyle'.
l.16 \input astyle - 解决:将
ASTYLE.CTX
改为astyle.tex
- 报错:
- 再次编译
- 报错:
! LaTeX Error: Unknown graphics extension: .ps.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.166 ...}{\includegraphics[scale=1.8]{\figno.ps}}
? - 解决:
- 将
correction4.ps
改为correction4.eps
- 将
astyle.tex
第 166 行改为\sbox{\mygraphic}{\includegraphics[scale=1.8]{\figno.eps}}
- 将
astyle.tex
第 9 行改为\usepackage{graphicx,epstopdf}
- 将
- 报错: