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}
编译后:
页面的缩进因页面而异
"header test"有时出现,有时不出现
显式输入"clearpage"
时出现空白页
你能解释一下如何解决和稳定一些东西吗?
谢谢
除非另有说明,默认选项传递给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"。
\makeoddhead
仅为 odd
页面设置 head
er。奇数页仅在每个 other 页出现,将 even
页眉留空(plain
页面样式的默认设置)。
\clearpage
刷新所有挂起的浮动并开始一个新页面。不应发出空白页。但是,通过调用 \chapter
,memoir
实际上会发出 \clearforchapter
,这类似于 \cleartorecto
或 \cleardoublepage
。这必然会清除页面,直到到达奇数页,确保章节从右边开始。
我有一个 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}
编译后:
页面的缩进因页面而异
"header test"有时出现,有时不出现
显式输入"clearpage"
时出现空白页
你能解释一下如何解决和稳定一些东西吗? 谢谢
除非另有说明,默认选项传递给
memoir
is to set the document intwoside
mode. See p 5 of thememoir
documentation 下REMARKS:Calling the class with no options is equivalent to:
\documentclass[letterpaper,10pt,twoside,onecolumn,openright,final]{memoir}
在
twoside
下,奇数页和偶数页从内边距或装订线偏移。这导致页面的不同"indentations"。\makeoddhead
仅为odd
页面设置head
er。奇数页仅在每个 other 页出现,将even
页眉留空(plain
页面样式的默认设置)。\clearpage
刷新所有挂起的浮动并开始一个新页面。不应发出空白页。但是,通过调用\chapter
,memoir
实际上会发出\clearforchapter
,这类似于\cleartorecto
或\cleardoublepage
。这必然会清除页面,直到到达奇数页,确保章节从右边开始。