]> hydra-www.ietfng.org Git - mcv-academic/commitdiff
Add modifications on top of banking model
authoradin <adin@ic.unicamp.br>
Thu, 4 Apr 2019 16:48:11 +0000 (13:48 -0300)
committeradin <adin@ic.unicamp.br>
Thu, 4 Apr 2019 16:48:11 +0000 (13:48 -0300)
moderncvstylebanking.sty [new file with mode: 0644]

diff --git a/moderncvstylebanking.sty b/moderncvstylebanking.sty
new file mode 100644 (file)
index 0000000..ef4110d
--- /dev/null
@@ -0,0 +1,91 @@
+%% start of file `moderncvstylebanking.sty'.
+%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com).
+%
+% 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{moderncvstylebanking}[2015/07/28 v2.0.0 modern curriculum vitae and letter style scheme: banking]
+
+% body rules type options: "fullrules", "shortrules", "mixedrules" (default) or "norules"
+\@initializecommand{\moderncvstylebodyoptions}{}
+\DeclareOption{fullrules}    {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,fullrules}}
+\DeclareOption{shortrules}   {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,shortrules}}
+\DeclareOption{mixedrules}   {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,mixedrules}}
+\DeclareOption{norules}      {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,norules}}
+
+% body section alignment options: "left" (default), "center" or "right"
+\DeclareOption{left}         {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,left}}
+\DeclareOption{center}       {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,center}}
+\DeclareOption{right}        {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,right}}
+
+\DeclareOption*{}% avoid choking on unknown options
+\ExecuteOptions{mixedrules,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
+
+
+%-------------------------------------------------------------------------------
+%                fonts & icons
+%-------------------------------------------------------------------------------
+% TeX Gyre Pagella font
+%\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
+\moderncvicons{awesome}
+
+
+%-------------------------------------------------------------------------------
+%                header, body & footer
+%-------------------------------------------------------------------------------
+\moderncvhead{3}
+\moderncvbody[\moderncvstylebodyoptions]{3}
+
+%% My patches
+\@initializecommand{\makeheaddetailssymbol}{%
+  { {\rmfamily\textbullet} }}
+
+% Fix title
+\patchcmd{\makehead}% <cmd>
+{\titlestyle{~|~\@title}}% <search>
+{\titlestyle{\\\@title}}% <replace>
+{}{}% <success><failure>
+
+% Update name
+\newcommand*{\mynamestyle}[2]{{\namefont\textcolor{color1!70}{#1} \textcolor{color1}{#2}}}
+\patchcmd{\makehead}%
+{\namestyle{\@firstname~\@lastname}}%
+{\mynamestyle{\@firstname}{\@lastname}}%
+{}{}
+
+% Reduce the title
+\renewcommand*{\titlefont}{\huge\mdseries\upshape}
+
+% Reduce space between address and details
+\patchcmd{\makehead}% <cmd>
+{\\\null}% <search>
+{\\[-10pt]\null}% <replace>
+{}{}% <success><failure>
+
+
+\endinput
+
+
+%% end of file `moderncvstylebanking.sty'.