我刚刚开始使用LaTeX,并尝试创建我的第一个文档。我使用的是Mac OS X 10.8.3。
创建hello.tex
文件后,我在命令行中输入latex hello
。这将返回以下输出:
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
restricted \write18 enabled.
entering extended mode
(./hello.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h
ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma
rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,
kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,
polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s
lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,
welsh, loaded.
! LaTeX Error: File `(.cls' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)
我一直试图为此找到解决方法,但一直无法这样做。任何帮助将不胜感激。
答案 0 :(得分:2)
在声明文档的类时,很可能使用括号而不是花括号。也就是说,你有像
这样的东西\documentclass(article)
但它应该是
\documentclass{article}
BTW,你真的还需要包含文件的内容,而不仅仅是错误信息。