summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/komacv/komacv-casual.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-12 22:49:30 +0000
committerKarl Berry <karl@freefriends.org>2021-02-12 22:49:30 +0000
commit9575c4e6df227084d66a36e71471db99db1a9c9e (patch)
treef75b5ec990a940c66420b197216dbacf046f8799 /Master/texmf-dist/tex/latex/komacv/komacv-casual.sty
parentf90c3545af4782ea5844735a3c8c30338b395521 (diff)
komacv (12feb21)
git-svn-id: svn://tug.org/texlive/trunk@57721 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/komacv/komacv-casual.sty')
-rw-r--r--Master/texmf-dist/tex/latex/komacv/komacv-casual.sty31
1 files changed, 17 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/komacv/komacv-casual.sty b/Master/texmf-dist/tex/latex/komacv/komacv-casual.sty
index 4cb7f603807..bb4e3f7c6f8 100644
--- a/Master/texmf-dist/tex/latex/komacv/komacv-casual.sty
+++ b/Master/texmf-dist/tex/latex/komacv/komacv-casual.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2014-2017 by Salome Södergran (salome.soedergran@gmx.ch)
+%% Copyright (C) 2014-2021 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,8 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{komacv-casual}
- [2017/04/17 v1.1.1 style package for komacv class]
-
+ [2021/02/12 v1.1.2 style package for komacv class]
\addtokomafont{firstnamefont}{\sffamily\fontsize{38}{40}}
\addtokomafont{acadtitlefont}{\sffamily}
\addtokomafont{addressfont}{\sffamily\small}
@@ -46,7 +45,7 @@
\@sboxb{#2}
}
}
- \ifdimequal{\footerwidth}{0pt}{}{\setlength\@footerwidth{\footerwidth}}
+\ifdimequal{\footerwidth}{0pt}{}{\setlength\@footerwidth{\footerwidth}}
\defpagestyle{footer}
{{}{}{}}% head definition (empty)
{% foot definition
@@ -69,7 +68,10 @@
\ifdefempty{\email}{}{%
\addtofooter{\@emailsymbol\emaillink{\email}}}
\ifdefempty{\homepage}{}{%
- \addtofooter{\@homepagesymbol\httplink{\homepage}}}%
+ \addtofooter{\@homepagesymbol%
+ \IfSubStr{\homepage}{https}{%
+ \httpslink{\homepage}}{%
+ \httplink{\homepage}}}}%
\ifdefempty{\twitter}{}{%
\addtofooter{\@twittersymbol\twitter}}%
\ifdefempty{\github}{}{%
@@ -103,18 +105,22 @@
}% end savebox picbox
\settowidth\@titlepicwidth{\usebox{\@picbox}}
\setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
-
+\setheadlinetypetitle\par
\usebox{\@picbox}%
\hspace*{\@titlesepwidth}%
\parbox[b]{\@titlenamewidth}{%
+ \ifdefstring{\@headlinetype}{name}{\setheadlinetypename}{%
\raggedleft{\firstnamestyle\firstname}%
- ~{\familynamestyle\familyname}\\
- \raggedleft\color{@firstnamecolor}\rule{\@titlenamewidth}{.25ex}\par
+ ~{\familynamestyle\familyname}
+ }
+ \\
+\raggedleft\color{@firstnamecolor}\rule{\@titlenamewidth}{.25ex}\par
}% end parbox
\vspace{\@aftertitlevspace}
%% optional acadtitle
\ifdefempty{\acadtitle}{}{%
- \raggedleft\acadtitlestyle{\acadtitle}}\\[2.5em]%
+ \ifdefstring{\@headlinetype}{name}{}{%
+ \raggedleft\acadtitlestyle{\acadtitle}}}\\[2.5em]%
%% optional quote
\ifdefempty{\cvquote}{}{%
{\centering
@@ -124,12 +130,10 @@
}
}%
}% end \@cvtitle-casual
-
\AtBeginDocument{%
\thispagestyle{footer}
} % end \AtBeginDocument
\setcounter{secnumdepth}{1}
-
\RedeclareSectionCommand
[
beforeskip=\@beforesecvspace,
@@ -137,11 +141,10 @@
font=\color{@seccolor}\sectionfont
]{section}
\renewcommand*\thesection{\color{@secbarcolor}\rule{\@hintscolwidth}{1ex}\hspace{-1ex}\hspace{\@sepcolwidth}}
-
\RedeclareSectionCommand
[
- beforeskip=\@beforesecvspace,
- afterskip=\@aftersecvspace,
+ beforeskip=\@beforesubsecvspace,
+ afterskip=\@aftersubsecvspace,
indent=\dimexpr\@sepcolwidth+\@hintscolwidth,
font=\color{@subseccolor}\subsectionfont
]{subsection}