如何配置回忆录中的页眉,以使其不会出现在“事项”的开头页面上?

如何配置回忆录中的页眉,以使其不会出现在“事项”的开头页面上?

我正在用 Memoir 写一本书,但在页眉方面遇到了一些困难。我显然需要更改一些内容,但我不知道该在哪里进行更改。

之后页眉显示正确\chapter{chaptername},但序言的第一页是带星号的 \chapter*{Prefácio},并且它将“Lista de Figuras”(图表列表)放在页眉中。

那么,我该如何正确配置它,以便在“内容”打开页面上不使用标题,例如序言的第一页或目录的第一页?

我对 LaTeX 还是个菜鸟,所以欢迎任何帮助。谢谢!

% The minimal example %
%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{memoir}
\usepackage{lipsum}

\newenvironment{dedication}
{
   \cleardoublepage
   \thispagestyle{empty}
   \vspace*{\stretch{1}}
   \hfill\begin{minipage}[t]{0.66\textwidth}
   \raggedright
}
{
   \end{minipage}
   \vspace*{\stretch{3}}
   \clearpage
}


\makeatletter
\renewcommand{\@chapapp}{}
\newenvironment{chapquote}[2][2em]
  {\setlength{\@tempdima}{#1}
   \def\chapquote@author{#2}
   \parshape 1 \@tempdima \dimexpr\textwidth-2\@tempdima\relax
   \itshape}
  {\par\normalfont\hfill--\ \chapquote@author\hspace*{\@tempdima}\par\bigskip}
\makeatother


% Book's title and subtitle
\title{\Huge \textbf{Book Title}}
% Subtitle \\ \huge Suntitle
% Author 
\author{\textsc{Author's Name}\thanks{\url{www.example.com}}}

\begin{document}

\frontmatter
\maketitle


\begin{dedication}
Dedicated to...
\end{dedication}

\tableofcontents
\listoffigures
%\listoftables


\mainmatter


\chapter*{Preface}
\markboth{Preface}{Preface} %%%==>this doesn't keep the header style.
\lipsum


\chapter{Introduction Chapter}

\begin{chapquote}{Edward J. Phelps, \textit{Source of this quote}}
``The man who makes no mistakes does not usually make anything.''
\end{chapquote}

\section{Section heading}
\lipsum[4]


\section{Another section heading}
\lipsum[4]


\bibliographystyle{bababbrv}
\bibliography{refs}
\nocite{*}

\end{document}

答案1

以下是 jon 对示例文档中的评论的回答,在序言中提供了空标题,并在第一章中提供了运行标题:

\documentclass{memoir}

\usepackage{lipsum}
\usepackage{hyperref}

\newenvironment{dedication}
{
   \cleardoublepage
   \thispagestyle{empty}
   \vspace*{\stretch{1}}
   \hfill\begin{minipage}[t]{0.66\textwidth}
   \raggedright
}
{
   \end{minipage}
   \vspace*{\stretch{3}}
   \clearpage
}

\makeatletter
\renewcommand{\@chapapp}{}
\newenvironment{chapquote}[2][2em]
  {\setlength{\@tempdima}{#1}
   \def\chapquote@author{#2}
   \parshape 1 \@tempdima \dimexpr\textwidth-2\@tempdima\relax
   \itshape}
  {\par\normalfont\hfill--\ \chapquote@author\hspace*{\@tempdima}\par\bigskip}
\makeatother

\title{\Huge \textbf{Book Title}}
\author{\textsc{Author's Name}\thanks{\url{www.example.com}}}

\begin{document}

\frontmatter
\maketitle


\begin{dedication}
Dedicated to...
\end{dedication}

\tableofcontents
\listoffigures

\mainmatter

\chapter*{Preface}
\markboth{}{}
\pagestyle{plain}
\thispagestyle{plain}

\lipsum

\chapter{Introduction Chapter}
\pagestyle{headings}

\begin{chapquote}{Edward J. Phelps, \textit{Source of this quote}}
``The man who makes no mistakes does not usually make anything.''
\end{chapquote}

\section{Section heading}
\lipsum[4]

\section{Another section heading}
\lipsum[4-10]

\nocite{*}
\bibliographystyle{bababbrv}
\bibliography{refs}

\end{document}

相关内容