![LaTeX 编译问题](https://linux22.com/image/337286/LaTeX%20%E7%BC%96%E8%AF%91%E9%97%AE%E9%A2%98.png)
我在尝试编译我的第一个文档时遇到了这个问题
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./t1.tex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.clo)) (./t1.aux)
! Undefined control sequence.
l.6 \latex
?
答案1
TeX
和都LaTeX
区分大小写,也就是说,命令是用大写字母还是小写字母书写很重要。
最有可能的是,该命令\LaTeX
是故意的,但拼写\latex
错误(除非有人定义了这个命令)
\latex
因此,在、等32 种可能的变体中,\Latex
只有\lATeX
是\LaTeX
正确的 ;-)
请注意,有一个特殊的\LaTeXe
命令来输出LaTeX2e
变体。
下面的例子也显示了字体大小命令\huge
和之间的区别\Huge
,即小写和大写形式提供明显不同的输出。
\documentclass{article}
\begin{document}
\huge
\LaTeX\ is very nice,
\LaTeXe\ is very nice too, but
\LaTeX3 is yet to come!
\Huge
\LaTeX\ is very nice,
\LaTeXe\ is very nice too, but
\LaTeX3 is yet to come!
\end{document}