Latex:了解回忆录页面样式

Latex : Understand memoir pagestyle

我有一个 latex 文档示例,希望您解释为什么它没有按预期工作。

这是代码:

\documentclass{memoir}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{background}

\begin{document}
\SetBgContents{plain}
\pagestyle{plain}
\makeoddhead{plain}{}{}{header test}
\blinddocument
\clearpage
\blinddocument
\clearpage
\blinddocument
\clearpage
\end{document}

编译后:

  1. 页面的缩进因页面而异

  2. "header test"有时出现,有时不出现

  3. 显式输入"clearpage"

  4. 时出现空白页

你能解释一下如何解决和稳定一些东西吗? 谢谢

  1. 除非另有说明,默认选项传递给memoir is to set the document in twoside mode. See p 5 of the memoir documentation 下REMARKS:

    Calling the class with no options is equivalent to:

    \documentclass[letterpaper,10pt,twoside,onecolumn,openright,final]{memoir}
    

    twoside下,奇数页和偶数页从内边距或装订线偏移。这导致页面的不同"indentations"。

  2. \makeoddhead 仅为 odd 页面设置 header。奇数页仅在每个 other 页出现,将 even 页眉留空(plain 页面样式的默认设置)。

  3. \clearpage 刷新所有挂起的浮动并开始一个新页面。不应发出空白页。但是,通过调用 \chaptermemoir 实际上会发出 \clearforchapter,这类似于 \cleartorecto\cleardoublepage。这必然会清除页面,直到到达奇数页,确保章节从右边开始。