我想製作一個有兩個裁決的標題...
這是我到目前為止所擁有的:
\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
}
...