TeX Live:双反斜杠被忽略

TeX Live:双反斜杠被忽略

昨天我已经回答了有关 MiKTeX 安装的这个问题,但是当我尝试更新 MiKTeX 时,安装被损坏了,所以我决定在 Windows 7 上试用 TeX Live。

我安装了 TeX Live 2016 的完整发行版,并运行了

c:\ tlmgr update --all

我尝试了一个简单的示例文档:

\documentclass{article}
\usepackage[english]{babel}
\begin{document}
\title{Test Document \\ Subtitle}
\author{My Name \\my email}
\date{\today}
\maketitle

\begin{tabular}{l c r}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\end{tabular}
\end{document}

当我运行pdflatex该文档时,它运行正常,但如果我将文档类从 更改为articlereport则标题中的反斜杠和作者命令将被忽略。

使用报告环境运行的日志pdflatex如下:

    This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/W32TeX) (preloaded format=pdflatex 2017.1.10)  11 JAN 2017 11:42
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**./report.tex
(./report.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(c:/texlive/2016/texmf-dist/tex/latex/base/report.cls
Document Class: report 2014/09/29 v1.4h Standard LaTeX document class
(c:/texlive/2016/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(c:/texlive/2016/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2016/04/23 3.9r The Babel package

(c:/texlive/2016/texmf-dist/tex/generic/babel-english/english.ldf
Language: english 2012/08/20 v3.3p English support from the babel system

(c:/texlive/2016/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2016/04/23 3.9r Babel common definitions
\babel@savecnt=\count88
\U@D=\dimen103
)
\l@canadian = a dialect from \language\l@american 
\l@australian = a dialect from \language\l@british 
\l@newzealand = a dialect from \language\l@british 
))
No file report.aux.
\openout1 = `report.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <12> on input line 7.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 7.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 7.
[1

{c:/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 9.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 9.
 [1]
(./report.aux) ) 
Here is how much of TeX's memory you used:
 653 strings out of 493013
 7735 string characters out of 6137008
 65903 words of memory out of 5000000
 4265 multiletter control sequences out of 15000+600000
 6675 words of font info for 24 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 23i,6n,23p,176b,191s stack positions out of 5000i,500n,10000p,200000b,80000s
<c:/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr1
0.pfb><c:/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb><c:/
texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb>
Output written on report.pdf (2 pages, 30534 bytes).
PDF statistics:
 23 PDF objects out of 1000 (max. 8388607)
 15 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

由于我要编写一些相当大的文档,我想将其分成章节和部分等,报告文档类似乎是最好的,但其中会包含很多表格,所以我需要反斜杠才能正常工作。

任何帮助,将不胜感激。

相关内容