文章类中不需要的空白首页

文章类中不需要的空白首页

我在文章和 Koma-Script 文章类别中都得到了不想要的首页,但我不知道为什么。以下是 MWR 的基本内容:

\documentclass[12pt,letterpaper,oneside]{article} %scrartcl class also tried
\usepackage[english]{babel}
%\usepackage{geometry} This didn't work
%\geometry{letterpaper} This didn't help either
\usepackage{blindtext}
\title{The Article}
\author{Author}
\date{}
\begin{document}
\maketitle
\Blindtext{5}
\end{document}

欢迎提出任何建议。我尝试了“单面”,以防万一添加了额外的背面页面,并尝试了信纸,因为 Koma 的默认设置是 A4。结果是一样的:在文章标题和正文之前出现了一个不需要的空白页。我在 Linux 和 Mac 上都使用过 Kile、Texshop 和 Texworks,结果相同。

如果我删除两个 \geometry 命令,我会得到相同的结果。

这是日志文件:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 \write18 enabled.
entering extended mode
(./additionalpage1.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.def)))
(/usr/local/texlive/2013/texmf-dist/tex/latex/blindtext/blindtext.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/xspace.sty))
(./additionalpage1.aux) [1{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/u
pdmap/pdftex.map}] [2] [3] (./additionalpage1.aux) )
(see the transcript file for additional information)</usr/local/texlive/2013/te
xmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/local/texlive/2013/texm
f-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb>
Output written on additionalpage1.pdf (3 pages, 28954 bytes).
SyncTeX written on additionalpage1.synctex.gz.
Transcript written on additionalpage1.log.

文件列表:

*File List*
article.cls    2007/10/19 v1.4h Standard LaTeX document class
size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
babel.sty    2013/05/16 v3.9f The Babel package
english.ldf    2012/08/20 v3.3p English support from the babel system
blindtext.sty    2012/01/06 V2.0 blindtext-Package
xspace.sty    2009/10/20 v1.13 Space after command names (DPC,MH)

