如何确保标题不“浮动”?

如何确保标题不“浮动”?

classicthesis带有 的文档中twopages,我有章节,它们出现在页眉中。但是对于其中一个,几页的页眉垂直移动。所有其他页面的章节都正确对齐。

  1. 为什么 ?
  2. 如何防止这种浮动发生?

我正在使用这个设置:

\usepackage[beramono, pdfspacing, dottedtoc]{classicthesis}

\renewcommand{\sectionmark}[1]{\markright{\spacedlowsmallcaps{#1}}} % Header for even pages (twoside)
\renewcommand{\subsectionmark}[1]{\markright{\thesection~#1}} % Header on odd pages
\lehead
{
    \mbox{\llap{\small\thepage\kern 1em\color{black} \vline}
    \color{black}\hspace{0.5em}\rightmark\hfil}
} % The header style
\pagestyle{scrheadings}

使用:

\chapter{D'un style d'enseignement \`a Vincennes... Ch\^atelet, Deleuze, Lyotard}

我得到:

在此处输入图片描述

重现如下:

\documentclass[11pt, a4paper, twoside, headinclude, footinclude]{book}

\usepackage[beramono, pdfspacing, dottedtoc ]{classicthesis}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{enumitem, varioref, bm, url, epigraph, libertine, float, afterpage}
\usepackage[autostyle]{csquotes}
\usepackage{lipsum}
\renewcommand{\sectionmark}[1]{\markright{\spacedlowsmallcaps{#1}}} % The header for all pages (oneside) or for even pages (twoside)
\renewcommand{\subsectionmark}[1]{\markright{\thesubsection~#1}} % Uncomment when using the twoside option - this modifies the header on odd pages
\lehead
{
    \mbox{\llap{\small\thepage\kern 1em\color{black} \vline} \color{black}\hspace{0.5em}\rightmark\hfil}
} % The header style
\pagestyle{scrheadings}
\title{Book title}
\date{}
\author{}
\begin{document}
\pagenumbering{gobble}
\newpage\phantom{.}
{\centering \maketitle}
\pagestyle{plain}
\tableofcontents{}
\cleardoublepage
\pagenumbering{arabic}
\pagestyle{scrheadings}
\chapter{D'un style d'enseignement \`a Vincennes\ldots Ch\^atelet, Deleuze, Lyotard}
\lipsum[2-10]
\lipsum[2-10]
\end{document}

在重现代码中,我们可以在最后两页看到问题。

日志说明了发生了什么,但我不知道如何纠正来源:

Chapter 1. [1] Underfull \vbox (badness 1152) has occurred while \output is active Overfull \hbox (25.01971pt too wide) has occurred while \output is active [][] 

Package scrlayer-scrpage Warning: \headheight to low.
(scrlayer-scrpage)                At least 37.8001pt needed,
(scrlayer-scrpage)                but only 15.95pt found.
(scrlayer-scrpage)                I'll enlarge \headheight, for further
(scrlayer-scrpage)                processing, but you should do this yourself,
(scrlayer-scrpage)                e.g., setting typearea's option
(scrlayer-scrpage)                `headheight=37.8001pt'.
(scrlayer-scrpage)                I'll also decrease \topmargin on input line 31.

相关内容