mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
replace cv header on cover letter with classic/fancy sender block
This commit is contained in:
parent
d8bc48733c
commit
9c83464c54
1 changed files with 18 additions and 3 deletions
|
|
@ -132,9 +132,24 @@
|
||||||
\renewcommand*{\makeletterhead}{%
|
\renewcommand*{\makeletterhead}{%
|
||||||
% recompute lengths (in case we are switching from letter to resume, or vice versa)
|
% recompute lengths (in case we are switching from letter to resume, or vice versa)
|
||||||
\recomputeletterlengths%
|
\recomputeletterlengths%
|
||||||
% sender block
|
% sender contact info
|
||||||
\makehead%
|
\hfill%
|
||||||
\par%
|
\begin{minipage}{.5\textwidth}%
|
||||||
|
% optional detailed information
|
||||||
|
\if@details%
|
||||||
|
\raggedleft%
|
||||||
|
\addressfont\textcolor{color2}{%
|
||||||
|
{\bfseries\upshape\@firstname~\@lastname}\@firstdetailselementfalse%
|
||||||
|
% optional detailed information
|
||||||
|
\ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet%
|
||||||
|
\ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty
|
||||||
|
\ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}%
|
||||||
|
\collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
|
||||||
|
\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}%
|
||||||
|
\ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
|
||||||
|
\ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httpslink{\@homepage}}%
|
||||||
|
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}}\fi%
|
||||||
|
\end{minipage}\\[2em]
|
||||||
% recipient block
|
% recipient block
|
||||||
\begin{minipage}[t]{.5\textwidth}
|
\begin{minipage}[t]{.5\textwidth}
|
||||||
\raggedright%
|
\raggedright%
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue