如何在标题中放置个人信息(地址、电话)

如何在标题中放置个人信息(地址、电话)

我使用的是现代简历休闲风格。目前我在页脚中有个人信息(地址、街道、电话、电子邮件)。

是否可以将这些信息放在页眉而不是页脚中,并且仅放在第一页?

答案1

我没有清理代码,因为清理需要大量重写。

\documentclass[a4paper]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage{geometry}

\firstname{\textsc{S}} % Your first name
\familyname{\textsc{K}} % Your last name

 %many footer words should have been header for symantec reason but they need lot of rewriting hence I left them as such
\makeatletter
\renewcommand*{\makecvfooter}{%
  \setlength{\headheight}{2cm}%
  \setlength{\headsep}{2cm}%
  \topmargin=-1cm
  \setlength{\footerwidth}{0.8\textwidth}%
  \fancypagestyle{plain}{%
    \fancyhead[c]{%
      \parbox[b]{\footerwidth}{%
        \centering%
        \color{color2}\addressfont%
        \vspace{\baselineskip}% forces a white line to ensure space between main text and footer (as footer height can't be known in advance)
        \ifthenelse{\isundefined{\@addressstreet}}{}{\addtofooter[]{\addresssymbol\@addressstreet}%
          \ifthenelse{\equal{\@addresscity}{}}{}{\addtofooter[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty
          \ifthenelse{\equal{\@addresscountry}{}}{}{\addtofooter[~--~]{\@addresscountry}}%
          \flushfooter\@firstfooterelementtrue\\}%
        \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
          \addtofooter{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
        \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}%
        \ifthenelse{\isundefined{\@homepage}}{}{\addtofooter{\homepagesymbol\httplink{\@homepage}}}%
        \ifthenelse{\isundefined{\@skype}}{}{\addtofooter{\skypesymbol\@skype}}%
        \ifthenelse{\isundefined{\@extrainfo}}{}{\addtofooter{\@extrainfo}}%
        \ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\flushfooter}% the lengthtest is required to avoid flushing an empty footer, which could cause a blank line due to the \\ after the address, if no other personal info is used
        }}}%
  \thispagestyle{plain}}
\makeatother

\address{}{}
\mobile{(+00 000) 0000}
\phone{(+00 00) 0000}
\fax{(000) 111 1113}
\email{[email protected]}
\begin{document}
\makecvtitle
\clearpage
\newgeometry{margin=1in}
new
\end{document}

在此处输入图片描述

相关内容