diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/komacv/komacv-classic.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/komacv/komacv-classic.sty | 52 |
1 files changed, 42 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/komacv/komacv-classic.sty b/Master/texmf-dist/tex/latex/komacv/komacv-classic.sty index 4aca991b998..e6b4498e450 100644 --- a/Master/texmf-dist/tex/latex/komacv/komacv-classic.sty +++ b/Master/texmf-dist/tex/latex/komacv/komacv-classic.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2014 by Salome Södergran (salome.soedergran@gmx.ch) +%% Copyright (C) 2014-2017 by Salome Södergran (salome.soedergran@gmx.ch) %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -22,7 +22,9 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{komacv-classic} - [2014/08/10 v1.0.1 style package for komacv class] + [2017/04/12 v1.1 style package for komacv class] +\changes{v1.1}{2017/04/12}{New macro headline, and new correspondent elements headlinestyle, headlinecolor, headlinefont} + \addtokomafont{firstnamefont}{\sffamily} \addtokomafont{acadtitlefont}{\sffamily} \addtokomafont{addressfont}{\sffamily} @@ -36,9 +38,15 @@ \setlength\@mframepicshift{\mframepicshift} } } % end \AtBeginDocument +\AtEndPreamble{% + \ifdimequal{\titlenamemaxwidth}{0pt}{% +\setlength{\@titlenamemaxwidth}{.525\textwidth} +}{ +\setlength\@titlenamemaxwidth{\titlenamemaxwidth} +} +} \providecommand\@cvtitleclassic{% %% set \cs{@titlenamemaxwidth| to the full name length, capped by \cs{@titlenamemaxwidth| -\setlength{\@titlenamemaxwidth}{.525\textwidth} \settowidth{\@titlenamefullwidth}{\firstnamestyle{\firstname~}\familynamestyle{\familyname}} \ifdimless{\@titlenamemaxwidth}{\@titlenamefullwidth}{% \setlength{\@titlenamewidth}{\@titlenamemaxwidth} @@ -57,15 +65,24 @@ }% }% % name and title - \begin{minipage}[b]{\@titlenamewidth}% +\ifdefstring{\headlinetype}{none}{% +}{ + \begin{center} + \headlinestyle{\@headlinecontent}\par\bigskip + \end{center} +} +\begin{minipage}[b]{\@titlenamewidth}% + \RaggedRight + \ifdefstring{\headlinetype}{name}{\hfill\mbox{}}{% \firstnamestyle{\firstname}\ % \familynamestyle{\familyname}% \ifdefempty{\acadtitle}{}{% - \\[1.25em]\acadtitlestyle{\acadtitle}}% - \end{minipage}% + \par\bigskip\acadtitlestyle{\acadtitle}}% + } +\end{minipage}% % optional data \begin{minipage}[b]{\@titledetailswidth}% - \raggedleft%\addressstyle{% + \RaggedLeft\addressstyle{% \ifdefempty{\addressstreet}{}{% \@titledetailsnewline% \@addresssymbol\addressstreet% @@ -83,7 +100,7 @@ \@titledetailsnewline\@homepagesymbol\httplink{\homepage}}% \ifdefempty{\extrainfo}{}{% \@titledetailsnewline\extrainfo}% - %}% + }% \end{minipage}% % optional photo \ifundef{\@photoname}{}{% with picture: @@ -108,8 +125,23 @@ \end{minipage}\\[\@afterquotevspace]% }% } -\renewcommand*{\section}[1]{\@cvbarsection{#1}} -\renewcommand{\subsection}[1]{\@cvbarsubsection{#1}} +\setcounter{secnumdepth}{1} + +\RedeclareSectionCommand + [ + beforeskip=\@beforesecvspace, + afterskip=\@aftersecvspace, + font=\color{@seccolor} + ]{section} +\renewcommand*\thesection{\color{@secbarcolor}\rule{\@hintscolwidth}{1ex}\hspace{-1ex}\hspace{\@sepcolwidth}} + + \RedeclareSectionCommand + [ + beforeskip=\@beforesecvspace, + afterskip=\@aftersecvspace, + indent=\dimexpr\@sepcolwidth+\@hintscolwidth, + font={\normalfont\color{@subseccolor}} + ]{subsection} \endinput %% %% End of file `komacv-classic.sty'. |