我想使用带有以下选项的标准 scrlttr2 类来更改 headsepline 和 fromrule 的颜色和粗细:
headsepline=on
fromrule=aftername
答案1
以下 MWE 在第一页和第二页上给出红色 5pt 线:
\documentclass{scrlttr2}
\usepackage{scrlayer-scrpage,xcolor}
\KOMAoptions{headsepline=true, % Syntax error corrected 8.2.2020
headsepline=5pt:,
fromrule=aftername}
\addtokomafont{headsepline}{\color{red}}
\addtokomafont{fromrule}{\color{red}}
\makeatletter
\@setplength{fromrulethickness}{5pt}
\makeatother
\begin{document}
\begin{letter}{%
Ernst Hemingway\\
Main street\\
2300\enspace\ PAMPLONA%
}
\setkomavar{yourref}{---}
\setkomavar{myref}{2013--999}
\setkomavar{date}{18. januar 2013}
\opening{}
Bulls are nice, but the last general meeting was about one year ago.
I want to remind you, that the constitution of our
club advises you to make a general meeting every
six month. Because of this I expect the executive
board to detain such a meeting immediately.
\pagebreak
I want to remind you, that the constitution of our
club advises you to make a general meeting every
six month. Because of this I expect the executive
board to detain such a meeting immediately.
\closing{Thank you}
\end{letter}
\end{document}
请参阅第 226 页和第 54 页KOMA 脚本手册(v3.18)。