Scrlayer-scrpage 包 + 景观环境创建过度填充的 \hbox

Scrlayer-scrpage 包 + 景观环境创建过度填充的 \hbox

scrlayer-scrpage将该包与包landscape中的环境一起使用pdflscape会创建一对overfull \hboxbadbox。

一些用户评论说他们没有收到 badbox。

版本信息:

我正在使用 Tex Live 2014(TeXworks、pdfLaTex)。

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
scrlayer-scrpage.sty    14/12/2013 v0.9.1548 package (end user interface for scrlayer)
scrlayer.sty    31/10/2013 v0.9.1480 package (defining layers and page styles)
scrkbase.sty    2013/12/19 v3.12 KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
 scrbase.sty    2013/12/19 v3.12 KOMA-Script package (KOMA-Script-independent basics and keyval usage)
  keyval.sty    2014/05/08 v1.15 key=value parser (DPC)
scrlfile.sty    2013/12/19 v3.12 KOMA-Script package (loading files)
pdflscape.sty    2008/08/11 v0.10 Display of landscape pages in PDF (HO)
  lscape.sty    2000/10/22 v3.01 Landscape Pages (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
supp-pdf.mkii
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live

平均能量损失

\documentclass{article}
\listfiles

\usepackage{scrlayer-scrpage}           % improved header commands. [supercedes `fancyhdr' package].
\usepackage{pdflscape}                  % landscape page layout.

\begin{document}

\begin{landscape}
a
\end{landscape}

\end{document}

图片

MWE 错误图片

答案1

我使用以下软件包版本编译了您的代码,没有出现错误和警告:

 *File List*
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
scrlayer-scrpage.sty    2015/07/02 v3.18 KOMA-Script package (end user interface for scrlayer)
scrlayer.sty    2015/07/02 v3.18 KOMA-Script package (defining layers and page styles)
scrkbase.sty    2015/07/02 v3.18 KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
 scrbase.sty    2015/07/02 v3.18 KOMA-Script package (KOMA-Script-independent basics and keyval usage)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty    2015/07/02 v3.18 KOMA-Script package (loading files)
pdflscape.sty    2008/08/11 v0.10 Display of landscape pages in PDF (HO)
  lscape.sty    2000/10/22 v3.01 Landscape Pages (DPC)
graphics.sty    2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
supp-pdf.mkii
 ***********

我希望您能意识到您应该更新您的 tex 发行版。您使用的版本有点过时了!例如,请参阅article.clsscrlayer-scrpage.sty

顺便说一句:\listfiles第一行应该更好,所以首先\listfiles,第二行接下来\documentclass ...

相关内容