使用memoir
,我该如何更改以下来源,以便“章节”一词不会出现在偶数页的页眉中?
也就是说,我现在得到
Chapter 1. The Fall of Humpty-Dumpty
我会得到:
1. The Fall of Humpty-Dumpty
来源:
\documentclass{memoir}
\usepackage{textcase}
\copypagestyle{chapter}{plain}
\makeoddfoot{chapter}{}{\sffamily\thepage}{}
\makeheadrule {headings}{\textwidth}{\normalrulethickness}
\nouppercaseheads
\newcommand{\mainheads}{%
\makeevenhead{headings}{\bfseries\sffamily\thepage}{}{\bfseries\sffamily \leftmark}%
\makeoddhead{headings}{\bfseries\sffamily\rightmark}{}{\bfseries\sffamily\thepage}%
}
\usepackage{lipsum}
\begin{document}
\mainmatter
\mainheads
\chapter{The Fall of \NoCaseChange{Humpty-Dumpty}}
\section{The Wall}
\lipsum[1-15]
\section{The \NoCaseChange{King's} horses}
\end{document}
以下是我现在所拥有的偶数标题:
请注意,奇数标题已经按照需要省略了“Section”:
答案1
添加
\addtopsmarks{headings}{}{
\createmark{chapter}{left}{shownumber}{}{. \ }
}
\pagestyle{headings}
记住最后一行,将更改合并到当前使用的页面样式中