我正在使用 komacv 包编写简历,我想在除第一页之外的每一页顶部添加地址标题。我该怎么做?
编辑:这里有一个带有解决方案的工作示例:
\documentclass[%
]{komacv}
\pagestyle{scrheadings}
\clearscrheadfoot
\clearpairofpagestyles
\ifoot{CV~\firstname~\familyname}
\ofoot{\pagemark/\totalpagemark}
\ihead{\ifnum \value{page}=1\else My Address Header Left Entry\fi}
\ohead{\ifnum \value{page}=1\else My Address Header Right Entry\fi}
\addtokomafont{firstnamefont}{\fontsize{35}{50}}
\renewcommand*{\title}{CV}% PDF metadata
\renewcommand*{\firstname}{Jane}
\renewcommand*{\familyname}{Eyre}
\renewcommand*{\acadtitle}{B.\,Ed.}
\renewcommand*{\addressstreet}{Ferndean House}
\renewcommand*{\addresscity}{Ferndean Village}
\renewcommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
\renewcommand*{\mobile}{009-87654321}
\begin{document}
\raggedbottom
\maketitle
\section{Personal Information}
\cvitem{Date of birth}{February 15, 1828}
\newpage
\section{Education}
\cventry{1835--1838}{Homeschooling}{}{Gateshead}{grades 1--3}{Teacher: Mr.~NN, under supervision of my aunt Ms. Reed.}
\end{document}
答案1
不幸的是,问题中没有 MWE,所以以下答案只是猜测。
当前版本的komacv
加载包scrlayer-scrpage
。因此,您可以使用类似
\pagestyle{scrheadings}
\clearpairofpagestyles
\ihead{\ifnum \value{page}=1\else My Address Header Entry\fi}