这是 \showoutput 日志文件:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 \write18 enabled.
entering extended mode
(./additionalpage2.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2012/07/29 v3.11b KOMA-Script document class (article)

(/usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2012/06/15 v3.12 KOMA-Script package (loading files)
              Copyright (C) Markus Kohm

))) (/usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/scrsize12pt.clo)
(/usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/typearea.sty
Package typearea, 2012/07/29 v3.11b KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-

))
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.def)))
(/usr/local/texlive/2013/texmf-dist/tex/latex/blindtext/blindtext.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/xspace.sty))
(./additionalpage2.aux)
\openout1 = `additionalpage2.aux'.

Missing character: There is no ï in font cmr12!
Missing character: There is no » in font cmr12!
Missing character: There is no ¿ in font cmr12!

Completed box being shipped out [1]
\vbox(651.22751+0.0)x465.23814
.\glue -45.89749
.\vbox(697.125+0.0)x460.72128, shifted 4.51686
..\vbox(18.125+0.0)x460.72128, glue set 18.125fil
...\glue 0.0 plus 1.0fil
...\hbox(0.0+0.0)x460.72128
..\glue 21.75
..\glue(\lineskip) 0.0
..\vbox(606.5+0.0)x460.72128, glue set 594.43651fil
...\write-{}
...\write1{\select@language{english}}
...\write1{\@writefile{toc}{\select@language{english}}}
...\write1{\@writefile{lof}{\select@language{english}}}
...\write1{\@writefile{lot}{\select@language{english}}}
...\glue(\topskip) 12.0
...\hbox(0.0+0.0)x460.72128, glue set 448.9714fil
....\hbox(0.0+0.0)x11.74988
....\penalty 10000
....\glue(\parfillskip) 0.0 plus 1.0fil
....\glue(\rightskip) 0.0
...\glue 0.0 plus 1.0fil
...\glue 0.0
...\glue 0.0 plus 0.0001fil
..\glue(\baselineskip) 43.01668
..\hbox(7.73332+0.0)x460.72128
...\hbox(7.73332+0.0)x460.72128
....\vbox(7.73332+0.0)x460.72128
.....\hbox(7.73332+0.0)x460.72128, glue set 227.42317fil
......\glue 0.0 plus 1.0fil
......\OT1/cmr/m/n/12 1
......\glue 0.0 plus 1.0fil
...\glue 0.0 plus 1.0fil minus 1.0fil

{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}

Completed box being shipped out [2]
\vbox(651.22751+0.0)x465.23814
.\glue -45.89749
.\vbox(697.125+0.0)x460.72128, shifted 4.51686
..\vbox(18.125+0.0)x460.72128, glue set 18.125fil
...\glue 0.0 plus 1.0fil
...\hbox(0.0+0.0)x460.72128
..\glue 21.75
..\glue(\lineskip) 0.0
..\vbox(606.5+0.0)x460.72128, glue set 446.47804fil
...\write-{}
...\glue(\topskip) 12.0
...\hbox(0.0+0.0)x0.0
...\glue 23.49976
...\glue -23.49976
...\penalty -51
...\glue 23.49976
...\glue(\parskip) 0.0
...\glue(\baselineskip) 12.72221
...\hbox(17.27779+0.0)x460.72128, glue set 129.527fil
....\glue(\leftskip) 0.0 plus 1.0fil
....\hbox(0.0+0.0)x0.0
.....\glue 0.0
.....\glue 0.0
.....\glue -5.87494
.....\hbox(0.0+0.0)x0.0
.....\glue 5.87494
....\penalty 0
....\OT1/cmss/bx/n/24.88 T
....\OT1/cmss/bx/n/24.88 h
....\OT1/cmss/bx/n/24.88 e
....\glue 9.12271 plus 4.56136 minus 3.0409
....\OT1/cmss/bx/n/24.88 G
....\OT1/cmss/bx/n/24.88 r
....\OT1/cmss/bx/n/24.88 e
....\OT1/cmss/bx/n/24.88 a
....\OT1/cmss/bx/n/24.88 t
....\glue 9.12271 plus 4.56136 minus 3.0409
....\OT1/cmss/bx/n/24.88 A
....\OT1/cmss/bx/n/24.88 r
....\OT1/cmss/bx/n/24.88 t
....\OT1/cmss/bx/n/24.88 i
....\OT1/cmss/bx/n/24.88 c
....\OT1/cmss/bx/n/24.88 l
....\OT1/cmss/bx/n/24.88 e
....\penalty 10000
....\glue(\parfillskip) 0.0
....\glue(\rightskip) 0.0 plus 1.0fil
...\glue 5.87494
...\glue 11.74988
...\glue(\parskip) 0.0
...\glue(\baselineskip) 6.60007
...\hbox(15.39993+6.60007)x460.72128, glue set 199.46089fil
....\glue(\leftskip) 0.0 plus 1.0fil
....\hbox(0.0+0.0)x0.0
....\hbox(15.39993+6.60007)x61.79951
.....\mathon
.....\vbox(15.39993+6.60007)x61.79951
......\hbox(15.39993+6.60007)x61.79951
.......\glue(\tabskip) 0.0
.......\hbox(15.39993+6.60007)x61.79951
........\rule(15.39993+6.60007)x0.0
........\glue 6.0
........\glue 0.0 plus 1.0fil
........\OT1/cmr/m/n/17.28 A
........\OT1/cmr/m/n/17.28 u
........\OT1/cmr/m/n/17.28 t
........\OT1/cmr/m/n/17.28 h
........\OT1/cmr/m/n/17.28 o
........\OT1/cmr/m/n/17.28 r
........\glue 0.0 plus 1.0fil
........\glue 6.0
.......\glue(\tabskip) 0.0
.....\mathoff
....\penalty 10000
....\glue(\parfillskip) 0.0
....\glue(\rightskip) 0.0 plus 1.0fil
...\glue 11.74988
...\glue 0.0 plus 11.74988
...\penalty -51
...\glue 13.0 plus 6.0 minus 8.0
...\glue 23.49976
...\glue 0.0 plus 1.0fil
...\glue 0.0
...\glue 0.0 plus 0.0001fil
..\glue(\baselineskip) 43.01668
..\hbox(7.73332+0.0)x460.72128
...\hbox(7.73332+0.0)x460.72128
....\vbox(7.73332+0.0)x460.72128
.....\hbox(7.73332+0.0)x460.72128, glue set 227.42317fil
......\glue 0.0 plus 1.0fil
......\OT1/cmr/m/n/12 2
......\glue 0.0 plus 1.0fil
...\glue 0.0 plus 1.0fil minus 1.0fil

(./additionalpage2.aux)

 *File List*
scrartcl.cls    2012/07/29 v3.11b KOMA-Script document class (article)
scrkbase.sty    2012/07/29 v3.11b KOMA-Script package (KOMA-Script-dependent ba
sics and keyval usage)
 scrbase.sty    2012/07/29 v3.11b KOMA-Script package (KOMA-Script-independent 
basics and keyval usage)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty    2012/06/15 v3.12 KOMA-Script package (loading files)
tocbasic.sty    2012/04/04 v3.10b KOMA-Script package (handling toc-files)
scrsize12pt.clo    2012/07/29 v3.11b KOMA-Script font size class option (12pt)
typearea.sty    2012/07/29 v3.11b KOMA-Script package (type area)
babel.sty    2013/05/16 v3.9f The Babel package
english.ldf    2012/08/20 v3.3p English support from the babel system
blindtext.sty    2012/01/06 V2.0 blindtext-Package
xspace.sty    2009/10/20 v1.13 Space after command names (DPC,MH)
 ***********

 )</usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb>
</usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb></
usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmssbx10.pfb>
Output written on additionalpage2.pdf (2 pages, 25351 bytes).
SyncTeX written on additionalpage2.synctex.gz.
Transcript written on additionalpage2.log.

答案1

您发布的日志显示

Missing character: There is no ï in font cmr12!
Missing character: There is no » in font cmr12!
Missing character: There is no ¿ in font cmr12!

这意味着文件开头有“UTF-8 BOM”。最好配置编辑器不这样做,但如果不方便,这里有一些解决方法:

如何抑制输出中的BOM效应?

相关内容