summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncvstylebanking.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncvstylebanking.sty')
-rw-r--r--Master/texmf-dist/tex/latex/moderncv/moderncvstylebanking.sty39
1 files changed, 31 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstylebanking.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstylebanking.sty
index a8ca0e9eb89..2d82c579fc6 100644
--- a/Master/texmf-dist/tex/latex/moderncv/moderncvstylebanking.sty
+++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstylebanking.sty
@@ -10,7 +10,7 @@
% identification
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{moderncvstylebanking}[2012/03/26 v1.0 modern curriculum vitae and letter style scheme: banking]
+\ProvidesPackage{moderncvstylebanking}[2012/07/30 v1.1.1 modern curriculum vitae and letter style scheme: banking]
%-------------------------------------------------------------------------------
@@ -21,16 +21,37 @@
%-------------------------------------------------------------------------------
% package options
%-------------------------------------------------------------------------------
-\RequirePackage{tgpagella}
-\renewcommand*{\familydefault}{\rmdefault}
%-------------------------------------------------------------------------------
% overall style definition
%-------------------------------------------------------------------------------
+% fonts
+%\ifxetexorluatex
+% \setmainfont{Tex-Gyre Pagella}
+% \setsansfont{Tex-Gyre Pagella}
+% \setmathfont{Tex-Gyre Pagella}
+% \setmathfont[range=\mathit,\mathsfit]{Tex-Gyre Pagella Italic}
+% \setmathfont[range=\mathbfup,\mathbfsfup]{Tex-Gyre Pagella Bold}
+% \setmathfont[range=\mathbfit,\mathbfsfit]{Tex-Gyre Pagella Bold Italic}
+%\else
+ \IfFileExists{tgpagella.sty}%
+ {%
+ \RequirePackage{tgpagella}%
+ \renewcommand*{\familydefault}{\rmdefault}}%
+ {}
+%\fi
+
+% symbols
+\renewcommand*{\mobilesymbol}{\marvosymbol{72}~}
+\renewcommand*{\phonesymbol}{\marvosymbol{84}~}
+\renewcommand*{\faxsymbol}{\marvosymbol{117}~}
+\renewcommand*{\emailsymbol}{\marvosymbol{66}~}
+\renewcommand*{\homepagesymbol}{{\Large\marvosymbol{205}}~}
+
% commands
\newcommand*{\maketitlesymbol}{%
- {~~~\textbullet~~~}}% \textbullet forces the use of the CMSY font, even when latin modern fonts are used :(
+ {~~~{\rmfamily\textbullet}~~~}}% 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
% internal command to add an element to the footer
% it collects the elements in a temporary box, and checks when to flush the box
\newsavebox{\maketitlebox}%
@@ -108,7 +129,7 @@
\newlength{\listdoubleitemmaincolumnwidth}
% commands
-\renewcommand*{\recomputelengths}{%
+\renewcommand*{\recomputecvlengths}{%
\setlength{\quotewidth}{0.65\textwidth}%
% main lenghts
\setlength{\maincolumnwidth}{\textwidth}%
@@ -121,7 +142,9 @@
\setlength{\listdoubleitemmaincolumnwidth}{\maincolumnwidth-\listitemsymbolwidth-\separatorcolumnwidth-\listitemsymbolwidth}%
\setlength{\listdoubleitemmaincolumnwidth}{0.5\listdoubleitemmaincolumnwidth}%
% fancyhdr lengths
- \renewcommand{\headwidth}{\textwidth}}
+ \renewcommand{\headwidth}{\textwidth}%
+ % regular lengths
+ \setlength{\parskip}{0\p@}}
\renewcommand*{\makecvtitle}{%
% recompute lengths (in case we are switching from letter to resume, or vice versa)
@@ -141,7 +164,7 @@
{\color{color1}\hrule}%
\par\nobreak\addvspace{1ex}\@afterheading}
-\newcommand{\subsectionfill}{\cleaders\hbox to 0.35em{\scriptsize.}\hfill}% for a dashed fill
+\newcommand{\subsectionfill}{\xleaders\hbox to 0.35em{\scriptsize.}\hfill}% different subsectionfills will not be perfectly aligned, but remaining space at the end of the fill will be distributed evenly between leaders, so it will be barely visible
\renewcommand*{\subsection}[1]{%
\par\addvspace{1ex}%
\phantomsection{}%
@@ -254,7 +277,7 @@
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfill%
- {\color{color2}\itshape Enclosure: \@enclosure}}}
+ {\color{color2}\itshape\enclname: \@enclosure}}}
\endinput