為什麼Latex輸出的PDF文檔是空白的?
我寫了一個很簡單的latex的hello world,
然後使用pdflatex編譯輸出pdf後,pdf是空白的沒有任何內容。
documantclass{article}
egin{document}
hello, world!
end{document}
我的操作步驟是在終端裡面輸入 pdflatex test.tex回車,然後會出現
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
restricted write18 enabled.
entering extended mode
(./test.tex
LaTeX2e &<2011/06/27&>
Babel &<3.9h&> and hyphenation patterns for 2 languages loaded.
! Undefined control sequence.
l.1 documantclass
{article}
?
運行後輸出的log文件是
? r
OK, entering
onstopmode...! LaTeX Error: Missing egin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H &for immediate help.
...l.1 documantclass{a
rticle}
You"re in trouble here. Try typing &to proceed.
If that doesn"t work, type X &to quit. Missing character: There is no e in font nullfont!
(./test.aux)
openout1 = `test.aux".LaTeX Font Info: ... okay on input line 2.
! LaTeX Error: The font size command
ormalsize is not defined:
there is probably something wrong with the class file.See the LaTeX manual or LaTeX Companion for explanation.
Type H &for immediate help.
...l.2 egin{document}
Your command was ignored.
Type I && to replace it with another command,
or &to continue without it. Missing character: There is no d in font nullfont!
Missing character: There is no ! in font nullfont!! LaTeX Error: The font size command
ormalsize is not defined:
there is probably something wrong with the class file.See the LaTeX manual or LaTeX Companion for explanation.
Type H &for immediate help.
...l.4 end{document}
是document不是documant。
有log要會看啊……
推薦閱讀:
※LaTeX 輸入矩陣裡面的元素時,使用 dfrac 後,發現字母有重疊怎麼辦?
※LaTeX 使用 listings 宏包插入代碼時,如何將代碼的字體設定為 Monaco?
※xelatex編譯加粗楷體為什麼會失敗?
※TeXLive如何查看一個宏包的目錄結構(TDS)?
※如何在LaTex或Word中表示卓里奇《數學分析》基的符號?
TAG:PDF | LaTeX | LaTeX排版與設計 |