我想要制作一个包含两项裁定的标题...
以下是我目前所掌握的信息:
\documentclass[a4paper,12pt,oneside,showframe]{memoir}
\setlrmarginsandblock{2.5cm}{2cm}{*}
\setulmarginsandblock{3cm}{*}{1}
\checkandfixthelayout
\chapterstyle{bianchi}
\usepackage{blindtext, fontspec}
\nouppercaseheads
\makepagestyle{mystyle}
\setheaderspaces{*}{0.5cm}{*}
\makeoddhead{mystyle}{\bfseries\sectionmark / \itshape\leftmark}{ \textbf{FooBar~--} \itshape any custom fixed text \\}{\bfseries Page | \itshape\thepage}
\makeoddfoot{mystyle}{}{}{}
\makepsmarks{mystyle}{%
\createmark{chapter}{left}{nonumber}{}{}}
\pagestyle{mystyle}
\begin{document}
\Blinddocument
\Blinddocument
\end{document}
我确实得到了两条行标题,但我不确定是否得到了两条规则。还有没有办法将页眉、页脚更改为浅绿色?
答案1
对这两条规则的回答。以下添加到/更改到您的 MWE 的代码位在标题的第一行和第二行之间生成一条规则,并在标题底部生成一条规则。
...
\setheadfoot{60pt}{20pt} % your header is too large
\checkandfixthelayout
...
\makeheadrule{mystyle}{\textwidth}{0.4pt} % rule at the bottom
\makeoddhead{mystyle}{\bfseries\sectionmark / \itshape\leftmark}%
{\textbf{FooBar---} \itshape any custom fixed text \\[0.5\baselineskip]}%
{\rule{\textwidth}{0.4pt} \bfseries Page | \itshape\thepage
}
...