几年来,我一直在使用烹饪包装以创建一本带有食谱的精美书籍。
前段时间,生成的 PDF 开始变空,只有目录可读,其余部分都是白页。这可能是什么原因?
\documentclass{scrartcl}
\usepackage{cooking}
\pagestyle{recipe}
\begin{document}
\tableofcontents
\section{Salate}
\begin{recipe}{Salade Olivier}
\ingredient{Eine kleine Zwiebel} \ingredient{fünf größere Essiggurken} und
\ingredient{Kapern} fein Hacken. \ingredient{500g Schinken}
in kleine Quadrate schneiden. \ingredient{Vier Eier} hart
kochen. \ingredient{ca. zehn große Kartoffeln} kochen und pellen. Eier und
Kartoffeln würfeln. Alles zusammen mit \ingredient{einer Dose Erbsen} in eine große Schüssel geben.
\end{recipe}
\end{document}
正当我想要附加log
建筑物时mini.pdf
,我发现那里有大量的溢出hboxes
:
Running `LaTeX' on `mini' with ``pdflatex -shell-escape -interaction=nonstopmode "\input" mini.tex''
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex)
\write18 enabled.
entering extended mode
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 8 language(s) loaded.
(./mini.tex (/home/markus/texmf/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2015/04/02 v3.17.2062 KOMA-Script document class (article)
(/home/markus/texmf/tex/latex/koma-script/scrkbase.sty
(/home/markus/texmf/tex/latex/koma-script/scrbase.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/home/markus/texmf/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2015/04/02 v3.17.2062 KOMA-Script package (loading files)
Copyright (C) Markus Kohm
))) (/home/markus/texmf/tex/latex/koma-script/tocbasic.sty)
(/home/markus/texmf/tex/latex/koma-script/scrsize11pt.clo)
(/home/markus/texmf/tex/latex/koma-script/typearea.sty
Package typearea, 2015/04/02 v3.17.2062 KOMA-Script package (type area)
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-
)) (/usr/share/texlive/texmf-dist/tex/latex/cooking/cooking.sty) (./mini.aux)
(./mini.toc)
Overfull \hbox (2481.99472pt too wide) in paragraph at lines 9--9
[]\OT1/cmr/m/it/12 Salade |
Overfull \hbox (2483.9448pt too wide) in paragraph at lines 9--9
\OT1/cmr/m/it/12 Olivier |
Overfull \hbox (2448.99443pt too wide) in paragraph at lines 11--11
[]|
Overfull \hbox (2448.99443pt too wide) in paragraph at lines 11--11
|
Overfull \hbox (2448.99443pt too wide) in paragraph at lines 11--12
[]|
Overfull \hbox (2467.24446pt too wide) in paragraph at lines 11--12
\OT1/cmr/m/n/10.95 und |
Overfull \hbox (2448.99443pt too wide) in paragraph at lines 12--12
[]|
Overfull \hbox (2466.33195pt too wide) in paragraph at lines 12--12
\OT1/cmr/m/n/10.95 fein|
Overfull \hbox (2486.71112pt too wide) in paragraph at lines 12--12
\OT1/cmr/m/n/10.95 Hacken. |
诸如此类,有很多条线路……
Overfull \hbox (2461.22194pt too wide) in paragraph at lines 15--16
\OT1/cmr/m/n/10.95 sel|
Overfull \hbox (2479.7153pt too wide) in paragraph at lines 15--16
\OT1/cmr/m/n/10.95 geben. |
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] (./mini.aux) )
(see the transcript file for additional information)</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmssbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmti12.pfb>
Output written on mini.pdf (2 pages, 49544 bytes).
Transcript written on mini.log.
你能帮我重新打印一下食谱吗?我只能提供真正美味食物的德语文本 ;)
答案1
嗯,KOMA-Script 添加了一些标准类所article
具有的功能。
使用当前的 MiKTeX 2.9 和当前的 KOMA-Script 版本,2016/06/14 v3.21
我可以仅用一个在我看来非常明确的警告来编译您给定的代码:
Class scrartcl Warning: incompatible usage of \@ssect detected.
(scrartcl) You've used the KOMA-Script implementation of \@ssect
(scrartcl) from within a non compatible caller, that does not
(scrartcl) \scr@s@ct@@nn@m@ locally.
(scrartcl) This could result in several error messages on input line 11.
您使用的 KOMA-Script 版本似乎已过时:您的日志文件告诉我们:2015/04/02 v3.17.2062
看起来(我无法测试,我没有旧版本的 KOMA-Script)旧的 KOMA-Script 和包cooking
在协同工作时存在问题。
请更新您的系统以获取最新的 KOMA-Script。
请将其添加\listfiles
为您的 TeX 代码的第一个命令,编译三次,然后将结果中使用的软件包列表(包括版本号(原文如此!))与我的列表进行比较:
*File List*
scrartcl.cls 2016/06/14 v3.21 KOMA-Script document class (article)
scrkbase.sty 2016/06/14 v3.21 KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
scrbase.sty 2016/06/14 v3.21 KOMA-Script package (KOMA-Script-independent basics and keyval usage)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty 2016/06/14 v3.21 KOMA-Script package (loading files)
tocbasic.sty 2016/06/14 v3.21 KOMA-Script package (handling toc-files)
scrsize11pt.clo 2016/06/14 v3.21 KOMA-Script font size class option (11pt)
typearea.sty 2016/06/14 v3.21 KOMA-Script package (type area)
cooking.sty 1999/06/24 v0.9b Cooking recipes
***********
我确信您马上就会发现其中的区别。
顺便说一下,这是我的电脑上生成的 PDF: