我正在使用文档类memoir
。我也想用\leftmark
它将节标题显示为标题。你能给出一个小示例程序说明如何\leftmark
在 LaTeX 中使用吗memoir
?我读了手册,但不明白。以下是程序
\documentclass[a4paper]{memoir}
\addtopsmarks{headings}{}{
\createmark{section}{both}{shownumber}{}{. \ }
}
\pagestyle{headings}
\begin{document}
\section*{Introduction}
same moment it is produced. When you flip a switch, the electric power is there. Behind the scenes, state electricity board employees are hard at work operating and maintaining the comwhich I have learnt at GNDTP 1 in this report. Additional help has been taken from internet which has
\end{document}
答案1
正如我所说,这很容易。请不要让我们为您完成工作。至少发布一个您尝试过的简单示例。
\documentclass[a4paper]{memoir}
\addtopsmarks{headings}{}{
\createmark{section}{both}{shownumber}{}{. \ }
}
\pagestyle{headings}
\usepackage{kantlipsum} % provides sample text
\begin{document}
\section{Test}
\kant
\end{document}