\end{document} 行上的框过满

\end{document} 行上的框过满

我在 pdflatex+biblatex+memoir 下遇到了“不合逻辑”的超满警告。不合逻辑是因为页面范围不合理,而且它发生在\end{document}。警告是: Overfull \hbox (83.28351pt too wide) in paragraph at lines 3546--291 83 点很多,但最终输出中没有任何异常,即使使用\overfullrule=5pt

第 291 行是:\end{document},唯一一个超过 3546 行的文件是 .aux,此行是:\abx@aux@number{225}{Honegger-Fresco1993}{0}{nyt}{1} 第一行与参考书目相关。

相关日志文件是:

Package atenddvi Info: Last page = 88.
 [82]
\tf@toc=\write7
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 291.
Package atveryend Info: Executing hook `AfterLastShipout' on input line 291.
 (tesi.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 291.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 291.
Package rerunfilecheck Info: File `tesi.out' has not changed.
(rerunfilecheck)             Checksum: C9EB163FC90A78187E3A4EF49264197F;2434.
Package logreq Info: Writing requests to 'tesi.run.xml'.

Overfull \hbox (83.28351pt too wide) in paragraph at lines 3546--291
\T1/XCharter-TLF/m/n/10.95 (-15) 89 90 91 92 93 94 95 96 97                    

                                                                              |

 []

 ) 
Here is how much of TeX's memory you used:

这些空行、管道符和右括号又是什么呢?

我正在尝试创建 MWE,但它仍然太大。

我是否应该忽略此警告(正如我正在做的那样)或者我可以学习和改进什么?非常感谢!

答案1

因为您没有提供适当的 MWE,所以很难帮助您。

最后,我无法重现您的错误,但在您给出的 bib 文件中,我发现一个问题---我猜---导致了您的问题。

我有以下 MWE(基于您给出的文件,稍微减少并添加了两个\cite命令以获得适当的编译和使用包filecontents来包含两个 bib 条目):

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Merleau-Ponty1945,
  Title      = {Phénoménologie de la perception},
  Author     = {Maurice Merleau-Ponty},
  Date       = {1945},
  Location   = {Paris},
  Publisher  = {Éditions Gallimard},
  Series     = {Bibliothèque des Idées},
  Langid     = {french},
  Options    = {skipbib=true},
}
@Book{Merleau-Ponty2003,
  Title          = {Fenomenologia della percezione},
  Author         = {Maurice Merleau-Ponty},
  Date           = {2003},
  ISBN           = {9788845253560},
  Publisher      = {Bompiani},
  Langid         = {italian},
  Related        = {Merleau-Ponty1945},
  Relatedstring  = {Orig.},
}
\end{filecontents*}


\documentclass[%
  11pt,a4paper,extrafontsizes,
  french,
  english,
  italian
]{memoir}

\usepackage[%
  french,
  english,
  italian
]{babel}
\usepackage{XCharter}                       %% per i testi Bitstream Charter con in più i font Small Caps
\usepackage[T1]{fontenc}                    %% usa la codifica che supporta le lettere accentate
\usepackage[utf8]{inputenc}                 %% codifica dei testi (va dopo fonts e fontenc)
\usepackage[autostyle]{csquotes}            %% richiesto da biblatex
\usepackage[%
  style=authoryear,
  language=auto,
  backend=biber,
  firstinits=true,
  uniquename=init,
  defernumbers=true,
  isbn=false,
  eprint=false,
  urldate=comp,
  sorting=nyt,
  safeinputenc=true,
  bibencoding=utf8,
  clearlang=true,
  maxcitenames=1,
  mergedate=basic,
  block=space,
  autolang=other
]{biblatex}             %% gestione della bibliografia

\urlstyle{sf}
\usepackage{hyperref}                                   %% create hyperlinks and metadata in PDF 

%%% Page size
\semiisopage
\linespread{1.05}       %% Suggested for Charter

%%% Adjust bibliographic entries
\DeclareFieldFormat[article]{volume}{\bibstring{volume}~#1}
\DeclareFieldFormat[article]{number}{\bibstring{number}~#1}
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \setunit*{\addcomma\space}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}

\makechapterstyle{thesisChapterStyle}{
    \chapterstyle{default}
    \renewcommand*{\beforechapskip}{15pt}
    \renewcommand*{\chaptitlefont}{\normalfont\Huge\bfseries\sffamily\raggedleft}
    \renewcommand*\printchaptername{}
    \renewcommand*{\chapnumfont}{\normalfont\bfseries\fontsize{100}{130}\selectfont\raggedleft}
}
\chapterstyle{thesisChapterStyle}

\checkandfixthelayout

\addbibresource{\jobname.bib}
\showboxbreadth=\maxdimen\showboxdepth=\maxdimen %more info about overfull box


\begin{document}
 \cite{Merleau-Ponty1945}% Options = {skipbib=true} in bib entry
\cite{Merleau-Ponty2003}

\backmatter
\printbibliography 
\end{document} 

结果出现以下警告:

pdfTeX warning (dest): name{cite.0@Merleau-Ponty1945} has been referenced but does not exist, replaced by a fixed one

其原因可以在 bib 条目中找到,请参阅Options

@Book{Merleau-Ponty1945,
  Title      = {Phénoménologie de la perception},
  Author     = {Maurice Merleau-Ponty},
  Date       = {1945},
  Location   = {Paris},
  Publisher  = {Éditions Gallimard},
  Series     = {Bibliothèque des Idées},
  Langid     = {french},
  Options    = {skipbib=true}, %<========================================
}

现在 LaTeX 把这本书的引用写入了文档,但不允许将其添加到参考书目中。但 LaTeX 想要链接到它...

在您的文档中多次执行此操作会导致出现问题......

以下是文中引用的内容:

在此处输入图片描述

以及由此产生的简单参考书目:

在此处输入图片描述

如果您注释该行,则\cite{Merleau-Ponty1945}警告就会消失。

您的解决方案是什么?我猜应该Options在 bib 文件中删除它,或者不要在您的作品中引用它们...

相关内容