diff --git a/CHANGELOG b/CHANGELOG index 25dad72..8a48215 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,8 +2,8 @@ version 1.6.0 (xx MMM 2013) - added an optional argument to \moderncvstyle to specify style options, i.e. \moderncvstyle[options]{style}. - added style options to the banking style, to specify how the section- and - subsectionrules should behave: "fullrules", "shortrules", "mixedrules" (full - rules for sections, short rules for subsections) and "norules". + subsectionrules should behave: "fullrules", "shortrules", "mixedrules" +(default; full rules for sections, short rules for subsections) and "norules". - corrected the color of \addressstyle to match the one effectively used (color2). - added a check on the emptyness of \title when setting the hyperref document diff --git a/examples/template_banking_red.pdf b/examples/template_banking_red.pdf index b7a57e2..30fb09f 100644 Binary files a/examples/template_banking_red.pdf and b/examples/template_banking_red.pdf differ diff --git a/examples/template_casual_orange.pdf b/examples/template_casual_orange.pdf index 3b2b0ec..d5a059f 100644 Binary files a/examples/template_casual_orange.pdf and b/examples/template_casual_orange.pdf differ diff --git a/examples/template_multibib.pdf b/examples/template_multibib.pdf index 72d781a..793a0a5 100644 Binary files a/examples/template_multibib.pdf and b/examples/template_multibib.pdf differ diff --git a/moderncvstylebanking.sty b/moderncvstylebanking.sty index e946ea6..1f75237 100644 --- a/moderncvstylebanking.sty +++ b/moderncvstylebanking.sty @@ -10,7 +10,25 @@ % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{moderncvstylebanking}[2013/04/29 v1.5.1 modern curriculum vitae and letter style scheme: banking] +\ProvidesPackage{moderncvstylebanking}[2013/04/29 v1.5.1 modern curriculum vitae and letter style scheme: bank] + +\newcommand*{\sectionrule}{} +\newcommand*{\subsectionrule}{} +\DeclareOption{fullrules}{ + \renewcommand*{\sectionrule}{\par\nobreak\vspace*{-.7\baselineskip}\leavevmode{\color{color1}\leaders\hbox{\rule{1pt}{0.4pt}}\hfill\kern0pt}} + \renewcommand*{\subsectionrule}{\par\nobreak\vspace*{-.7\baselineskip}\leavevmode{\color{color1}\xleaders\hbox to 0.35em{\scriptsize.}\hfill}}}% different subsectionrules 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} +\DeclareOption{shortrules}{ + \renewcommand*{\sectionrule}{\leavevmode{\color{color1}\leaders\hbox{\rule{1pt}{0.4pt}}\hfill\kern0pt}} + \renewcommand*{\subsectionrule}{\leavevmode{\color{color1}\xleaders\hbox to 0.35em{\scriptsize.}\hfill}}}% different subsectionrules 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}} +\DeclareOption{mixedrules}{ + \renewcommand*{\sectionrule}{\par\nobreak\vspace*{-.7\baselineskip}\leavevmode{\color{color1}\leaders\hbox{\rule{1pt}{0.4pt}}\hfill\kern0pt}} + \renewcommand*{\subsectionrule}{\leavevmode{\color{color1}\xleaders\hbox to 0.35em{\scriptsize.}\hfill}}}% different subsectionrules 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}} +\DeclareOption{norules}{ + \renewcommand*{\sectionrule}{} + \renewcommand*{\subsectionrule}{}} + +\ExecuteOptions{mixedrules} +\ProcessOptions\relax %------------------------------------------------------------------------------- @@ -164,15 +182,15 @@ \phantomsection{}% reset the anchor for hyperrefs \addcontentsline{toc}{section}{#2}% \strut\sectionstyle{#2}% - {\color{color1}\hrule}% + \sectionrule% \par\nobreak\addvspace{1ex}\@afterheading} -\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 \RenewDocumentCommand{\subsection}{sm}{% \par\addvspace{1ex}% \phantomsection{}% \addcontentsline{toc}{subsection}{#2}% - \strut\subsectionstyle{#2}{\color{color1}{\subsectionfill}}% + \strut\subsectionstyle{#2}% + \subsectionrule% \par\nobreak\addvspace{0.5ex}\@afterheading} \renewcommand*{\cvitem}[3][.25em]{%