章节名称超出页数

章节名称超出页数

我正在编辑一组文档,其中一些文档的作者给出了很长的标题,当它们被格式化为章节时,标题会超出页面。以下代码足以重现这种情况:

\documentclass[12pt,letterpaper]{book} % 12pt is a manuscript requirement.
% I am using the following three packages with pdflatex.
\usepackage[utf8x]{inputenx}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usepackage[top=3.0in,head=2.0in,inner=2.0in,outer=1.0in,bottom=1.0in,nofoot]{geometry} % Manuscript requirement.
\usepackage[none]{hyphenat} % Manuscript requirement.
\usepackage{microtype} % Provides ligature disabling in pdflatex (manuscript requirement) among other things.
\usepackage[document]{ragged2e} % Manuscript requirement.
\usepackage[doublespacing]{setspace} % Manuscript requirement.
\usepackage{textcomp}
\usepackage{tgheros} % The font that I intend to use.
\sloppy % Helps package hyphenat.
\renewcommand*{\familydefault}{\sfdefault}
\DisableLigatures[f]{encoding=T1} % Manuscript requirement.
\begin{document}
\selectlanguage{german}
\renewcommand*{\chaptername}{\textnumero{}}
\renewcommand*{\thechapter}{592}
\chapter{>>Kleiner Ärger -- vom Mantel der Zufriedenheit überdeckt<< (Beweise für die Unmenschlichkeit und Verlogenheit der >>Arbeiter<<-Annonce in >>Welt<< und >>Spiegel<<) (von~Schnitzler, 2.~August~1971)}
\textlangle{}Text\textrangle{}
\end{document}

从很多方面来说都很令人讨厌,不是吗?

在这种情况下,我更愿意将标题从下边距拆分到下一页。有人知道如何做到这一点吗?

答案1

考虑到你需要满足相当严格的格式相关要求,对于章节标题页,你可以合理改变的唯一两个自由参数是(i)插入的额外垂直空间量多于章节编号(默认值:)50pt和(ii)插入的额外垂直空间量之间章节号行和包含章节标题本身的行(默认值:) 。以下代码使用包的20pt命令将这些参数设置为。\patchcmdetoolbox0

我还为页眉提供了一个“简称”;您的出版商肯定不会强迫您在该空间中提供完整的章节名称。

\documentclass[12pt,letterpaper]{book} % 12pt is a manuscript requirement.
% I am using the following three packages with pdflatex.
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usepackage[top=3.0in,head=2.0in,inner=2.0in,outer=1.0in,
     bottom=1.0in,nofoot]{geometry} % Manuscript requirement.
\usepackage[none]{hyphenat} % Manuscript requirement.
\usepackage{microtype} % Provides ligature disabling in pdflatex 
    (manuscript requirement) among other things.
\DisableLigatures[f]{encoding=T1} % Manuscript requirement.
\usepackage[document]{ragged2e} % Manuscript requirement.
\usepackage[doublespacing]{setspace} % Manuscript requirement.
\usepackage{textcomp}
\usepackage{tgheros} % The font that I intend to use.
\sloppy % Helps package hyphenat.
\renewcommand*{\familydefault}{\sfdefault}

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@makechapterhead}{50\p@}{0\p@}{}{}
\patchcmd{\@makechapterhead}{\vskip 20\p@}{}{}{}
\makeatother

\begin{document}
\selectlanguage{german}
\renewcommand*{\chaptername}{\textnumero{}}
\renewcommand*{\thechapter}{592}
\chapter[Kleiner Ärger]{>>Kleiner Ärger --- vom Mantel der Zufriedenheit 
   überdeckt<< (Beweise für die Unmenschlichkeit und Verlogenheit der 
   >>Arbeiter<<-Annonce in >>Welt<< und >>Spiegel<<) (von~Schnitzler, 
   2.~August~1971)}

\textlangle{}Text\textrangle{}
\end{document}

在此处输入图片描述

相关内容