这是我的尝试:
\documentclass[fontsize=9pt,paper=a6,headings=small,titlepage=false]{scrbook}
\usepackage{kantlipsum}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\lehead{Magnum Opus}
\automark{chapter}
\begin{document}
\frontmatter
\mainmatter
\begin{center}
\thispagestyle{empty}
\vspace*{50px}
{\Huge{Mangnum Opus}}\\
\vspace*{25px}
\em{Sum Boddhi}
\end{center}
\tableofcontents
\addchap{Beginning}
\kant
\addchap{Middle}
\kant
\addchap{End}
\kant
\end{document}
可以看出,它满足书名条件,但省略了章节。
答案1
默认情况下\rohead{\rightmark}
使用。要获得所需结果,您必须设置\rohead{\leftmark}
:
\documentclass[fontsize=9pt,paper=a6,headings=small,titlepage=false]{scrbook}
\usepackage{kantlipsum}
\usepackage{scrlayer-scrpage}% sets pagestyle scrheadings automatically
\automark{chapter}
\lehead{Magnum Opus}
\rohead{\leftmark}
\begin{document}
\begin{titlepage}
\begin{center}
\vspace*{50px}
{\Huge{Mangnum Opus}}\\
\vspace*{25px}
\em{Sum Boddhi}
\end{center}
\end{titlepage}
\tableofcontents
\addchap{Beginning}
\kant
\addchap{Middle}
\kant
\addchap{End}
\kant
\end{document}
您也可以使用\automark[chapter]{chapter}
。然后\chapter
设置右侧和左侧标记:
\documentclass[fontsize=9pt,paper=a6,headings=small,titlepage=false]{scrbook}
\usepackage{kantlipsum}
\usepackage{scrlayer-scrpage}% sets pagestyle scrheadings automatically
\automark[chapter]{chapter}
\lehead{Magnum Opus}
\begin{document}
\begin{titlepage}
\begin{center}
\vspace*{50px}
{\Huge{Mangnum Opus}}\\
\vspace*{25px}
\em{Sum Boddhi}
\end{center}
\end{titlepage}
\tableofcontents
\addchap{Beginning}
\kant
\addchap{Middle}
\kant
\addchap{End}
\kant
\end{document}
结果和上面一样。
如果章节名称也应位于章节页眉中,请添加
\renewcommand*\chapterpagestyle{scrheadings}