![回忆录:删除章节页中的标题规则](https://linux22.com/image/243895/%E5%9B%9E%E5%BF%86%E5%BD%95%EF%BC%9A%E5%88%A0%E9%99%A4%E7%AB%A0%E8%8A%82%E9%A1%B5%E4%B8%AD%E7%9A%84%E6%A0%87%E9%A2%98%E8%A7%84%E5%88%99.png)
如何删除章节页中的标题规则而不删除页脚规则,例如,仅在所有页面的页脚页中规则,但不在章节页中,但在其他页面中有标题规则。
\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
。