summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/komacv
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
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')
-rw-r--r--Master/texmf-dist/tex/latex/komacv/komacv-casual.sty31
-rw-r--r--Master/texmf-dist/tex/latex/komacv/komacv-classic.sty38
-rw-r--r--Master/texmf-dist/tex/latex/komacv/komacv-oldstyle.sty26
-rw-r--r--Master/texmf-dist/tex/latex/komacv/komacv.cls144
4 files changed, 127 insertions, 112 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}
diff --git a/Master/texmf-dist/tex/latex/komacv/komacv-classic.sty b/Master/texmf-dist/tex/latex/komacv/komacv-classic.sty
index da066d66084..4a6565d1573 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-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-classic}
- [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}
\addtokomafont{acadtitlefont}{\sffamily}
\addtokomafont{addressfont}{\sffamily}
@@ -56,28 +55,23 @@
\setlength{\@titledetailswidth}{\textwidth-\@titlenamewidth-\@titlesepwidth}%
\ifundef{\@photoname}{}{% else
\ifdefstring{\@photoframe}{frame}{%
- \setlength{\@titledetailswidth}{\@titledetailswidth-\@photowidth-2\@fboxextra}
+\setlength{\@titledetailswidth}{\@titledetailswidth-\@photowidth-2\@fboxextra}
\setlength{\@titledetailswidth}{.99\@titledetailswidth} % avoid overfullbox warning
}{% else
\ifdefstring{\@photoframe}{mframe}{%
- \setlength{\@titledetailswidth}{\@titledetailswidth-\@mframepicshift}%
+\setlength{\@titledetailswidth}{\@titledetailswidth-\@mframepicshift}%
\setlength{\@titledetailswidth}{.99\@titledetailswidth} % avoid overfullbox warning
}{% picture but no frame
- \setlength{\@titledetailswidth}{\@titledetailswidth-\@photowidth}
+ \setlength{\@titledetailswidth}{\@titledetailswidth-\@photowidth}
\setlength{\@titledetailswidth}{.99\@titledetailswidth} % avoid overfullbox warning
}
}
}%
- % name and title
-\ifdefstring{\headlinetype}{none}{%
-}{
- \begin{center}
- \headlinestyle{\@headlinecontent}\par\bigskip
- \end{center}
-}
+ % name and title
+\setheadline\par\bigskip
\begin{minipage}[b]{\@titlenamewidth}%
\RaggedRight
- \ifdefstring{\headlinetype}{name}{\hfill\mbox{}}{%
+ \ifdefstring{\@headlinetype}{name}{\hfill\mbox{}}{%
\firstnamestyle{\firstname}\ %
\familynamestyle{\familyname}%
\ifdefempty{\acadtitle}{}{%
@@ -101,7 +95,10 @@
\ifdefempty{\email}{}{%
\@titledetailsnewline\@emailsymbol\emaillink{\email}}%
\ifdefempty{\homepage}{}{%
- \@titledetailsnewline\@homepagesymbol\httplink{\homepage}}%
+ \@titledetailsnewline\@homepagesymbol%
+ \IfSubStr{\homepage}{https}{%
+ \httpslink{\homepage}}{%
+ \httplink{\homepage}}}%
\ifdefempty{\twitter}{}{%
\@titledetailsnewline\@twittersymbol~\twitter}%
\ifdefempty{\github}{}{%
@@ -131,14 +128,14 @@
\\[\@aftertitlevspace]
% optional quote
\ifundef{\cvquote}{}{%
- \centering
+ {\centering
\begin{minipage}{\@quotewidth}%
\centering\quotestyle{\cvquote}%
\end{minipage}\\[\@afterquotevspace]%
- }%
+ }
+ }%
}
\setcounter{secnumdepth}{1}
-
\RedeclareSectionCommand
[
beforeskip=\@beforesecvspace,
@@ -146,11 +143,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}
diff --git a/Master/texmf-dist/tex/latex/komacv/komacv-oldstyle.sty b/Master/texmf-dist/tex/latex/komacv/komacv-oldstyle.sty
index c3159b4ecbd..9ac80df6c01 100644
--- a/Master/texmf-dist/tex/latex/komacv/komacv-oldstyle.sty
+++ b/Master/texmf-dist/tex/latex/komacv/komacv-oldstyle.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-oldstyle}
- [2017/04/17 v1.1.1 style package for komacv class]
-
+ [2021/02/12 v1.1.2 style package for komacv class]
\KOMAoptions{DIV=15}
\setlength{\hintscolwidth}{3cm}
\addtokomafont{addressfont}{\small}
@@ -38,7 +37,6 @@
\renewcommand*{\homepagesymbol}{}
\setlength{\infocolwidth}{3.5cm}
\setlength{\sepinfocolwidth}{2em}
-
\providecommand\@infocontent{%
\ifdefempty{\addressstreet}{}{%
\@titledetailsnewline%
@@ -54,7 +52,10 @@
\ifdefempty{\email}{}{%
\@titledetailsnewline\@emailsymbol\emaillink{\email}}%
\ifdefempty{\homepage}{}{%
- \@titledetailsnewline\@homepagesymbol\httplink{\homepage}}%
+ \@titledetailsnewline\@homepagesymbol%
+ \IfSubStr{\homepage}{https}{%
+ \httpslink{\homepage}}{%
+ \httplink{\homepage}}}%
\ifdefempty{\twitter}{}{%
\@titledetailsnewline\@twittersymbol~\twitter}%
\ifdefempty{\github}{}{%
@@ -66,7 +67,6 @@
\ifdefempty{\extrainfo}{}{%
\@titledetailsnewline\extrainfo}%
} % end \@infocontent
-
\providecommand{\@makeinfo}{%
\newbox{\@infobox}%
\savebox{\@infobox}{%
@@ -89,7 +89,6 @@
\vspace*{-\parskip}%
\vspace*{-\@aftersecvspace}
}% end \providecommand \@makeinfo
-
\providecommand{\@cvtitleoldstyle}{%
% optional picture box
\newbox{\@picbox}
@@ -108,12 +107,15 @@
}% end ifundef photoname
}% end savebox picbox
\settowidth\@titlepicwidth{\usebox{\@picbox}}
- \setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
+\setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
+ \setheadlinetypetitle\par
\begin{minipage}[b]{\@titlenamewidth}%
+ \ifdefstring{\@headlinetype}{name}{\setheadlinetypename}{%
\firstnamestyle{\firstname}\ %
\familynamestyle{\familyname}%
\ifdefempty{\acadtitle}{}{%
\\[1.25em]\acadtitlestyle{\acadtitle}}%
+ }
\end{minipage}%
% optional photo
\usebox{\@picbox}%
@@ -131,23 +133,20 @@
\par
\begin{addmargin}[\komacvinfocolextrawidth]{0pt}
} % end \@cvtitleoldstyle
-
\AtEndDocument{%
\end{addmargin}
}
\setcounter{secnumdepth}{0}
-
\RedeclareSectionCommand
[
beforeskip=\@beforesecvspace,
afterskip=\@aftersecvspace,
font=\color{@seccolor}\sectionfont
]{section}
-
\RedeclareSectionCommand
[
- beforeskip=\@beforesecvspace,
- afterskip=\@aftersecvspace,
+ beforeskip=\@beforesubsecvspace,
+ afterskip=\@aftersubsecvspace,
font=\color{@subseccolor}\subsectionfont
]{subsection}
\renewcommand*{\cvitem}[3][\@afterelementsvspace]{%
@@ -158,7 +157,6 @@
{#3} & \RaggedRight\hintstyle{#2}%
\end{tabular}\\[#1]%
}
-
\renewcommand*{\cvdoubleitem}[5][\@afterelementsvspace]{%
\cvitem[#1]{#4}{%
\begin{minipage}[t]{\@dbitemmaincolwidth}#3\end{minipage}%
diff --git a/Master/texmf-dist/tex/latex/komacv/komacv.cls b/Master/texmf-dist/tex/latex/komacv/komacv.cls
index 5e7eade0aa7..5b91605b78a 100644
--- a/Master/texmf-dist/tex/latex/komacv/komacv.cls
+++ b/Master/texmf-dist/tex/latex/komacv/komacv.cls
@@ -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,10 +22,9 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{komacv}
- [2017/04/17 v1.1.1 komacv class]
-
+ [2021/02/12 v1.1.2 komacv class]
\providecommand*\mycolor{blue}
-\RequirePackage{ifthen,kvoptions,calc}
+\RequirePackage{ifthen,kvoptions,calc,xparse,xstring}
\SetupKeyvalOptions{%
family=komacv,%
prefix=komacv@,%
@@ -34,6 +33,7 @@ setkeys=\kvsetkeys%
\DeclareStringOption[mycolor]{color}[mycolor]
\DeclareStringOption[x11names]{xcolor}[x11names]
\DeclareStringOption[classic]{style}[classic]
+\DeclareBoolOption[true]{fontawesome}
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessKeyvalOptions{komacv} % evaluate keyval options
\LoadClass[a4paper,headings=normal,fontsize=11pt]{scrartcl}
@@ -45,15 +45,16 @@ setkeys=\kvsetkeys%
ifxetex,%
scrlayer-scrpage,%
marvosym,%
- fontawesome,%
array,%
graphicx,%
microtype,%
enumitem,
hyperref%
}
+\ifkomacv@fontawesome
+\RequirePackage{fontawesome}
+\fi
\RequirePackage[raggedrightboxes]{ragged2e}
-
\AtEndPreamble{%
\renewcommand\familydefault{\sfdefault}% without this, pdflatex produces error messages; WHY?
}
@@ -114,6 +115,7 @@ setkeys=\kvsetkeys%
\newkomafont{hintfont}{}
\newkomafont{linkfont}{}
\newkomafont{httplinkfont}{}
+\newkomafont{httpslinkfont}{}
\newkomafont{emaillinkfont}{}
\newkomafont{commentmainfont}{\bfseries} % in \cvitemwithcomment
\newkomafont{commentfont}{\footnotesize\itshape} % in \cvitemwithcomment
@@ -197,39 +199,33 @@ setkeys=\kvsetkeys%
\newlength\@aftersubsecvspace
\newlength\aftersubsecvspace
\setlength\aftersubsecvspace{0pt}
-
\AtEndPreamble{%
% infocol (oldstyle)
\setlength{\@infocolwidth}{\infocolwidth}
\setlength{\@sepinfocolwidth}{\sepinfocolwidth}
- \setlength\komacvinfocolextrawidth{\@infocolwidth+\@sepinfocolwidth}
+\setlength\komacvinfocolextrawidth{\@infocolwidth+\@sepinfocolwidth}
\setlength\@komacvtextwidth{\textwidth-\komacvinfocolextrawidth}
-
% fboxextra (picture frame)
\newlength\@fboxextra
\setlength\@fboxextra{\fboxsep+\fboxrule}
-
% hintscolumn
\ifdimequal{\hintscolwidth}{0pt}{%
\setlength\@hintscolwidth{.2\@komacvtextwidth}
}{%
\setlength{\@hintscolwidth}{\hintscolwidth}%
}
-
% separatorcolumn
\ifdimequal{\sepcolwidth}{0pt}{%
\setlength\@sepcolwidth{2em}%
}{%
\setlength{\@sepcolwidth}{\sepcolwidth}%
}
-
% maincolumn
\ifdimequal{\maincolwidth}{0pt}{%
- \setlength{\@maincolwidth}{\@komacvtextwidth-\@sepcolwidth-\@hintscolwidth}%
+\setlength{\@maincolwidth}{\@komacvtextwidth-\@sepcolwidth-\@hintscolwidth}%
}{%
\setlength{\@maincolwidth}{\maincolwidth}%
}
-
% doubleitem
\ifdimequal{\dbitemmaincolwidth}{0pt}{%
\setlength{\@dbitemmaincolwidth}{%
@@ -238,24 +234,21 @@ setkeys=\kvsetkeys%
}{%
\setlength{\@dbitemmaincolwidth}{\dbitemmaincolwidth}%
}
-
% listitem
\ifdimequal{\listitemsymbolwidth}{0pt}{%
\settowidth{\@listitemsymbolwidth}{\listitemsymbol{}~}%
}{%
\setlength{\@listitemsymbolwidth}{\listitemsymbolwidth}%
}
- \setlength{\@listitemmaincolwidth}{\@maincolwidth-\@listitemsymbolwidth}%
-
+\setlength{\@listitemmaincolwidth}{\@maincolwidth-\@listitemsymbolwidth}%
% listdoubleitem
\ifdimequal{\listdbitemmaincolwidth}{0pt}{%
- \setlength{\@listdbitemmaincolwidth}{\@maincolwidth-\@listitemsymbolwidth}%
- \setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
+\setlength{\@listdbitemmaincolwidth}{\@maincolwidth-\@sepcolwidth-\@listitemsymbolwidth}%
+\setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
}{%
\setlength{\@listdbitemmaincolwidth}{\listdbitemmaincolwidth}%
- \setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
+\setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
}
-
% quote
\ifdimequal{\quotewidth}{0pt}{%
\setlength{\@quotewidth}{0.65\textwidth}%
@@ -267,7 +260,6 @@ setkeys=\kvsetkeys%
}{%
\setlength\@afterquotevspace{\afterquotevspace}%
}
-
% title
\ifundef{\@photoname}{% without picture:
\setlength\@aftertitlevspace{\aftertitlevspace}
@@ -292,21 +284,18 @@ setkeys=\kvsetkeys%
\setlength{\@titlesepwidth}{\titlesepwidth}
}
}
-
% afterelementsvspace
\ifdimequal{\afterelementsvspace}{0pt}{%
\setlength{\@afterelementsvspace}{0.25em}%
}{%
\setlength{\@afterelementsvspace}{\afterelementsvspace}%
}
-
% beforesecvspace
\ifdimequal{\beforesecvspace}{0pt}{%
\setlength{\@beforesecvspace}{3.5ex \@plus -1ex \@minus -.2ex}%
}{%
\setlength{\@beforesecvspace}{\beforesecvspace}%
}
-
% aftersecvspace
\ifdimequal{\aftersecvspace}{0pt}{%
\setlength{\@aftersecvspace}{2.3ex \@plus.2ex}%
@@ -319,7 +308,6 @@ setkeys=\kvsetkeys%
}{
\setlength{\@beforesubsecvspace}{\beforesubsecvspace}%
}
-
% aftersubsecvspace
\ifdimequal{\aftersubsecvspace}{0pt}{%
\setlength{\@aftersubsecvspace}{1.5ex \@plus .2ex}%
@@ -329,29 +317,35 @@ setkeys=\kvsetkeys%
} % end AtEndPreamble
\providecommand*\@addresssymbol{}
\providecommand*\addresssymbol{}
-\providecommand*\@mobilesymbol{\Mobilefone~}
+\providecommand*\@mobilesymbol{\upshape{\Mobilefone}~}
\providecommand*\mobilesymbol{}
-\providecommand*\@phonesymbol{\Telefon~}
+\providecommand*\@phonesymbol{\upshape{\Telefon}~}
\providecommand*\phonesymbol{}
-\providecommand*\@faxsymbol{\FAX~}
+\providecommand*\@faxsymbol{\upshape{\FAX}~}
\providecommand*\faxsymbol{}
-\providecommand*\@emailsymbol{\Letter~}
+\providecommand*\@emailsymbol{\upshape{\Letter}~}
\providecommand*\emailsymbol{}
\providecommand*\@homepagesymbol{}
\providecommand*\homepagesymbol{}
-\providecommand*\@twittersymbol{\faTwitter~}
+\ifkomacv@fontawesome
+\providecommand*\@twittersymbol{\upshape{\faTwitter}~}
+\providecommand*\@githubsymbol{\upshape{\faGithub}~}
+\providecommand*\@facebooksymbol{\upshape{\faFacebook}~}
+\providecommand*\@linkedinsymbol{\upshape{\faLinkedin}~}
+\else
+\providecommand*\@twittersymbol{}
+\providecommand*\@githubsymbol{}
+\providecommand*\@facebooksymbol{}
+\providecommand*\@linkedinsymbol{}
+\fi
\providecommand*\twittersymbol{}
-\providecommand*\@githubsymbol{\faGithub~}
\providecommand*\githubsymbol{}
-\providecommand*\@facebooksymbol{\faFacebook~}
\providecommand*\facebooksymbol{}
-\providecommand*\@linkedinsymbol{\faLinkedin~}
\providecommand*\linkedinsymbol{}
\providecommand*\@fsymbol{~~~\textbullet~~~}
\providecommand*\fsymbol{}
\providecommand*\@listitemsymbol{\textcolor{colortheme}{\Neutral}~}
\providecommand*\listitemsymbol{}
-
\AtEndPreamble{%
\ifdefempty{\addresssymbol}{}{%
\renewcommand*\@addresssymbol{\addresssymbol}
@@ -389,9 +383,7 @@ setkeys=\kvsetkeys%
\ifdefempty{\listitemsymbol}{}{%
\renewcommand*\@listitemsymbol{\listitemsymbol}
}
-
} % end \AtEndPreamble
-
\providecommand*{\firstname}{}
\providecommand*{\familyname}{}
\providecommand*{\acadtitle}{}
@@ -432,26 +424,40 @@ setkeys=\kvsetkeys%
\providecommand{\@photoframe}{#1}%
\setlength{\@photowidth}{#2}%
\providecommand{\@photoname}{#3}}
-\providecommand\headlinetype{none}
+\providecommand\@headlinealignment{}
+\providecommand\@headlinetype{none}
\providecommand\@headlinecontent{}
-\providecommand\headlinecontent{}
-\providecommand\headline[2]{\renewcommand\headlinecontent{#1}\renewcommand\headlinetype{#2}}
-
-\AtEndPreamble{%
- \ifdefstring{\headlinetype}{name}{%
- \ifdefempty{\headlinecontent}{%
- \renewcommand*\@headlinecontent{\firstnamestyle{\firstname}\ \familynamestyle{\familyname}
- \ifdefempty{\acadtitle}{}{%
- \par\bigskip\acadtitlestyle{\acadtitle}}%
- }}{%
- \renewcommand*\@headlinecontent{\headlinecontent}
- }}{}
- \ifdefstring{\headlinetype}{title}{%
- \ifdefempty{\headlinecontent}{%
-\renewcommand*\@headlinecontent{\headlinestyle{Curriculum Vitae}}
- }{%
- \renewcommand*\@headlinecontent{\headlinecontent}
- }}{}
+\ProvideDocumentCommand{\headline}{O{c} m o}
+{
+ \renewcommand\@headlinealignment{#1}
+ \renewcommand\@headlinetype{#2}
+ \renewcommand\@headlinecontent{
+ \IfNoValueTF {#3}
+ {
+ \ifstrequal{#2}{title}{\par\headlinestyle{Curriculum Vitae}}{}
+ \ifstrequal{#2}{name}{\par\firstnamestyle{\firstname}\ \familynamestyle{\familyname}\par\bigskip\acadtitlestyle{\acadtitle}}{}
+ }{\headlinestyle{#3}}
+}
+}
+\providecommand\setheadlinealignment{%
+ \ifdefstring{\@headlinealignment}{l}{\RaggedRight}{%
+ \ifdefstring{\@headlinealignment}{r}{\RaggedLeft}{\Centering}}
+}
+\providecommand\setheadlinetypename{%
+\ifdefstring{\@headlinetype}{name}{%
+ \setheadlinealignment
+ \headlinestyle{\@headlinecontent}
+}{}
+}
+\providecommand\setheadlinetypetitle{%
+ \ifdefstring{\@headlinetype}{title}{%
+ \setheadlinealignment
+ \headlinestyle{\@headlinecontent}
+}{}
+}
+\providecommand\setheadline{%
+ \setheadlinetypename
+ \setheadlinetypetitle
}
\newif\if@firstdetailselement\@firstdetailselementtrue
\providecommand*{\@titledetailsnewline}{
@@ -498,7 +504,7 @@ setkeys=\kvsetkeys%
@{}>{\raggedleft\arraybackslash}p{\@hintscolwidth}%
@{\hspace{\@sepcolwidth}}p{\@maincolwidth}@{}%
}%
- \hintstyle{#2} & {#3}%
+ \hintstyle{#2} & {\@minipagetrue #3}%
\end{tabular}\\[#1]%
}
\providecommand*{\cvdoubleitem}[5][\@afterelementsvspace]{%
@@ -578,17 +584,30 @@ setkeys=\kvsetkeys%
\href{#2}{\usefontofkomafont{linkfont}#2}}{%
\href{#2}{\usefontofkomafont{linkfont}#1}}%
}
+ \providecommand*\croplink{}
\providecommand*{\httplink}[2][]{%
+ \renewcommand\croplink{\StrDel{#2}{http://}}
\ifstrempty{#1}{%
- \href{http://#2}{\usefontofkomafont{httplinkfont}#2}}{%
- \href{http://#2}{\usefontofkomafont{httplinkfont}#1}}%
- }
+ \IfSubStr{#2}{http:}{\href{#2}}{\href{http://#2}}{%
+ \usefontofkomafont{httplinkfont}\croplink}%
+ }{%
+ \IfSubStr{#2}{http:}{\href{#2}}{\href{http://#2}}{%
+ \usefontofkomafont{httplinkfont}#1}}
+ }
+ \providecommand*{\httpslink}[2][]{%
+ \renewcommand\croplink{\StrDel{#2}{https://}}
+ \ifstrempty{#1}{%
+ \IfSubStr{#2}{https:}{\href{#2}}{\href{https://#2}}{%
+ \usefontofkomafont{httpslinkfont}\croplink}%
+ }{%
+ \IfSubStr{#2}{https:}{\href{#2}}{\href{https://#2}}{%
+ \usefontofkomafont{httpslinkfont}#1}}
+ }
\providecommand*{\emaillink}[2][]{%
\ifstrempty{#1}{%
\href{mailto:#2}{\usefontofkomafont{emaillinkfont}#2}}{%
\href{mailto:#2}{\usefontofkomafont{emaillinkfont}#1}}%
}
-
\hypersetup{
breaklinks,
unicode,
@@ -617,7 +636,6 @@ setkeys=\kvsetkeys%
\providecommand*\pdfsubject{}
\providecommand*\pdftitle{}
\providecommand*\pdfkeywords{}
-
\AtEndPreamble{%
\providecommand*\@allbordercolors{colortheme}
\ifdefempty{\allbordercolors}{}{\renewcommand*\@allbordercolors{\allbordercolors}}
@@ -646,7 +664,7 @@ setkeys=\kvsetkeys%
\AtBeginDocument{%
\raggedbottom
} % End AtBeginDocument
-\clearscrheadfoot
+\clearpairofpagestyles
\RequirePackage{komacv-\komacv@style}
\endinput
%%