多页 \tableofcontents 中的页码

多页 \tableofcontents 中的页码

我正在使用回忆录类; \mainmatter将编号切换为罗马字体并将页面下方居中编号,这很好,但在多页目录中,只有第一页以这种方式编号,下一页的编号均采用罗马字体,但在页眉中!

目录中所有页面的编号是否可以采用罗马字体?(不影响其他页面,例如序言等)

\documentclass[a4paper, twoside, openright, oldfontcommands, 11pt]{memoir}
\usepackage[sc]{mathpazo}
\begin{document}%%
%%%%%%%%%%%%
\frontmatter     
%%%%%%%%%% STYLES%%%%%%%%
\chapterstyle{dash}
\setsecheadstyle{\scshape\raggedright}
\setlength{\headwidth}{\textwidth}

\pagestyle{companion}

\setsecheadstyle{\scshape\large\raggedright}
\setsubsecheadstyle{\scshape\raggedright}
\setsubsubsecheadstyle{\itshape\raggedright}
\setparaheadstyle{\scshape \raggedright}
%%%%%%%%%%%%%%%%%%%%%%%

\chapter{Prologue}


\chapter{Thanks}
Thanks
\newpage        
\tableofcontents     
\mainmatter              
\chapter{zz}
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\chapter{zz}
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 

\end{document}

答案1

memoir文件有三页目录,编号为 i、ii、iii

\documentclass{memoir}
\begin{document}

\frontmatter

\tableofcontents
\section{ff}bbb
\section{ff}bbb


\mainmatter

\chapter{zz}
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\chapter{zz}
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 

\end{document}

答案2

如果您不想在目录中添加页眉,请将其排版为\pagestyle{plain}

\documentclass[a4paper, twoside, openright, oldfontcommands, 11pt]{memoir}
\usepackage[sc]{mathpazo}
\begin{document}%%
%%%%%%%%%%%%
\frontmatter     
%%%%%%%%%% STYLES%%%%%%%%
\chapterstyle{dash}
\setsecheadstyle{\scshape\raggedright}
\setlength{\headwidth}{\textwidth}

\pagestyle{companion}

\setsecheadstyle{\scshape\large\raggedright}
\setsubsecheadstyle{\scshape\raggedright}
\setsubsubsecheadstyle{\itshape\raggedright}
\setparaheadstyle{\scshape \raggedright}
%%%%%%%%%%%%%%%%%%%%%%%

\chapter{Prologue}


\chapter{Thanks}
Thanks
\newpage

{\pagestyle{plain}\tableofcontents\relax\clearpage}

\mainmatter              
\chapter{zz}
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\chapter{zz}
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 
\section{aa}bbb \section{aa}bbb \section{aa}bbb 

\end{document}

在此处输入图片描述

相关内容