对于文本文件foo.tex
:
\documentclass[12pt][twocolumn]{article}
\begin{document}
ABC
\end{document}
运行pdflatex foo.tex
出现如下错误:
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
restricted \write18 enabled.
entering extended mode
(./foo.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 4 languages loaded.
! LaTeX Error: File `.cls' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)
Enter file name:
但如果我删除twocolumn
,错误就消失了。
答案1
我应该用[12pt,twocolumn]
而不是[12pt][twocolumn]
。