parent
0519c61842
commit
4de1156d9c
|
|
@ -0,0 +1,27 @@
|
|||
%% start of file `moderncvcolorred.sty'.
|
||||
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com), 2020-2022 moderncv maintainers (github.com/moderncv).
|
||||
%
|
||||
% This work may be distributed and/or modified under the
|
||||
% conditions of the LaTeX Project Public License version 1.3c,
|
||||
% available at http://www.latex-project.org/lppl/.
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% identification
|
||||
%-------------------------------------------------------------------------------
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{moderncvcolorred}[2022-02-21 v2.3.1 modern curriculum vitae and letter color scheme: red]
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% color scheme definition
|
||||
%-------------------------------------------------------------------------------
|
||||
\definecolor{color0}{rgb}{0,0,0}% black
|
||||
\definecolor{color1}{rgb}{0.95,0.20,0.20}% red
|
||||
\definecolor{color2}{rgb}{0.45,0.45,0.45}% dark grey
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
%% end of file `moderncvcolorred.sty'.
|
||||
|
|
@ -0,0 +1,107 @@
|
|||
%% start of file `moderncvcompatibility.sty'.
|
||||
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com), 2020-2022 moderncv maintainers (github.com/moderncv).
|
||||
%
|
||||
% This work may be distributed and/or modified under the
|
||||
% conditions of the LaTeX Project Public License version 1.3c,
|
||||
% available at http://www.latex-project.org/lppl/.
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% identification
|
||||
%-------------------------------------------------------------------------------
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{moderncvcompatibility}[2022-02-21 v2.3.1 modern curriculum vitae and letter compatibility patches]
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% required packages
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% package options
|
||||
%-------------------------------------------------------------------------------
|
||||
% old casual option (version 0.1)
|
||||
%\DeclareOption{casual}{\input{moderncvstylecasual.sty}}
|
||||
|
||||
% old classic option (version 0.1)
|
||||
%\DeclareOption{classic}{\input{moderncvstyleclassic.sty}}
|
||||
|
||||
\DeclareOption*{}
|
||||
|
||||
% process given options
|
||||
\ProcessOptions\relax
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% definitions
|
||||
%-------------------------------------------------------------------------------
|
||||
% compatibility with version 0.1
|
||||
\newcommand*{\cvresume}[2]{\cvlistdoubleitem{#1}{#2}}
|
||||
|
||||
% compatibility with versions <= 0.2
|
||||
% section, cvline, ... with width argument...
|
||||
%\newcommand*{\section}[2][0.825]{%
|
||||
% \closesection{}%
|
||||
% \@sectionopentrue%
|
||||
% \addcontentsline{toc}{part}{#2}
|
||||
% \begin{longtable}[t]{@{}r@{\hspace{.025\textwidth}}@{}p{#1\textwidth}@{}}%
|
||||
%% \colorrule{.15\textwidth}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
|
||||
% {\color{sectionrectanglecolor}\rule{0.15\textwidth}{1ex}}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
|
||||
%\newcommand*{\cvline}[3][.825]{%
|
||||
% \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\small\sffamily#2\end{minipage}&\begin{minipage}[t]{\maincolumnwidth}#3\end{minipage}\\}
|
||||
%\newcommand*{\cvitem}[3][.825]{%
|
||||
% \cvline[#1]{#2}{#3\vspace*{.75em}}} % the \vspace*{} inside the cvline environment is a hack... (should conceptually be outside the environment)
|
||||
|
||||
% compatibility with versions <= 0.5
|
||||
%\newcommand*{\cvitem}[2]{\cvline{#1}{#2}}
|
||||
%\newcommand*{\moderncvstyle}[1]{\moderncvtheme{#1}}
|
||||
|
||||
% compatibility with versions <= 0.7
|
||||
\newcommand*{\closesection}{}
|
||||
\newcommand*{\emptysection}{}
|
||||
\newcommand*{\sethintscolumnlength}[1]{%
|
||||
\setlength{\hintscolumnwidth}{#1}%
|
||||
\recomputelengths}
|
||||
\newcommand*{\sethintscolumntowidth}[1]{%
|
||||
\settowidth{\hintscolumnwidth}{#1}%
|
||||
\recomputelengths}
|
||||
|
||||
% compatibility with versions <= 0.15
|
||||
\newcommand*{\cvline}[2]{\cvitem{#1}{#2}}
|
||||
\newcommand*{\cvlanguage}[3]{\cvitemwithcomment{#1}{#2}{#3}}
|
||||
\newcommand*{\cvcomputer}[4]{\cvdoubleitem{#1}{\small#2}{#3}{\small#4}}
|
||||
\newcommand*{\moderncvtheme}[2][blue]{%
|
||||
\moderncvcolor{#1}%
|
||||
\moderncvstyle{#2}}
|
||||
|
||||
% compatibility with versions <= 0.19
|
||||
\newcommand*{\maketitle}{\makecvtitle}%
|
||||
\title{}% to avoid LaTeX complaining that \maketitle is a called without first a call to \title
|
||||
\newcommand*{\maketitlenamewidth}{\makecvtitlenamewidth}
|
||||
|
||||
% compatibility with versions <= 1.3.0
|
||||
\newcommand*{\firstname}[1]{\def\@firstname{#1}}
|
||||
\newcommand*{\lastname}[1]{\def\@lastname{#1}}
|
||||
\newcommand*{\givenname}[1]{\def\@firstname{#1}}
|
||||
\newcommand*{\familyname}[1]{\def\@lastname{#1}}
|
||||
\def\@familyname{\@lastname}
|
||||
|
||||
% compatibility with versions <= 1.4.0
|
||||
\newcommand*{\mobile}[1]{\collectionadd[mobile]{phones}{#1}}
|
||||
%\newcommand*{\phone}[1]{\collectionadd[fixed]{phones}{#1}}% implicit, as \phone{...} defaults to \phone[fixed]{...}
|
||||
\newcommand*{\fax}[1]{\collectionadd[fax]{phones}{#1}}
|
||||
\newcommand*{\@mobile}{\collectionfindbykey{phones}{mobile}}
|
||||
\newcommand*{\@phone}{\collectionfindbykey{phones}{fixed}}
|
||||
\newcommand*{\@fax}{\collectionfindbykey{phones}{fax}}
|
||||
\newcommand*{\phonesymbol}{\fixedphonesymbol}
|
||||
\newcommand*{\mobilesymbol}{\mobilephonesymbol}
|
||||
\newcommand*{\faxsymbol}{\faxphonesymbol}
|
||||
|
||||
% compatibility with versions <= 1.5.1
|
||||
\newcommand*{\makecvtitlenamewidth}{\makecvheadnamewidth} % only used in header variants 1 and 4, themself used by the classic and oldstyle styles
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
%% end of file `moderncvcompatibility.sty'.
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
%% start of file `moderncvdebugtools.sty'.
|
||||
%% Copyright 2013-2015 Xavier Danaux (xdanaux@gmail.com), 2020-2022 moderncv maintainers (github.com/moderncv).
|
||||
%
|
||||
% This work may be distributed and/or modified under the
|
||||
% conditions of the LaTeX Project Public License version 1.3c,
|
||||
% available at http://www.latex-project.org/lppl/.
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% identification
|
||||
%-------------------------------------------------------------------------------
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{moderncvdebugtools}[2022-02-21 v2.3.1 modern curriculum vitae and letter debug tools]
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% required packages
|
||||
%-------------------------------------------------------------------------------
|
||||
\RequirePackage{tikz}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% debug tools
|
||||
%-------------------------------------------------------------------------------
|
||||
% code of \tracedebugvrule and \tracedebughrule provided by Gonzalo Medina on TeX.SX (cfr tex.stackexchange.com/a/110805/10102)
|
||||
\newcounter{debugrule}
|
||||
\pgfdeclarelayer{background}
|
||||
\pgfsetlayers{background,main}
|
||||
|
||||
\DeclareDocumentCommand{\tracedebugvrule}{oO{0pt}}{%
|
||||
\stepcounter{debugrule}%
|
||||
\begin{tikzpicture}[remember picture,overlay]
|
||||
\begin{pgfonlayer}{background}
|
||||
\coordinate (a\thedebugrule);
|
||||
\draw[red,thin,#1]
|
||||
([xshift=#2]a\thedebugrule|-current page.north) -- ([xshift=#2]a\thedebugrule|-current page.south);
|
||||
\end{pgfonlayer}
|
||||
\end{tikzpicture}}
|
||||
|
||||
\DeclareDocumentCommand{\tracedebughrule}{oO{0pt}}{%
|
||||
\stepcounter{debugrule}%
|
||||
\begin{tikzpicture}[remember picture,overlay]
|
||||
\begin{pgfonlayer}{background}
|
||||
\coordinate (b\thedebugrule);
|
||||
\draw[red,thin,#1]
|
||||
([yshift=#2]b\thedebugrule-|current page.west) -- ([yshift=#2]b\thedebugrule-|current page.east);
|
||||
\end{pgfonlayer}
|
||||
\end{tikzpicture}}
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
%% end of file `moderncvdebugtools.sty'.
|
||||
|
|
@ -0,0 +1,136 @@
|
|||
%% start of file `moderncvfooti.sty'.
|
||||
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com), 2020-2022 moderncv maintainers (github.com/moderncv).
|
||||
%
|
||||
% This work may be distributed and/or modified under the
|
||||
% conditions of the LaTeX Project Public License version 1.3c,
|
||||
% available at http://www.latex-project.org/lppl/.
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% identification
|
||||
%-------------------------------------------------------------------------------
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{moderncvfooti}[2022-02-21 v2.3.1 modern curriculum vitae and letter footer variant: 1]
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% required packages
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall foot definition
|
||||
%-------------------------------------------------------------------------------
|
||||
% fonts
|
||||
\renewcommand*{\addressfont}{\normalsize\mdseries\slshape}
|
||||
|
||||
% symbols
|
||||
% footer symbol used to separate footer elements
|
||||
\newcommand*{\footsymbol}{%
|
||||
{\hspace{1em}{\rmfamily\textbullet}\hspace{1em}}}% the \rmfamily is required to force Latin Modern fonts when using sans serif, as OMS/lmss/m/n is not defined and gets substituted by OMS/cmsy/m/n
|
||||
|
||||
% lengths
|
||||
\@initializelength{\footwidth}%
|
||||
\renewcommand*{\recomputefootlengths}{%
|
||||
\setlength{\footwidth}{0.8\textwidth}}
|
||||
|
||||
% commands
|
||||
% internal command to add an element to the footer
|
||||
% it collects the elements in a temporary box, and checks when to flush the box
|
||||
\@initializebox{\footbox}%
|
||||
\@initializebox{\foottempbox}%
|
||||
\@initializelength{\footboxwidth}%
|
||||
\@initializeif{\if@firstfootelement}\@firstfootelementtrue%
|
||||
% adds an element to the footer, separated by footsymbol
|
||||
% usage: \addtofoot[footsymbol]{element}
|
||||
\newcommand*{\addtofoot}[2][\footsymbol]{%
|
||||
\if@firstfootelement%
|
||||
\savebox{\foottempbox}{\usebox{\footbox}#2}%
|
||||
\else%
|
||||
\savebox{\foottempbox}{\usebox{\footbox}#1#2}\fi%
|
||||
\settowidth{\footboxwidth}{\usebox{\foottempbox}}%
|
||||
\ifnum\footboxwidth<\footwidth%
|
||||
\savebox{\footbox}{\usebox{\foottempbox}}%
|
||||
\@firstfootelementfalse%
|
||||
\else%
|
||||
\flushfoot\\%
|
||||
\savebox{\footbox}{#2}%
|
||||
\savebox{\foottempbox}{#2}%
|
||||
\settowidth{\footboxwidth}{\usebox{\footbox}}%
|
||||
\@firstfootelementfalse\fi}
|
||||
% internal command to flush the foot
|
||||
\newcommand*{\flushfoot}{%
|
||||
\strut\usebox{\footbox}%
|
||||
\savebox{\footbox}{}%
|
||||
\savebox{\foottempbox}{}%
|
||||
\setlength{\footboxwidth}{0pt}}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% resume foot definition
|
||||
%-------------------------------------------------------------------------------
|
||||
% lenghts
|
||||
\renewcommand*{\recomputecvfootlengths}{\recomputefootlengths}
|
||||
|
||||
% commands
|
||||
\renewcommand*{\makecvfoot}{%
|
||||
\recomputecvfootlengths{}%
|
||||
\fancypagestyle{plain}{%
|
||||
\fancyfoot[c]{%
|
||||
\parbox[b]{\footwidth}{%
|
||||
\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}}{}{\addtofoot[]{\addresssymbol\@addressstreet}%
|
||||
\ifthenelse{\equal{\@addresscity}{}}{}{\addtofoot[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty
|
||||
\ifthenelse{\equal{\@addresscountry}{}}{}{\addtofoot[~--~]{\@addresscountry}}%
|
||||
\flushfoot\@firstfootelementtrue\\}%
|
||||
\ifthenelse{\isundefined{\@born}}{}{\addtofoot{\bornsymbol\@born}\flushfoot\@firstfootelementtrue\\}%
|
||||
\collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
|
||||
\addtofoot{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
|
||||
\ifthenelse{\isundefined{\@email}}{}{\addtofoot{\emailsymbol\emaillink{\@email}}}%
|
||||
\ifthenelse{\isundefined{\@homepage}}{}{\addtofoot{\homepagesymbol\httpslink{\@homepage}}}%
|
||||
\collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
|
||||
\addtofoot{\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
|
||||
\ifthenelse{\isundefined{\@extrainfo}}{}{\addtofoot{\@extrainfo}}%
|
||||
\ifthenelse{\lengthtest{\footboxwidth=0pt}}{}{\flushfoot}% 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
|
||||
}}}%
|
||||
\pagestyle{plain}}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% letter foot definition
|
||||
%-------------------------------------------------------------------------------
|
||||
% commands
|
||||
\renewcommand*{\recomputeletterfootlengths}{\recomputefootlengths}
|
||||
\renewcommand*{\makeletterfoot}{%
|
||||
\recomputeletterfootlengths{}%
|
||||
\fancypagestyle{plain}{%
|
||||
\fancyfoot[c]{%
|
||||
\parbox[b]{\footwidth}{%
|
||||
\centering%
|
||||
\addressfont\color{color2}%
|
||||
\vspace{\baselineskip}% forces a white line to ensure space between main text and footer (as footer height can't be known in advance)
|
||||
\vspace{-\baselineskip}% to cancel out the extra vertical space taken by the name (below) and ensure perfect alignment of letter and cv footers
|
||||
\strut{\bfseries\upshape\@firstname~\@lastname}\\% the \strut is required to ensure the line is exactly \baselineskip tall
|
||||
\ifthenelse{\isundefined{\@addressstreet}}{}{\addtofoot[]{\addresssymbol\@addressstreet}%
|
||||
\ifthenelse{\equal{\@addresscity}{}}{}{\addtofoot[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty
|
||||
\ifthenelse{\equal{\@addresscountry}{}}{}{\addtofoot[~--~]{\@addresscountry}}%
|
||||
\flushfoot\@firstfootelementtrue\\}%
|
||||
\ifthenelse{\isundefined{\@born}}{}{\addtofoot{\bornsymbol\@born}\flushfoot\@firstfootelementtrue\\}%
|
||||
\collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
|
||||
\addtofoot{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
|
||||
\ifthenelse{\isundefined{\@email}}{}{\addtofoot{\emailsymbol\emaillink{\@email}}}%
|
||||
\ifthenelse{\isundefined{\@homepage}}{}{\addtofoot{\homepagesymbol\httpslink{\@homepage}}}%
|
||||
\collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
|
||||
\addtofoot{\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
|
||||
\ifthenelse{\isundefined{\@extrainfo}}{}{\addtofoot{\@extrainfo}}%
|
||||
\ifthenelse{\lengthtest{\footboxwidth=0pt}}{}{\flushfoot}% 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
|
||||
}}}%
|
||||
\pagestyle{plain}}
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
%% end of file `moderncvfooti.sty'.
|
||||
|
|
@ -0,0 +1,187 @@
|
|||
%% start of file `moderncvheadi.sty'.
|
||||
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com), 2020-2022 moderncv maintainers (github.com/moderncv).
|
||||
%
|
||||
% This work may be distributed and/or modified under the
|
||||
% conditions of the LaTeX Project Public License version 1.3c,
|
||||
% available at http://www.latex-project.org/lppl/.
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% identification
|
||||
%-------------------------------------------------------------------------------
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{moderncvheadi}[2022-02-21 v2.3.1 modern curriculum vitae and letter header variant: 1]
|
||||
|
||||
% details options: "details" (default) or "nodetails"
|
||||
\@initializeif{\if@details}\@detailsfalse
|
||||
\DeclareOption{details} {\@detailstrue}
|
||||
\DeclareOption{nodetails} {\@detailsfalse}
|
||||
|
||||
% left/right options: "left" (default) or "right"
|
||||
\@initializeif{\if@left} \@leftfalse
|
||||
\DeclareOption{left} {\@lefttrue\@rightfalse}
|
||||
\@initializeif{\if@right}\@rightfalse
|
||||
\DeclareOption{right} {\@leftfalse\@righttrue}
|
||||
|
||||
\DeclareOption*{}% avoid choking on unknown options
|
||||
\ExecuteOptions{details,left}
|
||||
\ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% required packages
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall head definition
|
||||
%-------------------------------------------------------------------------------
|
||||
% fonts
|
||||
\renewcommand*{\namefont}{\fontsize{34}{36}\mdseries\upshape}
|
||||
\renewcommand*{\titlefont}{\LARGE\mdseries\slshape}
|
||||
\renewcommand*{\addressfont}{\small\mdseries\slshape}
|
||||
\renewcommand*{\quotefont}{\large\slshape}
|
||||
|
||||
% styles
|
||||
\renewcommand*{\namestyle}[1]{{\namefont\textcolor{color0}{#1}}}
|
||||
\renewcommand*{\titlestyle}[1]{{\titlefont\textcolor{color2}{#1}}}
|
||||
\renewcommand*{\addressstyle}[1]{{\addressfont\textcolor{color2}{#1}}}
|
||||
\renewcommand*{\quotestyle}[1]{{\quotefont\textcolor{color1}{#1}}}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% resume head definition
|
||||
%-------------------------------------------------------------------------------
|
||||
% lengths
|
||||
\@initializelength{\quotewidth}
|
||||
\@initializelength{\makecvheadnamewidth}% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
|
||||
\renewcommand*{\recomputecvheadlengths}{%
|
||||
\setlength{\quotewidth}{0.65\textwidth}}
|
||||
|
||||
% commands
|
||||
\renewcommand*{\makecvhead}{%
|
||||
% recompute lengths (in case we are switching from letter to resume, or vice versa)
|
||||
\recomputecvlengths%
|
||||
% optional detailed information (pre-rendering)
|
||||
\@initializebox{\makecvheaddetailsbox}%
|
||||
\if@details%
|
||||
\def\phonesdetails{}%
|
||||
\collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
|
||||
\protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
|
||||
\def\socialsdetails{}%
|
||||
\collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
|
||||
\protected@edef\socialsdetails{\socialsdetails\protect\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
|
||||
\savebox{\makecvheaddetailsbox}{%
|
||||
\addressfont\color{color2}%
|
||||
\if@left\begin{tabular}[b]{@{}r@{}}\fi%
|
||||
\if@right\begin{tabular}[b]{@{}l@{}}\fi%
|
||||
\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}}%
|
||||
\ifthenelse{\isundefined{\@born}}{}{\makenewline\bornsymbol\@born}%
|
||||
\phonesdetails% needs to be pre-rendered as loops and tabulars seem to conflict
|
||||
\ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
|
||||
\ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httpslink{\@homepage}}%
|
||||
\socialsdetails% needs to be pre-rendered as loops and tabulars seem to conflict
|
||||
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}%
|
||||
\end{tabular}
|
||||
}\fi%
|
||||
% optional photo (pre-rendering)
|
||||
\@initializebox{\makecvheadpicturebox}%
|
||||
\savebox{\makecvheadpicturebox}{%
|
||||
\ifthenelse{\isundefined{\@photo}}%
|
||||
{}%
|
||||
{%
|
||||
\if@left%
|
||||
\hspace*{\separatorcolumnwidth}\fi%
|
||||
\color{color1}%
|
||||
\setlength{\fboxrule}{\@photoframewidth}%
|
||||
\ifdim\@photoframewidth=0pt%
|
||||
\setlength{\fboxsep}{0pt}\fi%
|
||||
\framebox{\includegraphics[width=\@photowidth]{\@photo}}}%
|
||||
\if@right%
|
||||
\hspace*{\separatorcolumnwidth}\fi}%
|
||||
% name and title (pre-rendering)
|
||||
\@initializelength{\makecvheaddetailswidth}\settowidth{\makecvheaddetailswidth}{\usebox{\makecvheaddetailsbox}}%
|
||||
\@initializelength{\makecvheadpicturewidth}\settowidth{\makecvheadpicturewidth}{\usebox{\makecvheadpicturebox}}%
|
||||
\ifthenelse{\lengthtest{\makecvheadnamewidth=0pt}}% check for dummy value (equivalent to \ifdim\makecvheadnamewidth=0pt)
|
||||
{\setlength{\makecvheadnamewidth}{\textwidth-\makecvheaddetailswidth-\makecvheadpicturewidth}}%
|
||||
{}%
|
||||
\@initializebox{\makecvheadnamebox}%
|
||||
\savebox{\makecvheadnamebox}{%
|
||||
\begin{minipage}[b]{\makecvheadnamewidth}%
|
||||
\if@left\raggedright\fi%
|
||||
\if@right\raggedleft\fi%
|
||||
\namestyle{\@firstname\ \@lastname}%
|
||||
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
|
||||
\end{minipage}}%
|
||||
% rendering
|
||||
\if@left%
|
||||
\usebox{\makecvheadnamebox}%
|
||||
\hfill%
|
||||
\llap{\usebox{\makecvheaddetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvheadnamewidth is forced
|
||||
\usebox{\makecvheadpicturebox}\fi%
|
||||
\if@right%
|
||||
\usebox{\makecvheadpicturebox}%
|
||||
\rlap{\usebox{\makecvheaddetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvheadnamewidth is forced
|
||||
\hfill%
|
||||
\usebox{\makecvheadnamebox}\fi%
|
||||
\\[2.5em]%
|
||||
% optional quote
|
||||
\ifthenelse{\isundefined{\@quote}}%
|
||||
{}%
|
||||
{{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%
|
||||
\par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvhead
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% letter head definition
|
||||
%-------------------------------------------------------------------------------
|
||||
% lengths
|
||||
%\renewcommand*{\recomputeletterheadlengths}{}
|
||||
|
||||
% commands
|
||||
\renewcommand*{\makeletterhead}{%
|
||||
% recompute lengths (in case we are switching from letter to resume, or vice versa)
|
||||
\recomputeletterlengths%
|
||||
% sender contact info
|
||||
\hfill%
|
||||
\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}\\[1em]
|
||||
% recipient block
|
||||
\begin{minipage}[t]{.5\textwidth}
|
||||
\raggedright%
|
||||
\addressfont%
|
||||
{\bfseries\upshape\@recipientname}\\%
|
||||
\@recipientaddress%
|
||||
\end{minipage}
|
||||
% date
|
||||
\hfill% US style
|
||||
% \\[1em]% UK style
|
||||
\@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
||||
% opening
|
||||
\raggedright%
|
||||
\@opening\\[1.5em]%
|
||||
% ensure no extra spacing after \makelettertitle due to a possible blank line
|
||||
% \ignorespacesafterend% not working
|
||||
\hspace{0pt}\par\vspace{-\baselineskip}\vspace{-\parskip}}
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
%% end of file `moderncvheadi.sty'.
|
||||
Loading…
Reference in New Issue