Debian Codegraph @

texmf-dist/source/latex/komacv/komacv.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2014-2021
4 % by Salome Södergran ([email protected])
5 % -----------------------------------------------
6 %
7 % This work may be distributed and/or modified under the
8 % conditions of the LaTeX Project Public License, either version 1.3
9 % of this license or (at your option) any later version.
10 % The latest version of this license is in
11 % http://www.latex-project.org/lppl.txt
12 % and version 1.3 or later is part of all distributions of LaTeX
13 % version 2005/12/01 or later.
14 %
15 % This work has the LPPL maintenance status 'maintained'.
16 %
17 % The current maintainer of this work is Salome Södergran.
18 %
19 % This work consists of the files komacv.dtx and komacv.ins
20 % which produce the class komacv.cls and some style files
21 % komacv-<style>.sty. The following styles are distributed with this
22 % version of komacv: classic, casual and oldstyle.
23 %
24 % \fi
25 %
26 % \iffalse
27 %<*driver>
28 \ProvidesFile{komacv.dtx}[2021/02/12 v1.1.2 komacv class]
29 %</driver>
30 %<class|classic|casual|oldstyle>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
31 %<class>\ProvidesClass{komacv}
32 %<class> [2021/02/12 v1.1.2 komacv class]
33 %<classic>\ProvidesPackage{komacv-classic}
34 %<casual>\ProvidesPackage{komacv-casual}
35 %<oldstyle>\ProvidesPackage{komacv-oldstyle}
36 %<classic|casual|oldstyle> [2021/02/12 v1.1.2 style package for komacv class]
37 %<*driver>
38 \documentclass{ltxdoc}
39 % \AtBeginDocument{\OnlyDescription}
40 \EnableCrossrefs
41 \CodelineIndex
42 \RecordChanges % Gather update information
43 \setcounter{IndexColumns}{2}
44 \makeatletter
45 \renewenvironment{theglossary}{%
46 \glossary@prologue
47 \setlength\emergencystretch{5em}
48 \GlossaryParms \let\item\@idxitem \ignorespaces}{}
49 \makeatother
50 \setlength{\IndexMin}{40ex}
51 \setlength{\columnseprule}{.4pt}
52 \usepackage{csquotes,xspace,marginnote,metalogo,ragged2e}
53 \newcommand*\mycls{\textsf{komacv}\xspace}
54 \newcommand*\mysty[1]{\texttt{#1}\xspace}
55 \newcommand*\cvitemusage{\cs{cvitem}\oarg{spacing}\marg{header}\marg{text}\xspace}
56 \newcommand*\cvdoubleitemusage{\cs{cvdoubleitem}\oarg{spacing}\marg{header1}\marg{text1}\marg{header2}\marg{text2}\xspace}
57 \newcommand*\cvlistitemusage{\cs{cvlistitem}\oarg{label}\marg{item}\xspace}
58 \newcommand*\cvlistdoubleitemusage{\cs{cvlistdoubleitem}\oarg{label}\marg{item1}\marg{item2}\xspace}
59 \newcommand*\cventryusage{\cs{cventry}\oarg{spacing}\marg{years}\marg{degree/job title}\marg{institution/employer}\\\marg{localization}\marg{grade/...}\marg{comment/job description}\xspace}
60 \newcommand*\cvitemwithcommentusage{\cs{cvitemwithcomment}\oarg{spacing}\marg{header}\marg{text}\marg{comment}\xspace}
61 \newcommand*\linkusage{\cs{link}\oarg{optional text}\marg{link}}
62 \newcommand*\httplinkusage{\cs{httplink}\oarg{optional text}\marg{link}}
63 \newcommand*\httpslinkusage{\cs{httpslink}\oarg{optional text}\marg{link}}
64 \newcommand*\emaillinkusage{\cs{emaillink}\oarg{optional text}\marg{link}}
65 \makeatletter
66 \renewcommand{\Describe@Macro}{\@ifstar\Describe@MacroStar\Describe@MacroStarNoStar}
67 \newcommand\Describe@MacroStar[1]{\endgroup
68 \marginnote{\raggedleft\PrintDescribeMacro{#1}}%
69 \SpecialUsageIndex{#1}\@esphack\ignorespaces}
70 \newcommand\Describe@MacroNoStar[1]{\endgroup
71 \marginpar{\raggedleft\PrintDescribeMacro{#1}}%
72 \SpecialUsageIndex{#1}\@esphack\ignorespaces}
73 \renewcommand{\DescribeMacro}{\@ifstar\DescribeMacroStar\DescribeMacroNoStar}
74 \newcommand\DescribeMacroStar{\leavevmode\@bsphack
75 \begingroup\MakePrivateLetters\Describe@MacroStar}
76 \newcommand\DescribeMacroNoStar{\leavevmode\@bsphack
77 \begingroup\MakePrivateLetters\Describe@MacroNoStar}
78
79 \@ifundefined{KOMA}{%
80 \DeclareRobustCommand{\KOMA}{\textsf{K\kern.05em O\kern.05em%
81 M\kern.05em A\kern.1em-\kern.1em\xspace}}}{}
82 \@ifundefined{KOMAScript}{%
83 \DeclareRobustCommand{\KOMAScript}{\textsf{\KOMA Script}}}{}
84 \makeatother
85 \usepackage[colorlinks=true]{hyperref}
86 \hypersetup{pdftitle={CV}}
87 \begin{document}
88 \DocInput{komacv.dtx}
89 \PrintIndex\PrintChanges
90 % Make sure that the index is not printed twice
91 % (ltxdoc.cfg might have a second \PrintIndex command)
92 \let\PrintChanges\relax
93 \let\PrintIndex\relax
94 \end{document}
95 %</driver>
96 % \fi
97 %
98 % \CheckSum{0}
99 %
100 % \CharacterTable
101 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
102 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
103 % Digits \0\1\2\3\4\5\6\7\8\9
104 % Exclamation \! Double quote \" Hash (number) \#
105 % Dollar \$ Percent \% Ampersand \&
106 % Acute accent \' Left paren \( Right paren \)
107 % Asterisk \* Plus \+ Comma \,
108 % Minus \- Point \. Solidus \/
109 % Colon \: Semicolon \; Less than \<
110 % Equals \= Greater than \> Question mark \?
111 % Commercial at \@ Left bracket \[ Backslash \\
112 % Right bracket \] Circumflex \^ Underscore \_
113 % Grave accent \` Left brace \{ Vertical bar \|
114 % Right brace \} Tilde \~}
115 %
116 %
117 % \changes{v1.0}{2014/08/06}{Initial version}
118 % \changes{v1.0.1}{2014/08/10}{Installation problem fixed}
119 % \changes{v1.1}{2017/04/12}{Option headline added; user length \texttt{titlenamemaxwidth}; behavior of sections and subsections improved; several bugfixes}
120 % \changes{v1.1.1}{2017/04/17}{Typos in the documentation and minor bugs fixed}
121 % \changes{v1.1.2}{2021/02/12}{Improved implementation of headline, minor bug fixes, httpslink added, fontawesome-switch added}
122 %
123 % \GetFileInfo{komacv.dtx}
124 %
125 % \DoNotIndex{\providecommand,\newcommand,\renewcommand,\newenvironment,\begin,\end}
126 % \DoNotIndex{\newlength,\setlength,\addtolength,\settowidth}
127 % \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ }
128 % \DoNotIndex{\@ne,\z@,\p@}
129 % \DoNotIndex{\advance,\begingroup,\catcode,\closein}
130 % \DoNotIndex{\closeout,\day,\def,\let,\edef,\empty,\endgroup}
131 % \DoNotIndex{\if,\else,\fi,\ifthenelse,\newif,\ifx,\ifnum,\ifdim}
132 % \DoNotIndex{\ifboolexpr,\ifdefempty,\ifdefstring,\ifdimequal,\ifdimgreater}
133 % \DoNotIndex{\ifdimless,\ifstrempty,\ifundef}
134 % \DoNotIndex{\@ifundefined,\isundefined,\if@firstdetailselement}
135 % \DoNotIndex{\OR,\AND,\equal}
136 % \DoNotIndex{\RequirePackage,\LoadClass,\PassOptionsToClass,\ProcessOptions}
137 % \DoNotIndex{\ProcessKeyvalOptions,\kvsetkeys,\SetupKeyvalOptions}
138 % \DoNotIndex{\alph,\arabic,\roman}
139 % \DoNotIndex{\AtBeginDocument,\AtEndPreamble,\AtEndDocument}
140 % \DoNotIndex{\cs,\csexpandonce,\CurrentOption,\DeclareStringOption,\DeclareOption}
141 % \DoNotIndex{\bfseries,\centering,\itshape,\mdseries,\textbf,\upshape}
142 % \DoNotIndex{\LARGE,\Large,\large,\normalsize,\small}
143 % \DoNotIndex{\baselineskip,\linewidth,\fill,\hfill,\href,\hspace}
144 % \DoNotIndex{\newbox,\newsavebox,\savebox,\sbox,\usebox,\makebox}
145 % \DoNotIndex{\@fboxa,\@fboxb,\@sboxa,\@sboxb,\@uboxa,\@uboxb,\@minus,\@plus}
146 % \DoNotIndex{\newline,\newlist,\setlist,\noindent,\nointerlineskip}
147 % \DoNotIndex{\par,\parbox,\totalheightof,\strut,\vspace}
148 % \DoNotIndex{\origsection,\origsubsection}
149 % \DoNotIndex{\Letter,\Telefon,\Mobilefone,\FAX}
150 % \DoNotIndex{\textbullet,\textendash,\textperiodcentered}
151 % \DoNotIndex{\Neutral,\ae,\relax,\LaTeX}
152 %
153 % \title{The \textsf{komacv} class\thanks{This document
154 % corresponds to \textsf{komacv}~\fileversion, dated \filedate.}}
155 % \author{Salome S\"odergran \\ \texttt{[email protected]}}
156 %
157 % \maketitle
158 %
159 % \abstract{The \mycls class makes typesetting an attractive CV easy. While it comes with several predefined styles it is still highly customizable. Virtually all settings can be controlled by user commands.}
160 %
161 % \tableofcontents
162 %
163 % \section{Introduction}
164 %
165 % This class originates from an imitation of the \textsf{moderncv} class. Thanks to Xavier Danaux for that fine class! While \mycls owes a lot to the original code, it does not pretend to be a precise copy and does not intend to keep up with the further development of the \textsf{moderncv} class. The original class was taken as an important starting point but it is likely that the further development will take different directions.
166 %
167 % While \textsf{moderncv} is a stand-alone class, this one is a wrapper class building upon the \KOMA class \textsf{scrartcl} (hence the \textsf{koma-} in the name of this class). This gives users more flexibility as the page layout is easily adjustable and incompatibilities with other packages are less likely to occur. The incompatibility of the \textsf{moderncv} class with the \textsf{biblatex} package was actually the main reason for my building the predecessor of this class, the \textsf{koma-moderncvclassic} package. Compared with that package, this class offers much more flexibility and customizability, comes with a variety of styles and is extensible (new styles can be added easily).
168 %
169 % With \cs{documentclass\{komacv\}} at the beginning of your document the commands and environments of both this class and the \textsf{scrartcl} class become available.
170 %
171 % The variants of the file \textsf{komacv\_{}example} which come with this package show exemplarily how a document with \mycls might be structured and how the typical commands are to be used. They are not intended as examples of good style but as demonstrations of the potential of the \mycls class. In this documentation all commands and features are explained.
172 %
173 % As for typesetting a covering letter with \mycls, see \ref{sec:bugs-feat-requ}.
174 %
175 % \section{Engines}
176 % \label{sec:engines}
177 % This class can be run with either \XeTeX, \XeLaTeX, \LuaTeX, \LuaLaTeX or pdf\LaTeX. See also \ref{sub:fonts}.
178 %
179 % \section{In the preamble}
180 % \label{sec:preamble}
181 %
182 % \subsection{Documentclass options}
183 % \label{sub:options}
184 %
185 % \mycls accepts the following key-value pairs as optional arguments of \cs{documentclass}:
186 %
187 % \DescribeMacro{[xcolor=<value>]}
188 % The value of the key \texttt{xcolor} is passed to the \textsf{xcolor} package and takes the name of the color spectrum. These are the names of color spectra defined by \textsf{xcolor}: svgnames, dvipsnames, x11names. If the option is not set or the key \texttt{xcolor} is given without a value, then the default is used which is x11names.
189 %
190 % \DescribeMacro{[color=<value>]}
191 % The value of the key \texttt{color} is the name of the color to be used in special elements of the document like section and subsection headers of the document (depending on the chosen style). The name is either a base color name (black, blue, green a.\,s.\,o.) or a color name according to the chosen color spectra defined by \textsf{xcolor} (e.\,g. Firebrick2 in x11names). See the \textsf{xcolor} documentation for a list of valid color names. Color definitions such as |red!75| or |blue!30!green| are also accepted. Yet another possibility is to specify |mycolor| in the preamble (see below). If the color option is given without an argument or not given at all,
192 %
193 % |[color=mycolor]|
194 %
195 % is assumed as default.%
196 %
197 % If |mycolor| was not defined, the fallback is |blue| instead of |mycolor|.
198 %
199 % \DescribeMacro{[style=<value>]}
200 % This option loads the style variant. The default is |style=classic|. Other variants currently available are: |casual| and |oldstyle|. Other variants may follow in time, contributions are very welcome! See the example documents to see the different layouts the styles produce.
201 %
202 % \DescribeMacro{[fontawesome=false]}
203 % In case you don't like the social media symbols offered by fontawesome or if fontawesome provides error messages you may turn off the use of fontawesome with this option. Please note that you don't have to use this option to avoid fontawesome; you may just redefine the social media symbols to your liking with \cs{renewcommand} (see \ref{sub:symbols}).
204 %
205 % \DescribeMacro{\KOMAoptions}
206 % In addition to these \mycls specific options, all \KOMA options may be used as with the \KOMA classes. They may be given either in the option list of \cs{documentclass} or with the help of \cs{KOMAoptions} somewhere in the preamble:
207 %
208 % \cs{documentclass}\oarg{key=value}\{komacv\} or
209 %
210 % \cs{KOMAoptions}\marg{key1=value1,key2=value2}
211 %
212 % and will be passed to the \textsf{scrartcl} class (on which the \mycls class is built).
213 %
214 % \subsection{Personal data (header and footer)}
215 % \label{sub:persdata}
216 % To specify your personal data set the macros with \cs{renewcommand}:
217 %
218 % |\renewcommand*\|\meta{command}\marg{Definition}, \emph{for example:}
219 %
220 % |\renewcommand*\title{Curriculum vitae}|.
221 %
222 % \begin{macro}{\headline}
223 % With \cs{headline}\oarg{alignment}\marg{type}\oarg{content} you can set -- guess what? -- a headline or title for the whole document, either a title (like \enquote{Curriculum vitae}) or your name, which may come in handy if you have a very long name that is otherwise being displayed in an unsatisfying way.
224 % \changes{v1.1}{2017/04/12}{New macro headline, and new correspondent elements headlinestyle, headlinecolor, headlinefont}
225 % \changes{v1.1}{2017/04/12}{Default font size changed, due to new font \texttt{headlinefont}}
226 % \changes{v1.1.2}{2021/02/12}{Improved implementation of headline. Caution! changed syntax}
227 % The first optional argument sets the alignment (|l|=left, |r|=right, |c|=centered (default)). The mandatory argument defines the type (|name| or |title|). The last optional argument defines the content of the headline. If it is ommitted, with type |name| firstname, lastname and (if defined) the academic title are used, with type |title| \enquote{Curriculum vitae}.
228 % Apart from that, the only difference between the two types is that with type |title| the name is printed with the personal data, whereas it is ommitted with type |name| to avoid duplicates.
229 % Depending on the combination of style and type the result may be aesthetically questionable.
230 %
231 % \emph{Example:}
232 %
233 % |\headline{name} |
234 % sets your defined firstname and familyname as a centered headline.
235 %
236 % |\headline[r]{title}[Lebenslauf]|
237 % sets \enquote{Lebenslauf} as a right-aligned headline.
238 %
239 % \end{macro}
240 %
241 % \DescribeMacro{\title}
242 % The macro \cs{title} sets nothing in the document itself but is for the pdf document properties only. Note that for this macro special characters (like German umlauts) must be given in the \LaTeX\ notation (e.\,g. |\"a|) even if utf is enabled for the document.
243 %
244 % \DescribeMacro{\firstname}
245 % \DescribeMacro{\familyname}
246 % The macros listed beside, if specified, will be used in the head (or foot, depending on the style in use) of your CV. If there are elements you do not wish to appear in your CV just leave the corresponding macros undefined.
247 % \DescribeMacro{\mobile}
248 % \DescribeMacro{\phonenr}
249 % \DescribeMacro{\faxnr}
250 % \DescribeMacro{\email}
251 % \DescribeMacro{\homepage}
252 % \DescribeMacro{\twitter}
253 % \DescribeMacro{\github}
254 % \DescribeMacro{\facebook}
255 % \DescribeMacro{\linkedin}
256 %
257 % The names of the macros are self-explanatory, so I will give just a few hints.
258 %
259 % \DescribeMacro{\acadtitle}
260 % \DescribeMacro{\addressstreet}
261 % \DescribeMacro{\addresscity}
262 % \cs{acadtitle} expects your academic title(s). \cs{addressstreet} is for your street or P.O.~Box, and \cs{addresscity} for your city, ZIP~Code and possibly your country.
263 %
264 % \DescribeMacro{\extrainfo}
265 % \cs{extrainfo} takes any arbitrary additional information and will appear at the end of the addressblock (depending on the chosen style).
266 %
267 % \DescribeMacro{\cvquote}
268 % Put your life motto (or something alike) into \cs{cvquote}. It will usually appear somewhat separated from the rest of the header.
269 %
270 % See below (\ref{sub:colors} and \ref{sub:fonts}) how to change the appearance of the information given in these macros.
271 %
272 % The header and possibly footer are set with the command \cs{maketitle} at the beginning of the document.
273 %
274 % If you want to create your own footer, define your own pagestyle and call it with |\thispagestyle|\marg{mypagestyle} right after \cs{maketitle}. The command
275 % \DescribeMacro{\addtofooter}
276 % |\addtofooter|\oarg{symbol}\marg{text}
277 % can be used in the new pagestyle definition to add something to the footer. The optional argument expects the symbol to be used as a separator between elements that appear on the same line. If it is omitted |\fsymbol| is used.
278 %
279 % \DescribeMacro{\fsymbol}
280 % For a redefinition of \cs{fsymbol} use
281 %
282 %|\renewcommand*\fsymbol|\marg{symbol}, \emph{for example:}
283 %
284 % |\renewcommand*\fsymbol{~\textbullet~}|.
285 %
286 %
287 % \subsection{Symbols}
288 % \label{sub:symbols}
289 % \DescribeMacro{\addresssymbol}
290 % \DescribeMacro{\phonesymbol}
291 % \DescribeMacro{\mobilesymbol}
292 % \DescribeMacro{\faxsymbol}
293 % \DescribeMacro{\emailsymbol}
294 % \DescribeMacro{\homepagesymbol}
295 % \DescribeMacro{\twittersymbol}
296 % \DescribeMacro{\githubsymbol}
297 % \DescribeMacro{\facebooksymbol}
298 % \DescribeMacro{\linkedinsymbol}
299 % You can change (or set) the symbols (or the string) used before the phone, fax and mobile number, the e-mail address and the homepage with the according macros (see beside) and |\renewcommand|, e.\,g. \\
300 % |\renewcommand\phonesymbol{Tel.~}|
301 %
302 % \DescribeMacro{\listitemsymbol}
303 % In the same way the item symbol in the listitems may be changed with the macro \cs{listitemsymbol}.
304 %
305 % \subsection{Picture}
306 % \label{sub:picture}
307 %
308 % \DescribeMacro{\photo}
309 % To include a picture into the head of your CV set
310 %
311 % \cs{photo}\oarg{frame}\marg{width}\marg{path/pic}
312 %
313 % in the preamble.
314 %
315 % \DescribeMacro{[frame]}
316 % With |frame| as optional argument the picture is set into a frame, by default in the color chosen as document color. See below (\ref{sub:lengths}, \ref{sub:colors}) how to change the color and the thickness of the frame.
317 %
318 % \DescribeMacro{[mframe]}
319 % With the \mysty{classic} style, |[mframe]| (for margin frame) will extend the picture into the right page margin with half its width (or according to the length of \cs{mframepicshift}, if defined). With other styles |[mframe]| is an alias for |[frame]|.
320 %
321 % \DescribeMacro{ {<width>}}
322 % The first mandatory argument takes the width the picture is resized to, all common \LaTeX\ measures may be used.
323 %
324 % \DescribeMacro{ {<path/pic>}}
325 % The second mandatory argument takes the name of the picture file. If the picture is not located in the same directory as the document and no \cs{graphicspath} was defined, the path to the picture file must be given as well. This argument will be passed to the \textsf{graphicx} package, so all file types that \textsf{graphicx} can handle are allowed (jpg/jpeg, png, pdf).
326 %
327 %
328 % \subsection{Lengths}
329 % \label{sub:lengths}
330 %
331 % The following lengths may be changed with the usual \LaTeX{} commands \cs{setlength}, \cs{addtolength} and \cs{settowidth}.
332 %
333 % \DescribeMacro{\hintscolwidth}
334 % The width of the hint column. The default value is |0.2\textwidth|.
335 %
336 % \DescribeMacro{\sepcolwidth}
337 % The distance between the hint column and the main column. In \cs{cvdoubleitem} and \cs{cvlistdoubleitem} this is also the distance between the aligned items, or the aligned pairs of header and item.
338 %
339 % \DescribeMacro{\infocolwidth}
340 % In |oldstyle| style the address and possible extra information are presented in the left margin of the width |\infocolwidth|. Its default value is |3.5cm|.
341 %
342 % \DescribeMacro{\sepinfocolwidth}
343 % In |oldstyle| style the distance between the info column and the main column.
344 %
345 % \DescribeMacro{\maincolwidth}
346 % The width of the main column in all elements, except for the |doubleitem| elements.
347 %
348 % \DescribeMacro{\dbitemmaincolwidth}
349 % Width of each maincolumn where two items are set per line with \cs{cvdoubleitem}.
350 %
351 % \DescribeMacro{\listitemsymbolwidth}
352 % Horizontal space reserved for the symbol in \cs{listitem} entries. By default this is the width of \cs{listitemsymbol} followed by a nonbreaking space (|~|).
353 %
354 % \DescribeMacro{\listitemmaincolwidth}
355 % Width of the maincolumn where \cs{cvlistitem} is in use. By default this is the \cs{maincolumnwidth} minus \cs{listitemsymbolwidth}.
356 %
357 % \DescribeMacro{\listdbitemmaincolwidth}
358 % Width of each maincolumn where two items are set per line with \cs{cvlistdoubleitem}.
359 %
360 % \DescribeMacro{\titlesepwidth}
361 % Horizontal space between the text information given in the header and the picture (if \cs{photo} is set).
362 %
363 % \DescribeMacro{\mframepicshift}
364 % If a picture is set with the optional argument |[mframe]| of \cs{photo} the picture will be placed partly in the margin. The length \cs{mframepicshift} controls how much the picture will be moved to the right (from the right text margin). This works only with the \mysty{classic} style; with other styles \cs{mframepicshift} does nothing.
365 %
366 % \DescribeMacro{\fboxrule}
367 % \DescribeMacro{\fboxsep}
368 % The thickness of the frame around your picture and the space between the frame and the picture (if \cs{photo} is set with either |[frame]| or |[mframe]| as optional argument).
369 %
370 % \DescribeMacro{\quotewidth}
371 % The width of the quote.
372 %
373 % \DescribeMacro{\footerwidth}
374 % The width of the footer (used in \mysty{casual} style).
375 %
376 % \DescribeMacro{\aftertitlevspace}
377 % Vertical space between head and quote (or main text, if no quote is given).
378 %
379 % \DescribeMacro{\afterquotevspace}
380 % Vertical space between quote and main text. Used only if quote is given.
381 %
382 % \DescribeMacro{\afterelementsvspace}
383 % Vertical space inserted after each element (\cs{cvitem}, \cs{cventry}, \ldots).
384 %
385 % \DescribeMacro{\beforesecvspace}
386 % \DescribeMacro{\aftersecvspace}
387 % \DescribeMacro{\beforesubsecvspace}
388 % \DescribeMacro{\aftersubsecvspace}
389 % Vertical space inserted before or after sections and subsections. Use an elastic length (e.\,g. something like |3ex plus .2ex minus .1ex| or \cs{baselineskip}). Note that the section and subsection definition of \mycls needs improvement, so the setting of these lengths may not procuce the desired result and the result may change in future versions.
390 %
391 % \subsection{Colors}
392 % \label{sub:colors}
393 %
394 % \DescribeMacro{\colorlet}
395 % The color theme of the whole document is changed via the documentclass options as described above (\ref{sub:options}). If you want to change the color of certain elements only you may do so with the command
396 %
397 % \cs{colorlet}\marg{elementcolorname}\marg{color}, \emph{for example}
398 %
399 % |\colorlet{firstnamecolor}{red}| (basic color name) \emph{or}
400 %
401 % |\colorlet{firstnamecolor}{Firebrick2}| (color name as defined in the color spectrum specified with the documentclass option \oarg{xcolor= }, x11names in this case) \emph{or}
402 %
403 % |\colorlet{sectitlecolor}{firstnamecolor}| (make the sectiontitles have the same color as the firstname).
404 %
405 % \DescribeMacro{firstnamecolor}
406 % \DescribeMacro{familynamecolor}
407 % \DescribeMacro{acadtitlecolor}
408 % \DescribeMacro{addresscolor}
409 % \DescribeMacro{quotecolor}
410 % With the colornames given beside you can change the color of the corresponding elements that are used in the head (or foot) of your CV. By default (i.\,e. if you do not change the colors with \cs{colorlet}) the text in the CV head is black. More precisely, the firstnamecolor is black, the other elements of the head take the color of the firstname. So if you want to change the color of the whole text in the head, it suffices to change |firstnamecolor|. If you want the different elements to have different colors, you have to define them separately.
411 %
412 % \DescribeMacro{framecolor}
413 % \DescribeMacro{framebackcolor}
414 % |framecolor| and |framebackcolor| may be specified when \cs{photo} is used with either |[frame]| or |[mframe]| as optional argument. |framecolor| sets the color of the frame around the picture, |framebackcolor| of the interspace between frame and picture. By default |framecolor| is the color of the document colortheme, |framebackcolor| is white.
415 %
416 % \DescribeMacro{secbarcolor}
417 % \DescribeMacro{seccolor}
418 % \DescribeMacro{subseccolor}
419 % By default the section headers, the bar beside the section headers (if provided by the current style) and the subsection headers are given in the color of the document colortheme. To change the settings use the colornames given beside.
420 %
421 % \DescribeMacro{hintcolor}
422 % |hintcolor| is the name of the color used for the text in the hint column. By default it is black.
423 %
424 % \DescribeMacro{\definecolor}
425 % If you want to assign a color to a name you can do so with the \cs{definecolor} command from the \textsf{xcolor}:
426 %
427 % \DescribeMacro{mycolor}
428 % |\definecolor{mycolor}{cmyk}{0.92,0,0.87,0.09}|.
429 %
430 % This new (or any other) name may be given as value to the |color| key in the documentclass optionlist and used with \cs{colorlet} as just described.
431 %
432 % \subsection{Encoding and Fonts}
433 % \label{sub:fonts}
434 %
435 % This class does not load any fonts. The different enginges have their own ways of handling fonts and it is up to the user to choose the enginge and a font suitable for the style in use. With \XeTeX, \XeLaTeX, \LuaTeX\ and \LuaLaTeX\ |fontspec| is loaded by |komacv|, with pdf\LaTeX\ utf8 is loaded as input encoding and T1 as fontencoding. Set the desired font in a usual enginge-specific way, e.\,g. with \cs{setmainfont}\marg{font} for \XeTeX, \LuaTeX\ and friends and with \cs{usepackage}\marg{font} for pdf\LaTeX.
436 %
437 %
438 % The element specific font attributes are set with \cs{newkomafont} and may be adjusted with \cs{setkomafont} or \cs{addtokomafont}.
439 %
440 % \emph{For example}:
441 %
442 % \DescribeMacro*{firstnamefont}
443 % |\setkomafont{firstnamefont}{\fontsize{24}{26}\itshape}| \emph{or}
444 %
445 % \DescribeMacro*{familynamefont}
446 % |\addtokomafont{familynamefont}{\scshape}| \emph{or}
447 %
448 % \DescribeMacro*{acadtitlefont}
449 % |\setkomafont{addressfont}{\usekomafont{quotefont}}|.
450 %
451 % \DescribeMacro*{addressfont}
452 %
453 %
454 % \DescribeMacro{quotefont}
455 % \DescribeMacro{hintfont}
456 % \DescribeMacro{commentfont}
457 % \DescribeMacro{commentmainfont}
458 % By default |familynamefont| is the same as |firstnamefont|, so if you want to change both it suffices to change |firstnamefont|. |addressfont| is used for the whole addressblock, including address, phone and fax numbers, email address, homepage address and extrainfo.\\
459 % |commentfont| and |commentmainfont| are used in |\cvitemwithcomment| only.
460 %
461 % \DescribeMacro*{linkfont}
462 % |linkfont|, |httplinkfont|, |httpslinkfont|, |emaillinkfont| are used for the link commands \cs{link}, \cs{httplink}, \cs{httpslink}, and \cs{emaillink} (described below \ref{sub:links}).
463 % \DescribeMacro*{httplinkfont}
464 % \DescribeMacro*{httpslinkfont}
465 %
466 % \DescribeMacro*{emaillinkfont}
467 % Font attributes of elements that belong to the \textsf{scrartcl} class are also changed in the usual \KOMA way, e.\,g.:
468 %
469 % \DescribeMacro*{section}
470 % |\setkomafont{section}{\Large\sffamily\mdseries\slshape}|.
471 %
472 % \DescribeMacro*{subsection}
473 % |\addtokomafont{subsection}{\bfseries}|.
474 %
475 % Switching to a sans-serif font as default is done in the usual \LaTeX\ way, e.\,g.
476 %
477 % |\renewcommand\familydefault{\rmdefault}\normalfont|
478 %
479 % at the beginning of the document (not in the preamble!) This will change the font of some elements, though not all. Make use of the font definition macros for everything else.
480 %
481 % \subsection{Page number}
482 % \label{sub:page-number}
483 %
484 % \DescribeMacro{\totalpagemark}
485 % The command \cs{totalpagemark} prints the total number of pages. With the following definition in your preamble you will get the page number followed by a slash and the total number of pages in the outer foot of your pages (with the help of \textsf{scrlayer-scrpage} which is loaded by the documentclass):
486 %
487 % |\pagestyle{scrheadings}|
488 %
489 % \cs{clearpairofpagestyles}
490 %
491 % |\ofoot{\pagemark/\totalpagemark}|
492 %
493 % \subsection{Hypersetup}
494 % \label{sub:hypersetup}
495 %
496 % \DescribeMacro{\hypersetup}
497 % To change the way hyperlinks are highlighted in the pdf document, use the \cs{hypersetup} command. This command is provided by the \textsf{hyperref} package which is loaded by the \mycls class. See the \textsf{hyperref} manual for the options available.
498 % Example: use |\hypersetup{pdfborder = false}| to remove the box around links in the pdf-document.
499 %
500 % \DescribeMacro{pdfauthor}
501 % \DescribeMacro{pdftitle}
502 % \DescribeMacro{pdfsubject}
503 % \DescribeMacro{pdfkeywords}
504 % \textbf{Note:} The following \cs{hypersetup} option keys (and these only) must \emph{not} be redefined with \cs{hypersetup} but with \cs{renewcommand}:\\%
505 % |pdfauthor|, |pdftitle|, |pdfsubject|, |pdfkeywords| and all \mbox{\ldots{}|bordercolor|} options. \emph{For example}, do not use:
506 %
507 % \DescribeMacro{allbordercolors}
508 % \DescribeMacro{citebordercolor}
509 % \DescribeMacro{filebordercolor}
510 % \DescribeMacro{linkbordercolor}
511 % \DescribeMacro{menubordercolor}
512 % \DescribeMacro{urlbordercolor}
513 % \DescribeMacro{runbordercolor}
514 % |\hypersetup{pdftitle = {My~CV}}| but rather:
515 %
516 % |\renewcommand*\pdftitle{My~CV}|.
517 %
518 % This is necessary because the defaults defined by the documentclass are loaded at the end of the preamble and would overwrite any user settings.
519 %
520 % All \cs{hypersetup} color options accept the same color names as does the documentclass |color| option (i.\,e. it depends on the setting of the documentclass option |xcolor| which names will be recognized). So you can change the color options like this:
521 %
522 % |\renewcommand*\urlbordercolor{green}| (for the \mbox{\ldots|bordercolor|} options), but
523 %
524 % \DescribeMacro{urlcolor}
525 % |\hypersetup{urlcolor=pink}| (for all other \mbox{\ldots|color|} options).
526 %
527 % \section{In the document}
528 % \label{sec:document}
529 %
530 %
531 %\subsection{\cs{maketitle}}
532 % \label{sub:maketitle}
533 %
534 % \DescribeMacro{\maketitle}
535 % With \cs{maketitle} at the beginning of your document your personal data and your picture as specified in the preamble will be set in the header (and possibly footer) of the first page according to the chosen style.
536 %
537 % If you want the footer to appear on all pages, use |\pagestyle{footer}| or |\pagestyle|\marg{mypagestyle} somewhere at the beginning of your document (not in the preamble).
538 %
539 %\subsection{Sections and subsections}
540 % \label{sub:sections}
541 %
542 % To structure your CV into sections like \enquote{Education}, \enquote{Job training}, \enquote{Interests} a.s.o. use the \cs{section} and \cs{subsection} commands. They are formatted according to the current style and include no section numbering. See above (\ref{sub:colors} and \ref{sub:fonts}) how to change the color and the font attributes of sections and subsections.
543 %
544 %\subsection{\cs{cvitem}}
545 % \label{sub:cvitem}
546 %
547 % \DescribeMacro{\cvitem}
548 % \cvitemusage is for single pairs of header and text. The header will appear in the hint column, the main text in the main column.
549 %
550 % The optional argument defines the vertical space after this \cs{cvitem} element. This applies analogously to all the elements with an optional spacing argument.
551 %
552 % To change the vertical space used after \emph{all} \mbox{\cs{cv}\ldots} elements that have an optional spacing argument, change \cs{afterelementsvspace} as desribed above (\ref{sub:lengths}). If the optional spacing argument is used it overrides the value of \cs{afterelementsvspace} for the current element.
553 %
554 % \textbf{Caveat}\label{warn:newline}: No newlines (|\\|) or paragraphs (\cs{par} oder empty lines) are allowed inside \cs{cvitem} and the other predefined elements. They will lead to an error message like:
555 %
556 % \texttt{! Paragraph ended before \cs{cvitem} was complete.}
557 %
558 % and the parsing process will stop.
559 %
560 %\subsection{\cs{cvdoubleitem}}
561 % \label{sub:cvdoubleitem}
562 %
563 %\DescribeMacro{\cvdoubleitem}
564 % \cvdoubleitemusage puts two pairs of header and text in one line. The first header appears in the hint column.
565 %
566 %\subsection{\cs{cvlistitem} and \cs{cvlistdoubleitem}}
567 % \label{sub:cvlistitem}
568 %
569 % \cvlistitemusage and\\
570 % \cvlistdoubleitemusage\\
571 % put one or two pair(s) of label and item in the main column. The hint column is left empty. If the optional argument is omitted, the label is the default label provided by the style in use or the label defined with \cs{listitemsymbol}.
572 %
573 %\subsection{\cs{cventry}}
574 % \label{sub:cventry}
575 % \DescribeMacro{\cventry}
576 % With the command\\
577 % \cventryusage\\
578 % you get a more structured description. The first mandatory argument will usually be placed in the hint column (depending on the style in use), all others in the main column, each with its own formatting. Just leave empty those arguments you do not need (use empty braces |{}|) . Note, however, that the second mandatory argument should not be empty (otherwise the entry in the main column will start with a comma).
579 % In case the predefined formatting of the arguments does not suit your needs you may of course use formatting commands inside the arguments.
580 %
581 %\subsection{\cs{cvitemwithcomment}}
582 % \label{sub:cvitemwithcomment}
583 %
584 % \DescribeMacro{\cvitemwithcomment}
585 % With \cvitemwithcommentusage you can list a pair of header and description with a additional right-aligned comment.
586 %
587 %\subsection{Links}
588 % \label{sub:links}
589 %
590 % There are four link commands predefined:
591 %
592 % \DescribeMacro{\link}
593 % \DescribeMacro{\httplink}
594 % \DescribeMacro{\httpslink}
595 % \DescribeMacro{\emaillink}
596 % \cs{link}\oarg{optional text}\marg{link},
597 %
598 % \cs{httplink}\oarg{optional text}\marg{link}, and
599 %
600 % \cs{httpslink}\oarg{optional text}\marg{link}, and
601 % \changes{v1.1.2}{2021/02/12}{\cs{httpslink} added.}
602 %
603 % \cs{emaillink}\oarg{optional text}\marg{link}.
604 %
605 % All of them take a description as optional argument and the link address as mandatory argument. The optional argument will be shown in the text, the hyperlink points to the address given in the mandatory argument. If no optional argument is given the address in the mandatory argument will be printed. The mandatory argument of \cs{httplink} will be prefixed with |http://|, of \cs{httpslink} with |https://|, of \cs{emaillink} with |mailto:|. To change the font attributes of the links, see above \ref{sub:fonts}.
606 %
607 % \subsection{Itemize}
608 % \label{sub:itemize}
609 %
610 % \DescribeEnv{compactitem}
611 % \DescribeEnv{compactenum}
612 % \DescribeEnv{compactdesc}
613 % These are three compact versions of the standard lists |itemize|, |enumerate| and |description| (by the \textsf{enumitem} package). In the default setting within \mycls they come without indentation or extra spacing so they fit nicely into other elements such as \cs{cvitem}.
614 % They are used in the usual way:
615 %
616 % |\begin{compactitem}|
617 %
618 % |\item| \meta{text}
619 %
620 % |\end{compactitem}|.
621 %
622 % If you use them inside other elements make sure there are no empty lines surrounding them, otherwise you will get an error message (see \ref{warn:newline}).
623 %
624 %\section{Styles}
625 %\subsection{The \mysty{classic} style}
626 % \label{sub:classic}
627 % In \mysty{classic} style all personal data appear in the header with the optional picture on the right side. Section and subsection headers are given in the document color and placed in the main column. On the left side of the section headers is a horizontal bar in the hint column.
628 %
629 %\subsection{The \mysty{casual} style}
630 % \label{sub:casual}
631 % The \mysty{casual} style is built upon the \mysty{classic} style with a few changes. The main difference to the \mysty{classic} style is that the picture is set at the left of the header and the address block is set in the foot of the page. By default the foot is set on the first page only. If you want it on all pages, put |\pagestyle{footer}| at the beginning of your document.
632 %
633 %\subsection{The \mysty{oldstyle} style}
634 % \label{sub:oldstyle}
635 % This style provides a CV with the addressblock in the left margin and the hint column to the right. The section headers are kept simple, without section bars. To allow for three columns the |DIV| value is increased.
636 %
637 % \section{Examples}
638 %
639 % For examples see the example files \mbox{\texttt{komacv\_example\_}\meta{style}\texttt{.pdf}} that come with this class. They should be located in the |doc|-directory of the tree where the class is stored. The example file \mbox{\texttt{komacv\_example.tex}} can be used to test the various possibilities |komacv| offers. Just remove (or add) comment signs and play around.
640 %
641 %
642 % \section{New CV styles}
643 % The flexibility of \mycls makes it fairly easy to create new CV styles. If you have created a CV style of your own and want to share it with others you have several possibilites:
644 %
645 % You can publish it on CTAN. Just make sure it will be installed in the |styles|-subdirectory of the |komacv|-directory\\(such as
646 % |tex/latex/komacv/styles|).
647 %
648 % Or you can put it on GitHub (\texttt{salsod/komacv}) or send it to me by e-mail (\texttt{[email protected]}) and I will include it in the next version of \mycls.
649 %
650 % For your personal use, you can put it either into the working directory of your .tex-file (your cv-file) or into your local texmf-tree. In the latter case, don't forget to run texhash on the directory to refresh your tex system.
651 %
652 % \section{Bugs, feature requests, and maintenance}\label{sec:bugs-feat-requ}
653 % Known issue: Inconsistent vertical space between multiline cvlistitems (\cs{cvlistitem}).
654 %
655 % Feature request: A feature that has sometimes been asked for is the possibility of creating a cover letter based on \mycls for a job application. This has not been implemented into \mycls so far. The \KOMAScript\ now offers the possibility to create letters not only with the letter class \textsf{scrlttr2}, but also to load the package \textsf{scrletter} within any \KOMA class. This works also for \mycls. If you're interested in creating a cover letter inside \mycls, also have a look at Richard Grewe's extra package |komacv-rg| (see below, Acknowledgements).
656 %
657 % Further testing and use will certainly make some bugs crawl out from the dark in which they hide from me until now. If you encounter bugs, errors or typos, or if you have suggestions how to improve the \mycls class and the style files, please do not hesitate to contact me (in English or German) at \texttt{[email protected]}. I am thankful for any suggestions that help improving \mycls though I dare not promise to be always very speedy in publishing a new version. Computer stuff is something of rather low priority with me. So if you make a point of having bugs fixed as soon as possible please consider making your own contributions on GitHub (\texttt{salsod/komacv}) \ldots or to become the new maintainer of \mycls.
658 %
659 %
660 %\section{Acknowledgements}
661 % Many thanks to Richard Grewe, Samuel W. Flint, Alexander Dietzel, Ulrike Fischer, Alexander Kr\"anzlein, Matthias C.~Schmidt, Damian Martinez Dreyer, Wolfgang Witt, and Sebastian R\"oder for their suggestions and help. I am also grateful to Andreas Bie\ss{}mann, Simon Dreher, Paul Menzel and Dominik Wa\ss{}enhoven who helped to improve the (now obsolete) |koma-moderncvlassic.sty|.
662 %
663 % On CTAN you can find the bundle \textsf{komacv-rg} by Richard Grewe with extra features: \enquote{The komacv-rg bundle provides packages that aid in creating CVs based on the komacv class and creating related documents, such as cover letters and cover sheets for job applications. Concretely, the bundle consists of three packages: komacv-addons, komacv-lco, and komacv-multilang.} (The bug fixes presented in \textsf{komacv-addons} v0.9.2 found their way into \mycls as of v1.1.2.) Many thanks for this great addition!
664 %
665 % \StopEventually{\PrintIndex}
666 %
667 % \section{Implementation}
668 %
669 % \textbf{Note:} The code of the styles is not part of the file \texttt{komacv.cls} but is to be found in the style files \mbox{|komacv-|\meta{stylename}|.sty|}, e.\,g. \texttt{komacv-classic.sty}.
670 %
671 %\subsection{The \mycls class}
672 %
673 % \subsubsection*{Initialization}
674 % \iffalse
675 %<*class>
676 % \fi
677 % \begin{macrocode}
678 \providecommand*\mycolor{blue}
679 \RequirePackage{ifthen,kvoptions,calc,xparse,xstring}
680 % \end{macrocode}
681 %
682 % \subsubsection*{Declare Options}
683 % \begin{macrocode}
684 \SetupKeyvalOptions{%
685 family=komacv,%
686 prefix=komacv@,%
687 setkeys=\kvsetkeys%
688 }
689 \DeclareStringOption[mycolor]{color}[mycolor]
690 \DeclareStringOption[x11names]{xcolor}[x11names]
691 \DeclareStringOption[classic]{style}[classic]
692 \DeclareBoolOption[true]{fontawesome}
693 \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{scrartcl}}
694 % \end{macrocode}
695 %
696 % \subsubsection*{Process Options}
697 % \begin{macrocode}
698 \ProcessKeyvalOptions{komacv} % evaluate keyval options
699 % \end{macrocode}
700 %
701 % \subsubsection*{Load class}
702 % \begin{macrocode}
703 \LoadClass[a4paper,headings=normal,fontsize=11pt]{scrartcl}
704 % \end{macrocode}
705 %
706 %\subsubsection*{Packages}
707 % \changes{v1.1}{2017/04/12}{scrlayer-scrpage instead of the obsolete scrpage2}
708 % \changes{v1.1}{2017/04/12}{Linebreaks (hyphenation and no justificaton in narrow lines) improved with \texttt{ragged2e}.}
709 % \begin{macrocode}
710 \RequirePackage[\komacv@xcolor]{xcolor}
711 \RequirePackage{%
712 etoolbox,%
713 ifpdf,%
714 ifluatex,%
715 ifxetex,%
716 scrlayer-scrpage,%
717 marvosym,%
718 array,%
719 graphicx,%
720 microtype,%
721 enumitem,
722 hyperref%
723 }
724 \ifkomacv@fontawesome
725 \RequirePackage{fontawesome}
726 \fi
727 \RequirePackage[raggedrightboxes]{ragged2e}
728 \AtEndPreamble{%
729 \renewcommand\familydefault{\sfdefault}% without this, pdflatex produces error messages; WHY?
730 }
731 % \end{macrocode}
732 %
733 %\subsubsection*{Colors}
734 % \begin{macrocode}
735 \definecolor{myblue}{rgb}{0.2,0.3,0.65}
736 \colorlet{mycolor}{myblue}
737 \AtEndPreamble{%
738 \renewcommand*\mycolor{\komacv@color}
739 \colorlet{colortheme}{\mycolor}% specified in documentclass option
740 \@ifundefinedcolor{headlinecolor}{%
741 \colorlet{@headlinecolor}{black}}{%
742 \colorlet{@headlinecolor}{headlinecolor}}
743 \@ifundefinedcolor{firstnamecolor}{%
744 \colorlet{@firstnamecolor}{black}}{%
745 \colorlet{@firstnamecolor}{firstnamecolor}}
746 \@ifundefinedcolor{familynamecolor}{%
747 \colorlet{@familynamecolor}{@firstnamecolor}}{%
748 \colorlet{@familynamecolor}{familynamecolor}}
749 \@ifundefinedcolor{acadtitlecolor}{%
750 \colorlet{@acadtitlecolor}{@firstnamecolor}}{%
751 \colorlet{@acadtitlecolor}{acadtitlecolor}}
752 \@ifundefinedcolor{addresscolor}{%
753 \colorlet{@addresscolor}{@firstnamecolor}}{%
754 \colorlet{@addresscolor}{addresscolor}}
755 \@ifundefinedcolor{quotecolor}{%
756 \colorlet{@quotecolor}{@firstnamecolor}}{%
757 \colorlet{@quotecolor}{quotecolor}}
758 \@ifundefinedcolor{secbarcolor}{%
759 \colorlet{@secbarcolor}{colortheme}}{%
760 \colorlet{@secbarcolor}{secbarcolor}}
761 \@ifundefinedcolor{seccolor}{%
762 \colorlet{@seccolor}{colortheme}}{%
763 \colorlet{@seccolor}{seccolor}}
764 \@ifundefinedcolor{subseccolor}{%
765 \colorlet{@subseccolor}{colortheme}}{%
766 \colorlet{@subseccolor}{subseccolor}}
767 \@ifundefinedcolor{hintcolor}{%
768 \colorlet{@hintcolor}{black}}{%
769 \colorlet{@hintcolor}{hintcolor}}
770 \@ifundefinedcolor{framecolor}{%
771 \colorlet{@framecolor}{colortheme}}{%
772 \colorlet{@framecolor}{framecolor}}
773 \@ifundefinedcolor{framebackcolor}{%
774 \colorlet{@framebackcolor}{white}}{%
775 \colorlet{@framebackcolor}{framebackcolor}}
776 } % end AtEndPreamble
777 % \end{macrocode}
778 %
779 %\subsubsection*{Encoding and Fonts}
780 % \changes{v1.1}{2017/04/12}{\cs{usefontofkomafont} instead of \cs{usekomafont}, avoiding unintended side effects}
781 % \begin{macrocode}
782 \ifboolexpr{bool{xetex} or bool{luatex}}{%
783 \RequirePackage{fontspec}%
784 }{%
785 \RequirePackage[utf8]{inputenc}
786 \RequirePackage[T1]{fontenc}%
787 }
788 \newkomafont{headlinefont}{\fontsize{30}{32}\mdseries\upshape}
789 \newkomafont{firstnamefont}{\Huge\mdseries\upshape}
790 \newkomafont{familynamefont}{\usefontofkomafont{firstnamefont}}
791 \newkomafont{acadtitlefont}{\LARGE\mdseries\itshape}
792 \newkomafont{addressfont}{\normalsize\mdseries\itshape}
793 \newkomafont{quotefont}{\large\itshape}
794 \newkomafont{hintfont}{}
795 \newkomafont{linkfont}{}
796 \newkomafont{httplinkfont}{}
797 \newkomafont{httpslinkfont}{}
798 \newkomafont{emaillinkfont}{}
799 \newkomafont{commentmainfont}{\bfseries} % in \cvitemwithcomment
800 \newkomafont{commentfont}{\footnotesize\itshape} % in \cvitemwithcomment
801 \providecommand\sectionfont{\Large\sffamily\mdseries\upshape}
802 \providecommand\subsectionfont{\large\sffamily\mdseries\upshape}
803 \setkomafont{section}{\sectionfont}
804 \setkomafont{subsection}{\subsectionfont}
805 % \end{macrocode}
806 %
807 %\subsubsection*{Lengths}
808 % \changes{v1.1}{2017/04/12}{New user length \cs{titlenamemaxwidth}}
809 % \begin{macrocode}
810 \setlength\parindent{0pt}
811 \setlength\columnsep{10\p@}
812 \setlength\columnseprule{0\p@}
813 \newlength\@komacvtextwidth
814 \newlength\@hintscolwidth
815 \newlength\hintscolwidth
816 \setlength\hintscolwidth{0pt}
817 \newlength\@sepcolwidth
818 \newlength\sepcolwidth
819 \setlength\sepcolwidth{0pt}
820 \newlength\@maincolwidth
821 \newlength\maincolwidth
822 \setlength\maincolwidth{0pt}
823 \newlength\@quotewidth
824 \newlength\quotewidth
825 \setlength\quotewidth{0pt}
826 \newlength\@dbitemmaincolwidth
827 \newlength\dbitemmaincolwidth
828 \setlength\dbitemmaincolwidth{0pt}
829 \newlength\@listitemsymbolwidth
830 \newlength\listitemsymbolwidth
831 \setlength\listitemsymbolwidth{0pt}
832 \newlength\@listitemmaincolwidth
833 \newlength\listitemmaincolwidth
834 \setlength\listitemmaincolwidth{0pt}
835 \newlength\@listdbitemmaincolwidth
836 \newlength\listdbitemmaincolwidth
837 \setlength\listdbitemmaincolwidth{0pt}
838 \newlength\@titlepicwidth
839 \newlength\@titlesepwidth
840 \setlength\@titlesepwidth{0pt}
841 \newlength\titlesepwidth
842 \setlength\titlesepwidth{0pt}
843 \newlength\@mframepicshift
844 \newlength\mframepicshift
845 \setlength\mframepicshift{0pt}
846 \newlength\@commentmainlength
847 \newlength\@commentlength
848 \newlength\@titlenamewidth
849 \newlength\@titlenamemaxwidth
850 \newlength\titlenamemaxwidth
851 \setlength\titlenamemaxwidth{0pt}
852 \newlength\@titlenamefullwidth
853 \newlength\@titledetailswidth
854 \newlength\@infocolwidth
855 \newlength\infocolwidth
856 \setlength\infocolwidth{0pt}
857 \newlength\@sepinfocolwidth
858 \newlength\sepinfocolwidth
859 \setlength\sepinfocolwidth{0pt}
860 \newlength\komacvinfocolextrawidth % witout @ for use inside document (addmargin)
861 \newlength\@footerwidth
862 \setlength\@footerwidth{.6\textwidth}
863 \newlength\@fboxwidth
864 \newlength\footerwidth
865 \setlength\footerwidth{0pt}
866 \newlength\@aftertitlevspace
867 \newlength\aftertitlevspace
868 \setlength\aftertitlevspace{0pt}
869 \newlength\@afterquotevspace
870 \newlength\afterquotevspace
871 \setlength\afterquotevspace{0pt}
872 \newlength\@afterelementsvspace
873 \newlength\afterelementsvspace
874 \newlength\@beforesecvspace
875 \newlength\beforesecvspace
876 \setlength\beforesecvspace{0pt}
877 \newlength\@aftersecvspace
878 \newlength\aftersecvspace
879 \setlength\aftersecvspace{0pt}
880 \newlength\@beforesubsecvspace
881 \newlength\beforesubsecvspace
882 \setlength\beforesubsecvspace{0pt}
883 \newlength\@aftersubsecvspace
884 \newlength\aftersubsecvspace
885 \setlength\aftersubsecvspace{0pt}
886 \AtEndPreamble{%
887 % infocol (oldstyle)
888 \setlength{\@infocolwidth}{\infocolwidth}
889 \setlength{\@sepinfocolwidth}{\sepinfocolwidth}
890 \setlength\komacvinfocolextrawidth{\@infocolwidth+\@sepinfocolwidth}
891 \setlength\@komacvtextwidth{\textwidth-\komacvinfocolextrawidth}
892 % fboxextra (picture frame)
893 \newlength\@fboxextra
894 \setlength\@fboxextra{\fboxsep+\fboxrule}
895 % hintscolumn
896 \ifdimequal{\hintscolwidth}{0pt}{%
897 \setlength\@hintscolwidth{.2\@komacvtextwidth}
898 }{%
899 \setlength{\@hintscolwidth}{\hintscolwidth}%
900 }
901 % separatorcolumn
902 \ifdimequal{\sepcolwidth}{0pt}{%
903 \setlength\@sepcolwidth{2em}%
904 }{%
905 \setlength{\@sepcolwidth}{\sepcolwidth}%
906 }
907 % maincolumn
908 \ifdimequal{\maincolwidth}{0pt}{%
909 \setlength{\@maincolwidth}{\@komacvtextwidth-\@sepcolwidth-\@hintscolwidth}%
910 }{%
911 \setlength{\@maincolwidth}{\maincolwidth}%
912 }
913 % doubleitem
914 \ifdimequal{\dbitemmaincolwidth}{0pt}{%
915 \setlength{\@dbitemmaincolwidth}{%
916 \@maincolwidth-\@hintscolwidth-2\@sepcolwidth}%
917 \setlength{\@dbitemmaincolwidth}{0.5\@dbitemmaincolwidth}%
918 }{%
919 \setlength{\@dbitemmaincolwidth}{\dbitemmaincolwidth}%
920 }
921 % listitem
922 \ifdimequal{\listitemsymbolwidth}{0pt}{%
923 \settowidth{\@listitemsymbolwidth}{\listitemsymbol{}~}%
924 }{%
925 \setlength{\@listitemsymbolwidth}{\listitemsymbolwidth}%
926 }
927 \setlength{\@listitemmaincolwidth}{\@maincolwidth-\@listitemsymbolwidth}%
928 % listdoubleitem
929 \ifdimequal{\listdbitemmaincolwidth}{0pt}{%
930 \setlength{\@listdbitemmaincolwidth}{\@maincolwidth-\@sepcolwidth-\@listitemsymbolwidth}%
931 \setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
932 }{%
933 \setlength{\@listdbitemmaincolwidth}{\listdbitemmaincolwidth}%
934 \setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
935 }
936 % quote
937 \ifdimequal{\quotewidth}{0pt}{%
938 \setlength{\@quotewidth}{0.65\textwidth}%
939 }{%
940 \setlength{\@quotewidth}{\quotewidth}%
941 }
942 \ifdimequal{\afterquotevspace}{0pt}{%
943 \setlength\@afterquotevspace{2\baselineskip}%
944 }{%
945 \setlength\@afterquotevspace{\afterquotevspace}%
946 }
947 % title
948 \ifundef{\@photoname}{% without picture:
949 \setlength\@aftertitlevspace{\aftertitlevspace}
950 }{% with picture:
951 \ifthenelse{%
952 \equal{\@photoframe}{frame} \OR
953 \equal{\@photoframe}{mframe}
954 }{% with frame:
955 \ifdimequal{\aftertitlevspace}{0pt}{%
956 \setlength\@aftertitlevspace{1.5\@fboxextra}
957 }{%
958 \setlength\@aftertitlevspace{\aftertitlevspace}
959 }
960 }{% without frame:
961 \setlength\@aftertitlevspace{\aftertitlevspace}
962 }%
963 }%
964 \ifundef{\@photoname}{}{%
965 \ifdimequal{\titlesepwidth}{0pt}{%
966 \setlength\@titlesepwidth{\@sepcolwidth}
967 }{%
968 \setlength{\@titlesepwidth}{\titlesepwidth}
969 }
970 }
971 % afterelementsvspace
972 \ifdimequal{\afterelementsvspace}{0pt}{%
973 \setlength{\@afterelementsvspace}{0.25em}%
974 }{%
975 \setlength{\@afterelementsvspace}{\afterelementsvspace}%
976 }
977 % beforesecvspace
978 \ifdimequal{\beforesecvspace}{0pt}{%
979 \setlength{\@beforesecvspace}{3.5ex \@plus -1ex \@minus -.2ex}%
980 }{%
981 \setlength{\@beforesecvspace}{\beforesecvspace}%
982 }
983 % aftersecvspace
984 \ifdimequal{\aftersecvspace}{0pt}{%
985 \setlength{\@aftersecvspace}{2.3ex \@plus.2ex}%
986 }{%
987 \setlength{\@aftersecvspace}{\aftersecvspace}%
988 }
989 % beforesubsecvspace
990 \ifdimequal{\beforesubsecvspace}{0pt}{%
991 \setlength{\@beforesubsecvspace}{3.25ex\@plus -1ex \@minus -.2ex}%
992 }{
993 \setlength{\@beforesubsecvspace}{\beforesubsecvspace}%
994 }
995 % aftersubsecvspace
996 \ifdimequal{\aftersubsecvspace}{0pt}{%
997 \setlength{\@aftersubsecvspace}{1.5ex \@plus .2ex}%
998 }{%
999 \setlength{\@aftersubsecvspace}{\aftersubsecvspace}%
1000 }
1001 } % end AtEndPreamble
1002 % \end{macrocode}
1003 %
1004 %\subsubsection*{Symbols}
1005 % \changes{v1.1}{2017/04/12}{Added macros and symbols for social media}
1006 % \changes{v1.1.2}{2021/02/12}{Added class option |fontawesome=false| to avoid the social media symbols}
1007 % \begin{macrocode}
1008 \providecommand*\@addresssymbol{}
1009 \providecommand*\addresssymbol{}
1010 \providecommand*\@mobilesymbol{\upshape{\Mobilefone}~}
1011 \providecommand*\mobilesymbol{}
1012 \providecommand*\@phonesymbol{\upshape{\Telefon}~}
1013 \providecommand*\phonesymbol{}
1014 \providecommand*\@faxsymbol{\upshape{\FAX}~}
1015 \providecommand*\faxsymbol{}
1016 \providecommand*\@emailsymbol{\upshape{\Letter}~}
1017 \providecommand*\emailsymbol{}
1018 \providecommand*\@homepagesymbol{}
1019 \providecommand*\homepagesymbol{}
1020 \ifkomacv@fontawesome
1021 \providecommand*\@twittersymbol{\upshape{\faTwitter}~}
1022 \providecommand*\@githubsymbol{\upshape{\faGithub}~}
1023 \providecommand*\@facebooksymbol{\upshape{\faFacebook}~}
1024 \providecommand*\@linkedinsymbol{\upshape{\faLinkedin}~}
1025 \else
1026 \providecommand*\@twittersymbol{}
1027 \providecommand*\@githubsymbol{}
1028 \providecommand*\@facebooksymbol{}
1029 \providecommand*\@linkedinsymbol{}
1030 \fi
1031 \providecommand*\twittersymbol{}
1032 \providecommand*\githubsymbol{}
1033 \providecommand*\facebooksymbol{}
1034 \providecommand*\linkedinsymbol{}
1035 \providecommand*\@fsymbol{~~~\textbullet~~~}
1036 \providecommand*\fsymbol{}
1037 \providecommand*\@listitemsymbol{\textcolor{colortheme}{\Neutral}~}
1038 \providecommand*\listitemsymbol{}
1039 \AtEndPreamble{%
1040 \ifdefempty{\addresssymbol}{}{%
1041 \renewcommand*\@addresssymbol{\addresssymbol}
1042 }
1043 \ifdefempty{\mobilesymbol}{}{%
1044 \renewcommand*\@mobilesymbol{\mobilesymbol}
1045 }
1046 \ifdefempty{\phonesymbol}{}{%
1047 \renewcommand*\@phonesymbol{\phonesymbol}
1048 }
1049 \ifdefempty{\faxsymbol}{}{%
1050 \renewcommand*\@faxsymbol{\faxsymbol}
1051 }
1052 \ifdefempty{\emailsymbol}{}{%
1053 \renewcommand*\@emailsymbol{\emailsymbol}
1054 }
1055 \ifdefempty{\homepagesymbol}{}{%
1056 \renewcommand*\@homepagesymbol{\homepagesymbol}
1057 }
1058 \ifdefempty{\twittersymbol}{}{%
1059 \renewcommand*\@twittersymbol{\twittersymbol}
1060 }
1061 \ifdefempty{\githubsymbol}{}{%
1062 \renewcommand*\@githubsymbol{\githubsymbol}
1063 }
1064 \ifdefempty{\facebooksymbol}{}{%
1065 \renewcommand*\@facebooksymbol{\facebooksymbol}
1066 }
1067 \ifdefempty{\linkedinsymbol}{}{%
1068 \renewcommand*\@linkedinesymbol{\linkedinsymbol}
1069 }
1070 \ifdefempty{\fsymbol}{}{%
1071 \renewcommand*\@fsymbol{\fsymbol}
1072 }
1073 \ifdefempty{\listitemsymbol}{}{%
1074 \renewcommand*\@listitemsymbol{\listitemsymbol}
1075 }
1076 } % end \AtEndPreamble
1077 % \end{macrocode}
1078 %
1079 %\subsubsection*{Personal data}
1080 % \begin{macrocode}
1081 \providecommand*{\firstname}{}
1082 \providecommand*{\familyname}{}
1083 \providecommand*{\acadtitle}{}
1084 \providecommand*{\addressstreet}{}
1085 \providecommand*{\addresscity}{}
1086 \providecommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
1087 \providecommand*{\mobile}{}
1088 \providecommand*{\phonenr}{}
1089 \providecommand*{\faxnr}{}
1090 \providecommand*{\email}{}
1091 \providecommand*{\homepage}{}
1092 \providecommand*{\twitter}{}
1093 \providecommand*{\github}{}
1094 \providecommand*{\facebook}{}
1095 \providecommand*{\linkedin}{}
1096 \providecommand*{\extrainfo}{}
1097 \providecommand*{\cvquote}{}
1098 % \end{macrocode}
1099 %
1100 %\subsubsection*{Itemize}
1101 % With \textsf{enumitem}
1102 % \begin{macrocode}
1103 \newlist{compactitem}{itemize}{3}
1104 \newlist{compactenum}{enumerate}{3}
1105 \newlist{compactdesc}{description}{3}
1106 \setlist[compactitem,compactenum,compactdesc]{%
1107 topsep=0pt,%
1108 partopsep=0pt,%
1109 itemsep=0pt,%
1110 parsep=0pt,%
1111 leftmargin=*%
1112 } % end setlist
1113 \AtEndPreamble{%
1114 \setlist[compactitem,1]{label=\@listitemsymbol}
1115 \setlist[compactitem,2]{label={\textcolor{colortheme}\textendash}}
1116 \setlist[compactitem,3]{label={\textcolor{colortheme}\textperiodcentered}}
1117 \setlist[compactenum,1]{label={\textcolor{colortheme}{\arabic*.}}}
1118 \setlist[compactenum,2]{label={\textcolor{colortheme}{\alph*.}}}
1119 \setlist[compactenum,3]{label={\textcolor{colortheme}{\roman*.}}}
1120 } % end AtEndPreamble
1121 % \end{macrocode}
1122 %
1123 %\subsubsection*{Picture}
1124 % \begin{macrocode}
1125 \newlength\@photowidth
1126 \providecommand{\photo}[3][]{%
1127 \providecommand{\@photoframe}{#1}%
1128 \setlength{\@photowidth}{#2}%
1129 \providecommand{\@photoname}{#3}}
1130 % \end{macrocode}
1131 %
1132 %\subsubsection*{Headline}
1133 % \changes{v1.1}{2017/04/12}{Vertical space between name and academic title adjusted}
1134 % \changes{v1.1.2}{2021/02/12}{New implementation}
1135 % \begin{macrocode}
1136 \providecommand\@headlinealignment{}
1137 \providecommand\@headlinetype{none}
1138 \providecommand\@headlinecontent{}
1139 \ProvideDocumentCommand{\headline}{O{c} m o}
1140 {
1141 \renewcommand\@headlinealignment{#1}
1142 \renewcommand\@headlinetype{#2}
1143 \renewcommand\@headlinecontent{
1144 \IfNoValueTF {#3}
1145 {
1146 \ifstrequal{#2}{title}{\par\headlinestyle{Curriculum Vitae}}{}
1147 \ifstrequal{#2}{name}{\par\firstnamestyle{\firstname}\ \familynamestyle{\familyname}\par\bigskip\acadtitlestyle{\acadtitle}}{}
1148 }{\headlinestyle{#3}}
1149 }
1150 }
1151 \providecommand\setheadlinealignment{%
1152 \ifdefstring{\@headlinealignment}{l}{\RaggedRight}{%
1153 \ifdefstring{\@headlinealignment}{r}{\RaggedLeft}{\Centering}}
1154 }
1155 \providecommand\setheadlinetypename{%
1156 \ifdefstring{\@headlinetype}{name}{%
1157 \setheadlinealignment
1158 \headlinestyle{\@headlinecontent}
1159 }{}
1160 }
1161 \providecommand\setheadlinetypetitle{%
1162 \ifdefstring{\@headlinetype}{title}{%
1163 \setheadlinealignment
1164 \headlinestyle{\@headlinecontent}
1165 }{}
1166 }
1167 \providecommand\setheadline{%
1168 \setheadlinetypename
1169 \setheadlinetypetitle
1170 }
1171 % \end{macrocode}
1172 %
1173 %\subsubsection*{Title/Head}
1174 % \begin{macrocode}
1175 \newif\if@firstdetailselement\@firstdetailselementtrue
1176 \providecommand*{\@titledetailsnewline}{
1177 \if@firstdetailselement%
1178 \@firstdetailselementfalse%
1179 \else%
1180 \\[.4ex]
1181 \fi%
1182 }
1183 \renewcommand\maketitle{\csexpandonce{@cvtitle\komacv@style}}
1184 % \end{macrocode}
1185 %
1186 %\subsubsection*{Lastpage}
1187 % \begin{macrocode}
1188 \RequirePackage{lastpage}
1189 \providecommand*{\totalpagemark}{% page and pagetotal
1190 \usefontofkomafont{pagenumber}\pageref{LastPage}%
1191 }
1192 % \end{macrocode}
1193 %
1194 %\subsubsection*{Element styles}
1195 % \begin{macrocode}
1196 \providecommand*\headlinestyle[1]{{%
1197 \usefontofkomafont{headlinefont}%
1198 \textcolor{@headlinecolor}{#1}}}
1199 \providecommand*{\firstnamestyle}[1]{{%
1200 \usefontofkomafont{firstnamefont}%
1201 \textcolor{@firstnamecolor}{#1}}}
1202 \providecommand*{\familynamestyle}[1]{{%
1203 \usefontofkomafont{familynamefont}%
1204 \textcolor{@familynamecolor}{#1}}}
1205 \providecommand*{\acadtitlestyle}[1]{{%
1206 \usefontofkomafont{acadtitlefont}%
1207 \textcolor{@acadtitlecolor}{#1}}}
1208 \providecommand*{\addressstyle}[1]{{%
1209 \usefontofkomafont{addressfont}%
1210 \textcolor{@addresscolor}{#1}}}
1211 \providecommand*{\quotestyle}[1]{{%
1212 \usefontofkomafont{quotefont}%
1213 \textcolor{@quotecolor}{#1}}}
1214 \providecommand*{\hintstyle}[1]{{%
1215 \usefontofkomafont{hintfont}%
1216 \textcolor{@hintcolor}{#1}}}
1217 \providecommand*{\sectionstyle}[1]{%
1218 \usefontofkomafont{section}%
1219 \textcolor{@seccolor}{#1}}
1220 \providecommand*{\subsectionstyle}[1]{%
1221 \usefontofkomafont{subsection}%
1222 \textcolor{@subseccolor}{#1}}
1223 % \end{macrocode}
1224 %
1225 %\subsubsection*{Elements}
1226 %
1227 %\paragraph{cvitem}~\\
1228 % usage: \cvitemusage
1229 % \begin{macrocode}
1230 \providecommand*{\cvitem}[3][\@afterelementsvspace]{%
1231 \begin{tabular}{%
1232 @{}>{\raggedleft\arraybackslash}p{\@hintscolwidth}%
1233 @{\hspace{\@sepcolwidth}}p{\@maincolwidth}@{}%
1234 }%
1235 \hintstyle{#2} & {\@minipagetrue #3}%
1236 \end{tabular}\\[#1]%
1237 }
1238 % \end{macrocode}
1239 %
1240 %\paragraph{cvdoubleitem}~\\
1241 % usage: \cs{cvdoubleitem}\oarg{spacing}\marg{header1}\marg{text1}\marg{header2}\marg{text2}
1242 % \begin{macrocode}
1243 \providecommand*{\cvdoubleitem}[5][\@afterelementsvspace]{%
1244 \cvitem[#1]{#2}{%
1245 \begin{minipage}[t]{\@dbitemmaincolwidth}#3\end{minipage}%
1246 \hspace*{\@sepcolwidth}%
1247 \begin{minipage}[t]{\@hintscolwidth}%
1248 \noindent\raggedleft\hintstyle{#4}
1249 \end{minipage}%
1250 \hspace*{\@sepcolwidth}%
1251 \begin{minipage}[t]{\@dbitemmaincolwidth}%
1252 \noindent #5
1253 \end{minipage}%
1254 }%
1255 }
1256 % \end{macrocode}
1257 %
1258 %\paragraph{cvlistitem}~\\%
1259 % usage: \cvlistitemusage
1260 % \begin{macrocode}
1261 \providecommand*{\cvlistitem}[2][\@afterelementsvspace]{%
1262 \cvitem[#1]{}{%
1263 \@listitemsymbol%
1264 \hfill %
1265 \begin{minipage}[t]{.95\@listitemmaincolwidth}%
1266 #2%
1267 \end{minipage}%
1268 }%
1269 }
1270 % \end{macrocode}
1271 %
1272 %\paragraph{cvlistdoubleitem}~\\%
1273 % usage: \cvlistdoubleitemusage
1274 % \begin{macrocode}
1275 \providecommand*{\cvlistdoubleitem}[3][\@afterelementsvspace]{%
1276 \cvitem[#1]{}{%
1277 \@listitemsymbol%
1278 \hfill %
1279 \begin{minipage}[t]{.9\@listdbitemmaincolwidth}%
1280 #2%
1281 \end{minipage}%
1282 \hspace*{.9\@sepcolwidth}
1283 \ifstrempty{#3}{}{%
1284 \@listitemsymbol%
1285 \hfill %
1286 \begin{minipage}[t]{.9\@listdbitemmaincolwidth}%
1287 #3%
1288 \end{minipage}
1289 }%
1290 }%
1291 }
1292 % \end{macrocode}
1293 %
1294 %\paragraph{cventry}~\\%
1295 %usage: \cventryusage
1296 % \begin{macrocode}
1297 \providecommand*{\cventry}[7][\@afterelementsvspace]{%
1298 \cvitem[#1]{#2}{%
1299 {\bfseries#3}%
1300 \ifstrempty{#4}{}{, {\itshape#4}}%
1301 \ifstrempty{#5}{}{, #5}%
1302 \ifstrempty{#6}{}{, #6}%
1303 .%
1304 \ifx&#7&%
1305 \else{%
1306 \newline{}\begin{minipage}[t]{\linewidth}%
1307 \small#7%
1308 \end{minipage}%
1309 }%
1310 \fi%
1311 }%
1312 }
1313 % \end{macrocode}
1314 %
1315 %\paragraph{cvitemwithcomment}~\\%
1316 % usage: \cvitemwithcommentusage
1317 % \begin{macrocode}
1318 \newbox{\@commentmainbox}
1319 \providecommand*{\cvitemwithcomment}[4][\@afterelementsvspace]{%
1320 \savebox{\@commentmainbox}{{\usefontofkomafont{commentmainfont} #3}}%
1321 \settowidth\@commentmainlength{\usebox{\@commentmainbox}}%
1322 \setlength{\@commentlength}{%
1323 \@maincolwidth-\@sepcolwidth-\@commentmainlength%
1324 }%
1325 \cvitem[#1]{#2}{%
1326 \begin{minipage}[t]{\@commentmainlength}%
1327 \usefontofkomafont{commentmainfont} #3%
1328 \end{minipage}%
1329 \hfill%
1330 \begin{minipage}[t]{\@commentlength}%
1331 \raggedleft\usefontofkomafont{commentfont} #4%
1332 \end{minipage}%
1333 }%
1334 }
1335 % \end{macrocode}
1336 %
1337 %\paragraph{link}~\\%
1338 %usage: \linkusage
1339 % \begin{macrocode}
1340 \providecommand*{\link}[2][]{%
1341 \ifstrempty{#1}{%
1342 \href{#2}{\usefontofkomafont{linkfont}#2}}{%
1343 \href{#2}{\usefontofkomafont{linkfont}#1}}%
1344 }
1345 % \end{macrocode}
1346 %
1347 %\paragraph{httplink}~\\%
1348 %usage: \httplinkusage
1349 % \begin{macrocode}
1350 \providecommand*\croplink{}
1351 \providecommand*{\httplink}[2][]{%
1352 \renewcommand\croplink{\StrDel{#2}{http://}}
1353 \ifstrempty{#1}{%
1354 \IfSubStr{#2}{http:}{\href{#2}}{\href{http://#2}}{%
1355 \usefontofkomafont{httplinkfont}\croplink}%
1356 }{%
1357 \IfSubStr{#2}{http:}{\href{#2}}{\href{http://#2}}{%
1358 \usefontofkomafont{httplinkfont}#1}}
1359 }
1360 % \end{macrocode}
1361 %
1362 %\paragraph{httpslink}~\\%
1363 %usage: \httpslinkusage
1364 % \begin{macrocode}
1365 \providecommand*{\httpslink}[2][]{%
1366 \renewcommand\croplink{\StrDel{#2}{https://}}
1367 \ifstrempty{#1}{%
1368 \IfSubStr{#2}{https:}{\href{#2}}{\href{https://#2}}{%
1369 \usefontofkomafont{httpslinkfont}\croplink}%
1370 }{%
1371 \IfSubStr{#2}{https:}{\href{#2}}{\href{https://#2}}{%
1372 \usefontofkomafont{httpslinkfont}#1}}
1373 }
1374 % \end{macrocode}
1375 %
1376 %\paragraph{emaillink}~\\%
1377 %usage: \emaillinkusage
1378 % \begin{macrocode}
1379 \providecommand*{\emaillink}[2][]{%
1380 \ifstrempty{#1}{%
1381 \href{mailto:#2}{\usefontofkomafont{emaillinkfont}#2}}{%
1382 \href{mailto:#2}{\usefontofkomafont{emaillinkfont}#1}}%
1383 }
1384 % \end{macrocode}
1385 %
1386 %\subsubsection*{Sections}
1387 % \changes{v1.1}{2017/04/12}{Lengths \cs{beforesecvspace}, \cs{aftersecvspace}, \cs{beforesubsecvspace} and \cs{aftersubsecvspace} added to \cs{section} and \cs{subsection} definitions}
1388 % \begin{macrocode}
1389 % Depending on the style in use (see style descriptions).
1390 % \end{macrocode}
1391 %\subsubsection*{Hypersetup}
1392 % \begin{macrocode}
1393 \hypersetup{
1394 breaklinks,
1395 unicode,
1396 colorlinks = false,
1397 pdfborder = {0 0 .3},
1398 pdfstartview = FitH,
1399 pdfstartpage = 1,
1400 pdfcreator = \LaTeX{},
1401 pdfproducer = \LaTeX{}
1402 }
1403 \urlstyle{same}
1404 \providecommand*\@citebordercolor{}
1405 \providecommand*\citebordercolor{\@citebordercolor}
1406 \providecommand*\@filebordercolor{}
1407 \providecommand*\filebordercolor{\@filebordercolor}
1408 \providecommand*\@linkbordercolor{}
1409 \providecommand*\linkbordercolor{\@linkbordercolor}
1410 \providecommand*\@menubordercolor{}
1411 \providecommand*\menubordercolor{\@menubordercolor}
1412 \providecommand*\@runbordercolor{}
1413 \providecommand*\runbordercolor{\@runbordercolor}
1414 \providecommand*\@urlbordercolor{}
1415 \providecommand*\urlbordercolor{\@urlbordercolor}
1416 \providecommand*\allbordercolors{}
1417 \providecommand*\pdfauthor{}
1418 \providecommand*\pdfsubject{}
1419 \providecommand*\pdftitle{}
1420 \providecommand*\pdfkeywords{}
1421 \AtEndPreamble{%
1422 \providecommand*\@allbordercolors{colortheme}
1423 \ifdefempty{\allbordercolors}{}{\renewcommand*\@allbordercolors{\allbordercolors}}
1424 \providecommand*\@pdfauthor{\firstname~\familyname}
1425 \ifdefempty{\pdfauthor}{}{\renewcommand*\@pdfauthor{\pdfauthor}}
1426 \providecommand*\@pdfsubject{\firstname~\familyname}
1427 \providecommand*\pdfsubject{\@pdfsubject}
1428 \providecommand*\@pdftitle{\title~\firstname~\familyname}
1429 \providecommand*\pdftitle{\@pdftitle}
1430 \providecommand*\@pdfkeywords{\firstname~\familyname{} curriculum~vit\ae{} CV{}}
1431 \providecommand*\pdfkeywords{\@pdfkeywords}
1432 \hypersetup{%
1433 allbordercolors = \@allbordercolors,
1434 citebordercolor = \citebordercolor,
1435 filebordercolor = \filebordercolor,
1436 linkbordercolor = \linkbordercolor,
1437 menubordercolor = \menubordercolor,
1438 runbordercolor = \runbordercolor,
1439 urlbordercolor = \urlbordercolor,
1440 pdfauthor = \@pdfauthor,
1441 pdfsubject = \pdfsubject,
1442 pdftitle = \pdftitle,
1443 pdfkeywords = \pdfkeywords,
1444 }
1445 } % end AtEndPreamble
1446 % \end{macrocode}
1447 %
1448 %\subsubsection*{Varia}
1449 % \begin{macrocode}
1450 \AtBeginDocument{%
1451 \raggedbottom
1452 } % End AtBeginDocument
1453 \clearpairofpagestyles
1454 % \end{macrocode}
1455 %
1456 %\subsubsection*{Load style}
1457 % \begin{macrocode}
1458 \RequirePackage{komacv-\komacv@style}
1459 % \end{macrocode}
1460 %
1461 % \iffalse
1462 %</class>
1463 % \fi
1464 %
1465 %\subsection{The \mysty{classic} style}
1466 %\label{sec:style-classic}
1467 % \iffalse
1468 %<*classic>
1469 % \fi
1470 %
1471 %\subsubsection*{Fonts}
1472 % \begin{macrocode}
1473 \addtokomafont{firstnamefont}{\sffamily}
1474 \addtokomafont{acadtitlefont}{\sffamily}
1475 \addtokomafont{addressfont}{\sffamily}
1476 \addtokomafont{hintfont}{\sffamily}
1477 % \end{macrocode}
1478 %
1479 %\subsubsection*{Lengths}
1480 % \begin{macrocode}
1481 \AtEndPreamble{%
1482 %\AtBeginDocument{
1483 % mframepicshift
1484 \ifdimequal{\mframepicshift}{0pt}{%
1485 \setlength\@mframepicshift{.5\@photowidth+\@fboxextra}
1486 }{%
1487 \setlength\@mframepicshift{\mframepicshift}
1488 }
1489 } % end \AtBeginDocument
1490 % \end{macrocode}
1491 %
1492 %\subsubsection*{Title / Head}
1493 % \begin{macrocode}
1494 \AtEndPreamble{%
1495 \ifdimequal{\titlenamemaxwidth}{0pt}{%
1496 \setlength{\@titlenamemaxwidth}{.525\textwidth}
1497 }{
1498 \setlength\@titlenamemaxwidth{\titlenamemaxwidth}
1499 }
1500 }
1501 \providecommand\@cvtitleclassic{%
1502 %% set \cs{@titlenamemaxwidth| to the full name length, capped by \cs{@titlenamemaxwidth|
1503 \settowidth{\@titlenamefullwidth}{\firstnamestyle{\firstname~}\familynamestyle{\familyname}}
1504 \ifdimless{\@titlenamemaxwidth}{\@titlenamefullwidth}{%
1505 \setlength{\@titlenamewidth}{\@titlenamemaxwidth}
1506 }{%
1507 \setlength{\@titlenamewidth}{\@titlenamefullwidth}
1508 }
1509 % set titlenamedetailswidth
1510 \setlength{\@titledetailswidth}{\textwidth-\@titlenamewidth-\@titlesepwidth}%
1511 \ifundef{\@photoname}{}{% else
1512 \ifdefstring{\@photoframe}{frame}{%
1513 \setlength{\@titledetailswidth}{\@titledetailswidth-\@photowidth-2\@fboxextra}
1514 \setlength{\@titledetailswidth}{.99\@titledetailswidth} % avoid overfullbox warning
1515 }{% else
1516 \ifdefstring{\@photoframe}{mframe}{%
1517 \setlength{\@titledetailswidth}{\@titledetailswidth-\@mframepicshift}%
1518 \setlength{\@titledetailswidth}{.99\@titledetailswidth} % avoid overfullbox warning
1519 }{% picture but no frame
1520 \setlength{\@titledetailswidth}{\@titledetailswidth-\@photowidth}
1521 \setlength{\@titledetailswidth}{.99\@titledetailswidth} % avoid overfullbox warning
1522 }
1523 }
1524 }%
1525 % name and title
1526 \setheadline\par\bigskip
1527 \begin{minipage}[b]{\@titlenamewidth}%
1528 \RaggedRight
1529 \ifdefstring{\@headlinetype}{name}{\hfill\mbox{}}{%
1530 \firstnamestyle{\firstname}\ %
1531 \familynamestyle{\familyname}%
1532 \ifdefempty{\acadtitle}{}{%
1533 \par\bigskip\acadtitlestyle{\acadtitle}}%
1534 }
1535 \end{minipage}%
1536 % optional data
1537 \begin{minipage}[b]{\@titledetailswidth}%
1538 \raggedleft\addressstyle{%
1539 \ifdefempty{\addressstreet}{}{%
1540 \@titledetailsnewline%
1541 \@addresssymbol\addressstreet%
1542 \ifdefempty{\addresscity}{}{%
1543 \@titledetailsnewline\addresscity}}%
1544 \ifdefempty{\mobile}{}{%
1545 \@titledetailsnewline\@mobilesymbol~\mobile}%
1546 \ifdefempty{\phonenr}{}{%
1547 \@titledetailsnewline\@phonesymbol~\phonenr}%
1548 \ifdefempty{\faxnr}{}{%
1549 \@titledetailsnewline\@faxsymbol~\faxnr}%
1550 \ifdefempty{\email}{}{%
1551 \@titledetailsnewline\@emailsymbol\emaillink{\email}}%
1552 \ifdefempty{\homepage}{}{%
1553 \@titledetailsnewline\@homepagesymbol%
1554 \IfSubStr{\homepage}{https}{%
1555 \httpslink{\homepage}}{%
1556 \httplink{\homepage}}}%
1557 \ifdefempty{\twitter}{}{%
1558 \@titledetailsnewline\@twittersymbol~\twitter}%
1559 \ifdefempty{\github}{}{%
1560 \@titledetailsnewline\@githubsymbol~\github}%
1561 \ifdefempty{\facebook}{}{%
1562 \@titledetailsnewline\@facebooksymbol~\facebook}%
1563 \ifdefempty{\linkedin}{}{%
1564 \@titledetailsnewline\@linkedinsymbol~\linkedin}%
1565 \ifdefempty{\extrainfo}{}{%
1566 \@titledetailsnewline\extrainfo}%
1567 }%
1568 \end{minipage}%
1569 % optional photo
1570 \ifundef{\@photoname}{}{% with picture:
1571 \hspace*{\@titlesepwidth}%
1572 \ifthenelse{%
1573 \equal{\@photoframe}{frame} \OR
1574 \equal{\@photoframe}{mframe}
1575 }{% with frame:
1576 \begin{minipage}[b]{\@photowidth}%
1577 \fcolorbox{@framecolor}{@framebackcolor}{%
1578 \includegraphics[width=\@photowidth]{\@photoname}}%
1579 \end{minipage}}{% without frame:
1580 \begin{minipage}[b]{\@photowidth}
1581 \includegraphics[width=\@photowidth]{\@photoname}
1582 \end{minipage}}}
1583 \\[\@aftertitlevspace]
1584 % optional quote
1585 \ifundef{\cvquote}{}{%
1586 {\centering
1587 \begin{minipage}{\@quotewidth}%
1588 \centering\quotestyle{\cvquote}%
1589 \end{minipage}\\[\@afterquotevspace]%
1590 }
1591 }%
1592 }
1593 % \end{macrocode}
1594 %
1595 % \subsubsection*{Sections}
1596 % \changes{v1.1}{2017/04/12}{Definition of \cs{section} and \cs{subsection} changed, mainly to avoid pagebreaks (all styles)}
1597 % \begin{macrocode}
1598 \setcounter{secnumdepth}{1}
1599 \RedeclareSectionCommand
1600 [
1601 beforeskip=\@beforesecvspace,
1602 afterskip=\@aftersecvspace,
1603 font=\color{@seccolor}\sectionfont
1604 ]{section}
1605 \renewcommand*\thesection{\color{@secbarcolor}\rule{\@hintscolwidth}{1ex}\hspace{-1ex}\hspace{\@sepcolwidth}}
1606 \RedeclareSectionCommand
1607 [
1608 beforeskip=\@beforesubsecvspace,
1609 afterskip=\@aftersubsecvspace,
1610 indent=\dimexpr\@sepcolwidth+\@hintscolwidth,
1611 font=\color{@subseccolor}\subsectionfont
1612 ]{subsection}
1613 % \end{macrocode}
1614 %
1615 %\subsubsection*{Elements}
1616 % As defined by the class.
1617 %
1618 % \iffalse
1619 %</classic>
1620 % \fi
1621 %
1622 % \iffalse
1623 %<*casual>
1624 % \fi
1625 %
1626 %\subsection{The \mysty{casual} style}
1627 %\label{sec:style-casual}
1628 %\subsubsection*{Fonts}
1629 % \begin{macrocode}
1630 \addtokomafont{firstnamefont}{\sffamily\fontsize{38}{40}}
1631 \addtokomafont{acadtitlefont}{\sffamily}
1632 \addtokomafont{addressfont}{\sffamily\small}
1633 \addtokomafont{hintfont}{\sffamily}
1634 % \end{macrocode}
1635 %
1636 %\subsubsection*{Footer}
1637 % \begin{macrocode}
1638 \newsavebox\@fboxa
1639 \newsavebox\@fboxb
1640 \providecommand*\@sboxa[1]{\sbox\@fboxa{#1}}
1641 \providecommand*\@sboxb[1]{\sbox\@fboxb{#1}}
1642 \providecommand*\@uboxa{\usebox\@fboxa}
1643 \providecommand*\@uboxb{\usebox\@fboxb}
1644 \providecommand*\@flushf{\strut\@uboxa\@sboxa{}\@sboxb{}}
1645 \providecommand*\addtofooter[2][\@fsymbol]{%
1646 \@sboxb{\@uboxa{}#1#2}%
1647 \settowidth\@fboxwidth{\@uboxb}%
1648 \ifdimgreater{\@footerwidth}{\@fboxwidth}{%
1649 \@sboxa{\@uboxb}
1650 }{%
1651 \@flushf\\
1652 \@sboxa{#2}
1653 \@sboxb{#2}
1654 }
1655 }
1656 \ifdimequal{\footerwidth}{0pt}{}{\setlength\@footerwidth{\footerwidth}}
1657 \defpagestyle{footer}
1658 {{}{}{}}% head definition (empty)
1659 {% foot definition
1660 {}{}% definition for twoside layout
1661 {% definition for oneside layout
1662 \hspace*{\fill}%
1663 \parbox{\@footerwidth}{%
1664 \centering%
1665 \color{@addresscolor}\usefontofkomafont{addressfont}%
1666 \ifdefempty{\addressstreet}{}{%
1667 \addtofooter[]{\@addresssymbol\addressstreet}%
1668 \ifdefempty{\addresscity}{}{%
1669 \addtofooter[~--~]{\addresscity}}}%
1670 \ifdefempty{\mobile}{}{%
1671 \addtofooter{\@mobilesymbol\mobile}}%
1672 \ifdefempty{\phonenr}{}{%
1673 \addtofooter{\@phonesymbol\phonenr}}
1674 \ifdefempty{\faxnr}{}{%
1675 \addtofooter{\@faxsymbol\faxnr}}%
1676 \ifdefempty{\email}{}{%
1677 \addtofooter{\@emailsymbol\emaillink{\email}}}
1678 \ifdefempty{\homepage}{}{%
1679 \addtofooter{\@homepagesymbol%
1680 \IfSubStr{\homepage}{https}{%
1681 \httpslink{\homepage}}{%
1682 \httplink{\homepage}}}}%
1683 \ifdefempty{\twitter}{}{%
1684 \addtofooter{\@twittersymbol\twitter}}%
1685 \ifdefempty{\github}{}{%
1686 \addtofooter{\@githubsymbol\github}}%
1687 \ifdefempty{\facebook}{}{%
1688 \addtofooter{\@facebooksymbol\facebook}}%
1689 \ifdefempty{\linkedin}{}{%
1690 \addtofooter{\@linkedinsymbol\linkedin}}%
1691 \ifdefempty{\extrainfo}{}{%
1692 \addtofooter{\extrainfo}}\@flushf%
1693 }% Ende parbox
1694 \hspace*{\fill}%
1695 \makebox[0pt][r]{\pagemark/\totalpagemark}
1696 }% end definition onesided layout
1697 }% end footer definition
1698 % \end{macrocode}
1699 %
1700 %\subsubsection*{Head / title}
1701 % \begin{macrocode}
1702 \providecommand\@cvtitlecasual{%
1703 \newbox{\@picbox}
1704 \savebox{\@picbox}{%
1705 \ifundef{\@photoname}{}{% with picture:
1706 \ifthenelse{%
1707 \equal{\@photoframe}{frame} \OR
1708 \equal{\@photoframe}{mframe}
1709 }{% with frame:
1710 \fcolorbox{@framecolor}{@framebackcolor}{%
1711 \includegraphics[width=\@photowidth]{\@photoname}%
1712 }% end fcolorbox
1713 }{% without frame:
1714 \includegraphics[width=\@photowidth]{\@photoname}%
1715 }% end ifdefstring frame
1716 }% end ifundef photoname
1717 }% end savebox picbox
1718 \settowidth\@titlepicwidth{\usebox{\@picbox}}
1719 \setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
1720 \setheadlinetypetitle\par
1721 \usebox{\@picbox}%
1722 \hspace*{\@titlesepwidth}%
1723 \parbox[b]{\@titlenamewidth}{%
1724 \ifdefstring{\@headlinetype}{name}{\setheadlinetypename}{%
1725 \raggedleft{\firstnamestyle\firstname}%
1726 ~{\familynamestyle\familyname}
1727 }
1728 \\
1729 \raggedleft\color{@firstnamecolor}\rule{\@titlenamewidth}{.25ex}\par
1730 }% end parbox
1731 \vspace{\@aftertitlevspace}
1732 %% optional acadtitle
1733 \ifdefempty{\acadtitle}{}{%
1734 \ifdefstring{\@headlinetype}{name}{}{%
1735 \raggedleft\acadtitlestyle{\acadtitle}}}\\[2.5em]%
1736 %% optional quote
1737 \ifdefempty{\cvquote}{}{%
1738 {\centering
1739 \begin{minipage}{\@quotewidth}%
1740 \centering\quotestyle{\cvquote}
1741 \end{minipage}\\[\@afterquotevspace]%
1742 }
1743 }%
1744 }% end \@cvtitle-casual
1745 \AtBeginDocument{%
1746 \thispagestyle{footer}
1747 } % end \AtBeginDocument
1748 % \end{macrocode}
1749 %
1750 %\subsubsection*{Sections}
1751 % \begin{macrocode}
1752 \setcounter{secnumdepth}{1}
1753 \RedeclareSectionCommand
1754 [
1755 beforeskip=\@beforesecvspace,
1756 afterskip=\@aftersecvspace,
1757 font=\color{@seccolor}\sectionfont
1758 ]{section}
1759 \renewcommand*\thesection{\color{@secbarcolor}\rule{\@hintscolwidth}{1ex}\hspace{-1ex}\hspace{\@sepcolwidth}}
1760 \RedeclareSectionCommand
1761 [
1762 beforeskip=\@beforesubsecvspace,
1763 afterskip=\@aftersubsecvspace,
1764 indent=\dimexpr\@sepcolwidth+\@hintscolwidth,
1765 font=\color{@subseccolor}\subsectionfont
1766 ]{subsection}
1767 % \end{macrocode}
1768 %
1769 % \iffalse
1770 %</casual>
1771 % \fi
1772 %
1773 % \iffalse
1774 %<*oldstyle>
1775 % \fi
1776 %
1777 %\subsection{The \mysty{oldstyle} style}
1778 %\label{sec:style-oldstyle}
1779 %
1780 %\subsubsection*{Lengths}
1781 %\label{subsub:oldstyle-lengths}
1782 % \begin{macrocode}
1783 \KOMAoptions{DIV=15}
1784 \setlength{\hintscolwidth}{3cm}
1785 % \end{macrocode}
1786 %
1787 %\subsubsection*{Fonts}
1788 %\label{subsub:oldstyle-fonts}
1789 % \begin{macrocode}
1790 \addtokomafont{addressfont}{\small}
1791 \addtokomafont{hintfont}{\bfseries}
1792 % \end{macrocode}
1793 %
1794 %\subsubsection*{Colors}
1795 %\label{subsub:oldstyle-colors}
1796 % \begin{macrocode}
1797 \colorlet{addresscolor}{gray}
1798 % \end{macrocode}
1799 %
1800 %\subsubsection*{Symbols}
1801 %\label{subsub:oldstyle-symbols}
1802 % \begin{macrocode}
1803 \renewcommand*{\listitemsymbol}{\labelitemi~}
1804 \renewcommand*{\addresssymbol}{}
1805 \renewcommand*{\mobilesymbol}{\textbf{M}~}
1806 \renewcommand*{\phonesymbol}{\textbf{T}~}
1807 \renewcommand*{\faxsymbol}{\textbf{F}~}
1808 \renewcommand*{\emailsymbol}{\textbf{E}~}
1809 \renewcommand*{\homepagesymbol}{}
1810 % \end{macrocode}
1811 %
1812 %\subsubsection*{Infocolumn and title}
1813 %\label{subsub:oldstyle-info-title}
1814 % \begin{macrocode}
1815 \setlength{\infocolwidth}{3.5cm}
1816 \setlength{\sepinfocolwidth}{2em}
1817 \providecommand\@infocontent{%
1818 \ifdefempty{\addressstreet}{}{%
1819 \@titledetailsnewline%
1820 \@addresssymbol\addressstreet%
1821 \ifdefempty{\addresscity}{}{%
1822 \@titledetailsnewline\addresscity}}%
1823 \ifdefempty{\mobile}{}{%
1824 \@titledetailsnewline\@mobilesymbol~\mobile}%
1825 \ifdefempty{\phonenr}{}{%
1826 \@titledetailsnewline \@phonesymbol\phonenr}%
1827 \ifdefempty{\faxnr}{}{%
1828 \@titledetailsnewline\@faxsymbol\faxnr}%
1829 \ifdefempty{\email}{}{%
1830 \@titledetailsnewline\@emailsymbol\emaillink{\email}}%
1831 \ifdefempty{\homepage}{}{%
1832 \@titledetailsnewline\@homepagesymbol%
1833 \IfSubStr{\homepage}{https}{%
1834 \httpslink{\homepage}}{%
1835 \httplink{\homepage}}}%
1836 \ifdefempty{\twitter}{}{%
1837 \@titledetailsnewline\@twittersymbol~\twitter}%
1838 \ifdefempty{\github}{}{%
1839 \@titledetailsnewline\@githubsymbol~\github}%
1840 \ifdefempty{\facebook}{}{%
1841 \@titledetailsnewline\@facebooksymbol~\facebook}%
1842 \ifdefempty{\linkedin}{}{%
1843 \@titledetailsnewline\@linkedinsymbol~\linkedin}%
1844 \ifdefempty{\extrainfo}{}{%
1845 \@titledetailsnewline\extrainfo}%
1846 } % end \@infocontent
1847 \providecommand{\@makeinfo}{%
1848 \newbox{\@infobox}%
1849 \savebox{\@infobox}{%
1850 \parbox[b]{\@infocolwidth}{%
1851 % put the first line on the same baseline as the first sectiontitle:
1852 {\usefontofkomafont{section}
1853 \vspace*{1.6ex}
1854 }
1855 \raggedleft\addressstyle{%
1856 \@infocontent%
1857 }
1858 }% end parbox
1859 } % end savebox \@infobox%
1860 \newlength{\@infoheight}%
1861 \setlength{\@infoheight}{%
1862 \totalheightof{\usebox{\@infobox}}%
1863 }%
1864 \usebox{\@infobox}\vspace*{-\@infoheight}%
1865 \par\nointerlineskip%
1866 \vspace*{-\parskip}%
1867 \vspace*{-\@aftersecvspace}
1868 }% end \providecommand \@makeinfo
1869 \providecommand{\@cvtitleoldstyle}{%
1870 % optional picture box
1871 \newbox{\@picbox}
1872 \savebox{\@picbox}{%
1873 \ifundef{\@photoname}{}{% with picture:
1874 \ifthenelse{%
1875 \equal{\@photoframe}{frame} \OR
1876 \equal{\@photoframe}{mframe}
1877 }{% with frame:
1878 \fcolorbox{@framecolor}{@framebackcolor}{%
1879 \includegraphics[width=\@photowidth]{\@photoname}%
1880 }% end fcolorbox
1881 }{% without frame:
1882 \includegraphics[width=\@photowidth]{\@photoname}%
1883 }% end ifdefstring frame
1884 }% end ifundef photoname
1885 }% end savebox picbox
1886 \settowidth\@titlepicwidth{\usebox{\@picbox}}
1887 \setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
1888 \setheadlinetypetitle\par
1889 \begin{minipage}[b]{\@titlenamewidth}%
1890 \ifdefstring{\@headlinetype}{name}{\setheadlinetypename}{%
1891 \firstnamestyle{\firstname}\ %
1892 \familynamestyle{\familyname}%
1893 \ifdefempty{\acadtitle}{}{%
1894 \\[1.25em]\acadtitlestyle{\acadtitle}}%
1895 }
1896 \end{minipage}%
1897 % optional photo
1898 \usebox{\@picbox}%
1899 \\[\@aftertitlevspace]%
1900 % optional quote
1901 \ifdefempty{\cvquote}{}{%
1902 {\centering%
1903 \begin{minipage}{\@quotewidth}%
1904 \centering\quotestyle{\cvquote}%
1905 \end{minipage}\\[\@afterquotevspace]%
1906 }%
1907 }%
1908 % address info box
1909 \@makeinfo
1910 \par
1911 \begin{addmargin}[\komacvinfocolextrawidth]{0pt}
1912 } % end \@cvtitleoldstyle
1913 \AtEndDocument{%
1914 \end{addmargin}
1915 }
1916 % \end{macrocode}
1917 %
1918 %\subsubsection*{Sections}
1919 %\label{subsub:oldstyle-sections}
1920 % \begin{macrocode}
1921 \setcounter{secnumdepth}{0}
1922 \RedeclareSectionCommand
1923 [
1924 beforeskip=\@beforesecvspace,
1925 afterskip=\@aftersecvspace,
1926 font=\color{@seccolor}\sectionfont
1927 ]{section}
1928 \RedeclareSectionCommand
1929 [
1930 beforeskip=\@beforesubsecvspace,
1931 afterskip=\@aftersubsecvspace,
1932 font=\color{@subseccolor}\subsectionfont
1933 ]{subsection}
1934 % \end{macrocode}
1935 %
1936 %\subsubsection*{Elements}
1937 %\label{subsub:oldstyle-elements}
1938 % \begin{macrocode}
1939 \renewcommand*{\cvitem}[3][\@afterelementsvspace]{%
1940 \begin{tabular}{%
1941 @{}p{\@maincolwidth}%
1942 @{\hspace{\@sepcolwidth}}p{\@hintscolwidth}@{}%
1943 }%
1944 {#3} & \RaggedRight\hintstyle{#2}%
1945 \end{tabular}\\[#1]%
1946 }
1947 \renewcommand*{\cvdoubleitem}[5][\@afterelementsvspace]{%
1948 \cvitem[#1]{#4}{%
1949 \begin{minipage}[t]{\@dbitemmaincolwidth}#3\end{minipage}%
1950 \hspace*{\@sepcolwidth}%
1951 \begin{minipage}[t]{\@hintscolwidth}%
1952 \noindent\raggedleft\hintstyle{#2}
1953 \end{minipage}%
1954 \hspace*{\@sepcolwidth}%
1955 \begin{minipage}[t]{\@dbitemmaincolwidth}%
1956 \noindent #5
1957 \end{minipage}%
1958 }%
1959 }
1960 % \end{macrocode}
1961 % \iffalse
1962 %</oldstyle>
1963 % \fi
1964 %
1965 % \newpage
1966 % \PrintChanges
1967 % \newpage
1968 % \PrintIndex
1969 %
1970 % \Finale
1971 \endinput