如何才能使章节标题在奇数页居中,使节标题在偶数页居中?
答案1
我建议使用提供的界面titleps
,可轻松捕获节单元标题。界面从fancyhdr
描述于titleps
对于fancyhdr
用户:
\documentclass[twoside]{report}
\usepackage{blindtext,titleps}
\newpagestyle{chapsec}{
\setheadrule{.4pt}
\sethead[\thepage]% <even left head>
[\thesection.\ \sectiontitle]% <even centre head>
[]% <even right head>
{}% <odd left head>
{\thechapter.\ \chaptertitle}% <odd centre head>
{\thepage}% <odd right head>
}
\pagestyle{chapsec}
\begin{document}
\blinddocument
\end{document}