如何删除章节页中的标题规则而不删除页脚规则,例如,仅在所有页面的页脚页中规则,但不在章节页中,但在其他页面中有标题规则。
\documentclass[a4paper]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\copypagestyle{rgstyle}{headings}
\makeoddhead{rgstyle}{}{}{\slshape\rightmark}
\makeevenhead{rgstyle}{\slshape\leftmark}{}{}
\makeoddfoot{rgstyle}{R\'egis $\smiley$ \the\year}{}{\thepage}
\makeevenfoot{rgstyle}{\thepage}{}{R\'egis $\smiley$ \the\year}
% add line
\makeheadrule{headings}{\textwidth}{\normalrulethickness}
\makefootrule{headings}{\textwidth}{\normalrulethickness}{\footruleskip}
% fix plain
\copypagestyle{plain}{rgstyle} % overwrite plain with rgstyle
\makeoddhead{plain}{}{}{} % remove right header
\makeevenhead{plain}{}{}{} % remove left header
\pagestyle{rgstyle}
\begin{document}
\chapter{Memoir without headrule in chapter page}
\lipsum
\end{document}
答案1
memoir
就像 一样,使用页面样式book
排版 的第一页。因此,在复制到后,您必须重置页面样式标题规则:\chapter
plain
plain
rgstyle
plain
\copypagestyle{plain}{rgstyle} % overwrite plain with rgstyle
\makeheadrule{plain}{0pt}{0pt} % remove plain header rule
第二个参数\makeheadrule{plain}{<len>}{0pt}
也可以是小于的任何值\textwidth
。