将回忆录前言和后言章节标题置于中心

将回忆录前言和后言章节标题置于中心

如何将使用 编写的文档的前言和后言中的章节标题置于中心位置memoir

请记住,主要章节不应受到任何影响。

答案1

定义您自己的章节样式。例如,

% ===== FRONT MATTER CHAPTER STYLE
\makechapterstyle{frontmatter}{% Front matter chapter style
  \chapterstyle{default}% Or whatever you consider to be default
  \renewcommand{\printchaptertitle}[1]{% Update chapter title printing macro
    \centering\chaptitlefont ##1}% Centred chapter title
}
% ===== MAIN MATTER CHAPTER STYLE
\makechapterstyle{mainmatter}{% Main matter chapter style
  \chapterstyle{default}% Or whatever you consider to be default
}
% ===== BACK MATTER CHAPTER STYLE
\makechapterstyle{backmatter}{% Back matter chapter style
  \chapterstyle{frontmatter}% Backmatter chapterstyle is similar to frontmatter
}

如果需要的话,将这些章节样式更改添加到相应的格式宏中:

\let\oldfrontmatter\frontmatter
\renewcommand{\frontmatter}{\chapterstyle{frontmatter}\oldfrontmatter}
\let\oldmainmatter\mainmatter
\renewcommand{\mainmatter}{\chapterstyle{mainmatter}\oldmainmatter}
\let\oldbackmatter\backmatter
\renewcommand{\backmatter}{\chapterstyle{backmatter}\oldbackmatter}

相关内容