summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/komacv/komacv.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-12 21:08:50 +0000
committerKarl Berry <karl@freefriends.org>2017-04-12 21:08:50 +0000
commit707a35c0418c756f9d5bb9ce628107ffbaaa09cd (patch)
tree341f1637e5c25d2a9cfca47b2dcc8959c0e02799 /Master/texmf-dist/tex/latex/komacv/komacv.cls
parent27cdd6bfa8154741f66deea535349eedbc455a28 (diff)
komacv (12apr17)
git-svn-id: svn://tug.org/texlive/trunk@43766 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/komacv/komacv.cls')
-rw-r--r--Master/texmf-dist/tex/latex/komacv/komacv.cls151
1 files changed, 89 insertions, 62 deletions
diff --git a/Master/texmf-dist/tex/latex/komacv/komacv.cls b/Master/texmf-dist/tex/latex/komacv/komacv.cls
index 668cf075401..0fa92a0dbdc 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 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]
\ProvidesClass{komacv}
- [2014/08/10 v1.0.1 komacv class]
+ [2017/04/12 v1.1 komacv class]
+\changes{v1.1}{2017/04/12}{New macro headline, and new correspondent elements headlinestyle, headlinecolor, headlinefont}
+
\providecommand*\mycolor{blue}
\RequirePackage{ifthen,kvoptions,calc}
\SetupKeyvalOptions{%
@@ -43,7 +45,7 @@ setkeys=\kvsetkeys%
ifpdf,%
ifluatex,%
ifxetex,%
- scrpage2,%
+ scrlayer-scrpage,%
marvosym,%
array,%
graphicx,%
@@ -51,11 +53,15 @@ setkeys=\kvsetkeys%
enumitem,
hyperref%
}
+\RequirePackage[raggedrightboxes]{ragged2e}
\definecolor{myblue}{rgb}{0.2,0.3,0.65}
\colorlet{mycolor}{myblue}
\AtEndPreamble{%
\renewcommand*\mycolor{\komacv@color}
\colorlet{colortheme}{\mycolor}% specified in documentclass option
+ \@ifundefinedcolor{headlinecolor}{%
+ \colorlet{@headlinecolor}{black}}{%
+ \colorlet{@headlinecolor}{headlinecolor}}
\@ifundefinedcolor{firstnamecolor}{%
\colorlet{@firstnamecolor}{black}}{%
\colorlet{@firstnamecolor}{firstnamecolor}}
@@ -96,8 +102,9 @@ setkeys=\kvsetkeys%
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}%
}
-\newkomafont{firstnamefont}{\fontsize{34}{36}\mdseries\upshape}
-\newkomafont{familynamefont}{\usekomafont{firstnamefont}}
+\newkomafont{headlinefont}{\fontsize{30}{32}\mdseries\upshape}
+\newkomafont{firstnamefont}{\Huge\mdseries\upshape}
+\newkomafont{familynamefont}{\usefonttokomafont{firstnamefont}}
\newkomafont{acadtitlefont}{\LARGE\mdseries\itshape}
\newkomafont{addressfont}{\normalsize\mdseries\itshape}
\newkomafont{quotefont}{\large\itshape}
@@ -149,6 +156,8 @@ setkeys=\kvsetkeys%
\newlength\@commentlength
\newlength\@titlenamewidth
\newlength\@titlenamemaxwidth
+\newlength\titlenamemaxwidth
+\setlength\titlenamemaxwidth{0pt}
\newlength\@titlenamefullwidth
\newlength\@titledetailswidth
\newlength\@infocolwidth
@@ -228,10 +237,10 @@ setkeys=\kvsetkeys%
% listitem
\ifdimequal{\listitemsymbolwidth}{0pt}{%
\settowidth{\@listitemsymbolwidth}{\listitemsymbol{}~}%
- \setlength{\@listitemmaincolwidth}{\@maincolwidth-\@listitemsymbolwidth}%
}{%
\setlength{\@listitemsymbolwidth}{\listitemsymbolwidth}%
}
+ \setlength{\@listitemmaincolwidth}{\@maincolwidth-\@listitemsymbolwidth}%
% listdoubleitem
\ifdimequal{\listdbitemmaincolwidth}{0pt}{%
@@ -239,6 +248,7 @@ setkeys=\kvsetkeys%
\setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
}{%
\setlength{\@listdbitemmaincolwidth}{\listdbitemmaincolwidth}%
+ \setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
}
% quote
@@ -312,6 +322,7 @@ setkeys=\kvsetkeys%
\setlength{\@aftersubsecvspace}{\aftersubsecvspace}%
}
} % end AtEndPreamble
+\changes{v1.1}{2017/04/12}{Added macros and symbols for social media}
\providecommand*\@addresssymbol{}
\providecommand*\addresssymbol{}
\providecommand*\@mobilesymbol{\Mobilefone~}
@@ -324,6 +335,14 @@ setkeys=\kvsetkeys%
\providecommand*\emailsymbol{}
\providecommand*\@homepagesymbol{}
\providecommand*\homepagesymbol{}
+\providecommand*\@twittersymbol{\faTwitter~}
+\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}~}
@@ -348,6 +367,18 @@ setkeys=\kvsetkeys%
\ifdefempty{\homepagesymbol}{}{%
\renewcommand*\@homepagesymbol{\homepagesymbol}
}
+ \ifdefempty{\twittersymbol}{}{%
+\renewcommand*\@twittersymbol{\twittersymbol}
+}
+ \ifdefempty{\githubsymbol}{}{%
+\renewcommand*\@githubsymbol{\githubsymbol}
+}
+ \ifdefempty{\facebooksymbol}{}{%
+\renewcommand*\@facebooksymbol{\facebooksymbol}
+}
+ \ifdefempty{\linkedinsymbol}{}{%
+\renewcommand*\@linkedinesymbol{\linkedinsymbol}
+}
\ifdefempty{\fsymbol}{}{%
\renewcommand*\@fsymbol{\fsymbol}
}
@@ -393,6 +424,27 @@ setkeys=\kvsetkeys%
\providecommand{\@photoframe}{#1}%
\setlength{\@photowidth}{#2}%
\providecommand{\@photoname}{#3}}
+\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}
+ }}{}
+}
\newif\if@firstdetailselement\@firstdetailselementtrue
\providecommand*{\@titledetailsnewline}{
\if@firstdetailselement%
@@ -404,38 +456,41 @@ setkeys=\kvsetkeys%
\renewcommand\maketitle{\csexpandonce{@cvtitle\komacv@style}}
\RequirePackage{lastpage}
\providecommand*{\totalpagemark}{% page and pagetotal
-\usekomafont{pagenumber}\pageref{LastPage}%
+\usefonttokomafont{pagenumber}\pageref{LastPage}%
}
- \newcommand*{\firstnamestyle}[1]{{%
- \usekomafont{firstnamefont}%
+\providecommand*\headlinestyle[1]{{%
+ \usefontofkomafont{headlinefont}%
+ \textcolor{@headlinecolor}{#1}}}
+ \providecommand*{\firstnamestyle}[1]{{%
+ \usefonttokomafont{firstnamefont}%
\textcolor{@firstnamecolor}{#1}}}
- \newcommand*{\familynamestyle}[1]{{%
- \usekomafont{familynamefont}%
+ \providecommand*{\familynamestyle}[1]{{%
+ \usefonttokomafont{familynamefont}%
\textcolor{@familynamecolor}{#1}}}
- \newcommand*{\acadtitlestyle}[1]{{%
- \usekomafont{acadtitlefont}%
+ \providecommand*{\acadtitlestyle}[1]{{%
+ \usefonttokomafont{acadtitlefont}%
\textcolor{@acadtitlecolor}{#1}}}
- \newcommand*{\addressstyle}[1]{{%
- \usekomafont{addressfont}%
+ \providecommand*{\addressstyle}[1]{{%
+ \usefonttokomafont{addressfont}%
\textcolor{@addresscolor}{#1}}}
- \newcommand*{\quotestyle}[1]{{%
- \usekomafont{quotefont}%
+ \providecommand*{\quotestyle}[1]{{%
+ \usefonttokomafont{quotefont}%
\textcolor{@quotecolor}{#1}}}
- \newcommand*{\hintstyle}[1]{{%
- \usekomafont{hintfont}%
+ \providecommand*{\hintstyle}[1]{{%
+ \usefonttokomafont{hintfont}%
\textcolor{@hintcolor}{#1}}}
- \newcommand*{\sectionstyle}[1]{%
- \usekomafont{section}%
+ \providecommand*{\sectionstyle}[1]{%
+ \usefonttokomafont{section}%
\textcolor{@seccolor}{#1}}
- \newcommand*{\subsectionstyle}[1]{%
- \usekomafont{subsection}%
+ \providecommand*{\subsectionstyle}[1]{%
+ \usefonttokomafont{subsection}%
\textcolor{@subseccolor}{#1}}
\providecommand*{\cvitem}[3][\@afterelementsvspace]{%
\begin{tabular}{%
@{}p{\@hintscolwidth}%
@{\hspace{\@sepcolwidth}}p{\@maincolwidth}@{}%
}%
- \raggedleft\hintstyle{#2} &{#3}%
+ \RaggedLeft\hintstyle{#2} &{#3}%
\end{tabular}\\[#1]%
}
\providecommand*{\cvdoubleitem}[5][\@afterelementsvspace]{%
@@ -443,7 +498,7 @@ setkeys=\kvsetkeys%
\begin{minipage}[t]{\@dbitemmaincolwidth}#3\end{minipage}%
\hspace*{\@sepcolwidth}%
\begin{minipage}[t]{\@hintscolwidth}%
- \noindent\raggedleft\hintstyle{#4}
+ \noindent\RaggedLeft\hintstyle{#4}
\end{minipage}%
\hspace*{\@sepcolwidth}%
\begin{minipage}[t]{\@dbitemmaincolwidth}%
@@ -492,64 +547,36 @@ setkeys=\kvsetkeys%
}
\newbox{\@commentmainbox}
\providecommand*{\cvitemwithcomment}[4][\@afterelementsvspace]{%
- \savebox{\@commentmainbox}{{\usekomafont{commentmainfont}#3}}%
+ \savebox{\@commentmainbox}{{\usefonttokomafont{commentmainfont}#3}}%
\settowidth\@commentmainlength{\usebox{\@commentmainbox}}%
\setlength{\@commentlength}{%
\@maincolwidth-\@sepcolwidth-\@commentmainlength%
}%
\cvitem[#1]{#2}{%
\begin{minipage}[t]{\@commentmainlength}%
- \usekomafont{commentmainfont} #3%
+ \usefonttokomafont{commentmainfont} #3%
\end{minipage}%
\hfill%
\begin{minipage}[t]{\@commentlength}%
- \raggedleft\usekomafont{commentfont} #4%
+ \RaggedLeft\usefonttokomafont{commentfont} #4%
\end{minipage}%
}%
}
\providecommand*{\link}[2][]{%
\ifstrempty{#1}{%
- \href{#2}{\usekomafont{linkfont}#2}}{%
- \href{#2}{\usekomafont{linkfont}#1}}%
+ \href{#2}{\usefonttokomafont{linkfont}#2}}{%
+ \href{#2}{\usefonttokomafont{linkfont}#1}}%
}
\providecommand*{\httplink}[2][]{%
\ifstrempty{#1}{%
- \href{http://#2}{\usekomafont{httplinkfont}#2}}{%
- \href{http://#2}{\usekomafont{httplinkfont}#1}}%
+ \href{http://#2}{\usefonttokomafont{httplinkfont}#2}}{%
+ \href{http://#2}{\usefonttokomafont{httplinkfont}#1}}%
}
\providecommand*{\emaillink}[2][]{%
\ifstrempty{#1}{%
- \href{mailto:#2}{\usekomafont{emaillinkfont}#2}}{%
- \href{mailto:#2}{\usekomafont{emaillinkfont}#1}}%
+ \href{mailto:#2}{\usefonttokomafont{emaillinkfont}#2}}{%
+ \href{mailto:#2}{\usefonttokomafont{emaillinkfont}#1}}%
}
-\providecommand\origsection{}
-\let\origsection\section
-\providecommand\origsubsection{}
-\let\origsubsection\subsection
-
-\providecommand\@cvsimplesection[1]{%
- \origsection*{\sectionstyle{#1}}
-}
-\providecommand\@cvsimplesubsection[1]{%
- \origsubsection*{\subsectionstyle{#1}}
-}
-
-\providecommand\@cvbarsection[1]{%
- \origsection*{
- \phantomsection{}% reset the anchor for hyperrefs
- \addcontentsline{toc}{section}{#1}%
- \cvitem[0pt]{%
- \raggedleft\hintstyle{\color{@secbarcolor}%
- \rule{\@hintscolwidth}{1ex}}%
- }{\sectionstyle{#1}}
- }% end origsection
-} % end cvbarsection
-
-\providecommand\@cvbarsubsection[1]{%
- \origsubsection*{
- \cvitem[0pt]{}{\subsectionstyle{#1}}
- }%
-}
\hypersetup{
breaklinks,