我正在使用回忆录,当我使用\chapter*
标题时,它是从上一节复制而来的。
我该如何修复它?
梅威瑟:
\documentclass{memoir}
\usepackage{lipsum}
\setcounter{secnumdepth}{3}
\copypagestyle{ruledsmallhd}{ruled}
\makeevenhead{ruledsmallhd}{\footnotesize\scshape\leftmark}{}{}
\makeoddhead{ruledsmallhd}{}{}{\footnotesize\scshape\rightmark}
\makeheadrule{ruledsmallhd}{0px}{0px}
\begin{document}
\pagenumbering{roman}
\pagestyle{ruledsmallhd}
\cleardoublepage
\maxtocdepth{subsection}
\tableofcontents
\cleardoublepage
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\lipsum
\end{document}
答案1
不需要任何特殊技巧:
\documentclass{memoir}
\usepackage{lipsum}
\setcounter{secnumdepth}{3}
\copypagestyle{ruledsmallhd}{ruled}
\makeevenhead{ruledsmallhd}{\footnotesize\scshape\leftmark}{}{}
\makeoddhead{ruledsmallhd}{}{}{\footnotesize\scshape\rightmark}
\makeheadrule{ruledsmallhd}{0pt}{0pt}
\begin{document}
\frontmatter
\pagestyle{ruledsmallhd}
\cleardoublepage
\maxtocdepth{subsection}
\tableofcontents
\chapter{Introduction}
\lipsum
\mainmatter
\chapter{Let the fun begin}
\lipsum
\end{document}