Added style options to the banking style, to specify how the section- and subsectionrules should behave
This commit is contained in:
@ -2,8 +2,8 @@ version 1.6.0 (xx MMM 2013)
|
|||||||
- added an optional argument to \moderncvstyle to specify style options, i.e.
|
- added an optional argument to \moderncvstyle to specify style options, i.e.
|
||||||
\moderncvstyle[options]{style}.
|
\moderncvstyle[options]{style}.
|
||||||
- added style options to the banking style, to specify how the section- and
|
- added style options to the banking style, to specify how the section- and
|
||||||
subsectionrules should behave: "fullrules", "shortrules", "mixedrules" (full
|
subsectionrules should behave: "fullrules", "shortrules", "mixedrules"
|
||||||
rules for sections, short rules for subsections) and "norules".
|
(default; full rules for sections, short rules for subsections) and "norules".
|
||||||
- corrected the color of \addressstyle to match the one effectively used
|
- corrected the color of \addressstyle to match the one effectively used
|
||||||
(color2).
|
(color2).
|
||||||
- added a check on the emptyness of \title when setting the hyperref document
|
- added a check on the emptyness of \title when setting the hyperref document
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -10,7 +10,25 @@
|
|||||||
% identification
|
% identification
|
||||||
%-------------------------------------------------------------------------------
|
%-------------------------------------------------------------------------------
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
\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
|
\phantomsection{}% reset the anchor for hyperrefs
|
||||||
\addcontentsline{toc}{section}{#2}%
|
\addcontentsline{toc}{section}{#2}%
|
||||||
\strut\sectionstyle{#2}%
|
\strut\sectionstyle{#2}%
|
||||||
{\color{color1}\hrule}%
|
\sectionrule%
|
||||||
\par\nobreak\addvspace{1ex}\@afterheading}
|
\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}{%
|
\RenewDocumentCommand{\subsection}{sm}{%
|
||||||
\par\addvspace{1ex}%
|
\par\addvspace{1ex}%
|
||||||
\phantomsection{}%
|
\phantomsection{}%
|
||||||
\addcontentsline{toc}{subsection}{#2}%
|
\addcontentsline{toc}{subsection}{#2}%
|
||||||
\strut\subsectionstyle{#2}{\color{color1}{\subsectionfill}}%
|
\strut\subsectionstyle{#2}%
|
||||||
|
\subsectionrule%
|
||||||
\par\nobreak\addvspace{0.5ex}\@afterheading}
|
\par\nobreak\addvspace{0.5ex}\@afterheading}
|
||||||
|
|
||||||
\renewcommand*{\cvitem}[3][.25em]{%
|
\renewcommand*{\cvitem}[3][.25em]{%
|
||||||
|
|||||||
Reference in New Issue
Block a user