% \iffalse meta-comment
%
% Copyright (C) 2015 by A. Hilbig <mail@andrehilbig.de>
% ---------------------------------------------------------------------------
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is A. Hilbig.
%
% This work consists of the files bewerbung.dtx and bewerbung.ins
% and the derived filebase bewerbung.sty.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{bewerbung.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{bewerbung}
%<*package>
    [<+date+> <+version+> <+description+>]
%</package>
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{bewerbung}[<+date+>]
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
  \DocInput{bewerbung.dtx}
  \PrintChanges
  \PrintIndex
\end{document}
%</driver>
% \fi
%
% \CheckSum{1922}
%
% \CharacterTable
%  {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
%   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
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \<
%   Equals        \=     Greater than  \>     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
%
% \changes{<+version+>}{<+date+>}{Converted to DTX file}
%
% \DoNotIndex{\newcommand,\newenvironment}
%
% \providecommand*{\url}{\texttt}
% \GetFileInfo{bewerbung.dtx}
% \title{The \textsf{bewerbung} package}
% \author{A. Hilbig \\ \url{mail@andrehilbig.de}}
% \date{\fileversion~from \filedate}
%
% \maketitle
%
% \section{Introduction}
%
% Put text here.
%
% \section{Usage}
%
% Put text here.
%
%
% \DescribeMacro{\addtofooter}
%
%
% \DescribeMacro{\section}
%
%
% \DescribeMacro{\subsection}
%
%
% \DescribeMacro{\section}
%
%
% \DescribeMacro{\subsection}
%
%
% \DescribeMacro{\listitemsymbol}
%
%
% \DescribeMacro{\addresssymbol}
%
%
% \DescribeMacro{\mobilesymbol}
%
%
% \DescribeMacro{\phonesymbol}
%
%
% \DescribeMacro{\faxsymbol}
%
%
% \DescribeMacro{\emailsymbol}
%
%
% \DescribeMacro{\homepagesymbol}
%
%
% \DescribeMacro{\section}
%
%
% \DescribeMacro{\subsection}
%
%
% \DescribeMacro{\cvitem}
%
%
% \DescribeMacro{\cvdoubleitem}
%
%
% \DescribeMacro{\mycolor}
%
%
% \DescribeMacro{\section}
%
%
% \DescribeMacro{\subsection}
%
%
% \DescribeMacro{\addresssymbol}
%
%
% \DescribeMacro{\mobilesymbol}
%
%
% \DescribeMacro{\phonesymbol}
%
%
% \DescribeMacro{\faxsymbol}
%
%
% \DescribeMacro{\emailsymbol}
%
%
% \DescribeMacro{\homepagesymbol}
%
%
% \DescribeMacro{\fsymbol}
%
%
% \DescribeMacro{\listitemsymbol}
%
%
% \DescribeMacro{\firstname}
%
%
% \DescribeMacro{\familyname}
%
%
% \DescribeMacro{\acadtitle}
%
%
% \DescribeMacro{\addressstreet}
%
%
% \DescribeMacro{\addresscity}
%
%
% \DescribeMacro{\address}
%
%
% \DescribeMacro{\mobile}
%
%
% \DescribeMacro{\phonenr}
%
%
% \DescribeMacro{\faxnr}
%
%
% \DescribeMacro{\email}
%
%
% \DescribeMacro{\homepage}
%
%
% \DescribeMacro{\extrainfo}
%
%
% \DescribeMacro{\cvquote}
%
%
% \DescribeMacro{\photo}
%
%
% \DescribeMacro{\maketitle}
%
%
% \DescribeMacro{\totalpagemark}
%
%
% \DescribeMacro{\cvitem}
%
%
% \DescribeMacro{\cvdoubleitem}
%
%
% \DescribeMacro{\cvlistitem}
%
%
% \DescribeMacro{\cvlistdoubleitem}
%
%
% \DescribeMacro{\cventry}
%
%
% \DescribeMacro{\cvlanguage}
%
%
% \DescribeMacro{\cvitemwithcomment}
%
%
% \DescribeMacro{\origsection}
%
%
% \DescribeMacro{\origsubsection}
%
%
% \DescribeMacro{\citebordercolor}
%
%
% \DescribeMacro{\filebordercolor}
%
%
% \DescribeMacro{\linkbordercolor}
%
%
% \DescribeMacro{\menubordercolor}
%
%
% \DescribeMacro{\runbordercolor}
%
%
% \DescribeMacro{\urlbordercolor}
%
%
% \DescribeMacro{\allbordercolors}
%
%
% \DescribeMacro{\pdfauthor}
%
%
% \DescribeMacro{\pdfsubject}
%
%
% \DescribeMacro{\pdftitle}
%
%
% \DescribeMacro{\pdfkeywords}
%
%
% \DescribeMacro{\pdfsubject}
%
%
% \DescribeMacro{\pdftitle}
%
%
% \DescribeMacro{\pdfkeywords}
%
%
% \DescribeMacro{\name}
%
%
% \DescribeMacro{\Name}
%
%
% \DescribeMacro{\vorname}
%
%
% \DescribeMacro{\Vorname}
%
%
% \DescribeMacro{\fullname}
%
%
% \DescribeMacro{\street}
%
%
% \DescribeMacro{\Street}
%
%
% \DescribeMacro{\plz}
%
%
% \DescribeMacro{\Plz}
%
%
% \DescribeMacro{\stadt}
%
%
% \DescribeMacro{\Stadt}
%
%
% \DescribeMacro{\anschrift}
%
%
% \DescribeMacro{\meinBeruf}
%
%
% \DescribeMacro{\meinberuf}
%
%
% \DescribeMacro{\MeinBeruf}
%
%
% \DescribeMacro{\gebDatum}
%
%
% \DescribeMacro{\GebDatum}
%
%
% \DescribeMacro{\sta}
%
%
% \DescribeMacro{\Sta}
%
%
% \DescribeMacro{\email}
%
%
% \DescribeMacro{\EMail}
%
%
% \DescribeMacro{\tel}
%
%
% \DescribeMacro{\Tel}
%
%
% \DescribeMacro{\mobile}
%
%
% \DescribeMacro{\Mobile}
%
%
% \DescribeMacro{\todayOrt}
%
%
% \DescribeMacro{\TodayOrt}
%
%
% \DescribeMacro{\todayTime}
%
%
% \DescribeMacro{\TodayTime}
%
%
% \DescribeMacro{\lebenslaufTitel}
%
%
% \DescribeMacro{\LebenslaufTitel}
%
%
% \DescribeMacro{\firma}
%
%
% \DescribeMacro{\firmaAnrede}
%
%
% \DescribeMacro{\firmaName}
%
%
% \DescribeMacro{\firmaStreet}
%
%
% \DescribeMacro{\firmaPlz}
%
%
% \DescribeMacro{\firmaStadt}
%
%
% \DescribeMacro{\beruf}
%
%
% \DescribeMacro{\setzekomma}
%
%
% \DescribeMacro{\bewerbungKW}
%
%
% \DescribeMacro{\BewerbungKW}
%
%
% \DescribeMacro{\bewerbungDatum}
%
%
% \DescribeMacro{\BewerbungDatum}
%
%
% \DescribeMacro{\bewerbungFirma}
%
%
% \DescribeMacro{\BewerbungFirma}
%
%
% \DescribeMacro{\bewerbungFirmaAnrede}
%
%
% \DescribeMacro{\BewerbungFirmaAnrede}
%
%
% \DescribeMacro{\bewerbungFirmaName}
%
%
% \DescribeMacro{\BewerbungFirmaName}
%
%
% \DescribeMacro{\bewerbungFirmaStr}
%
%
% \DescribeMacro{\BewerbungFirmaStr}
%
%
% \DescribeMacro{\bewerbungFirmaPlz}
%
%
% \DescribeMacro{\BewerbungFirmaPlz}
%
%
% \DescribeMacro{\bewerbungFirmaOrt}
%
%
% \DescribeMacro{\BewerbungFirmaOrt}
%
%
% \DescribeMacro{\bewerbungStelle}
%
%
% \DescribeMacro{\BewerbungStelle}
%
%
% \DescribeMacro{\bewerbungRueckmeldung}
%
%
% \DescribeMacro{\BewerbungRueckmeldung}
%
%
% \DescribeMacro{\bewerbungSonstiges}
%
%
% \DescribeMacro{\BewerbungSonstiges}
%
%
% \DescribeMacro{\id}
%
%
% \DescribeMacro{\ID}
%
%
% \DescribeMacro{\getBewerbung}
%
%
% \DescribeMacro{\runKomaVar}
%
%
% \DescribeMacro{\makePerson}
%
%
% \DescribeMacro{\argetabelle}
%

%
% \StopEventually{}
%
% \section{Implementation}
%
% \iffalse
%<*package>
% \fi
%
% -*- coding: utf-8; -*-
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
% (C)opyright A. Hilbig, mail@andrehilbig.de                                                       |
%             http://www.andrehilbig.de/Publications                                               |
%                                                                                                  | 
% this file: ahilbig-cv-casual.sty                                                                 |
% this file is based on komacv-casual.sty from Salome Södergran                                    |
%  every change is marked by                                                                       |
%   % ahilbig begin                                                                                |
%      CHANGE                                                                                      |
%   % ahilbig end                                                                                  |
%                                                                                                  |
%                                                                                                  |
% This work may be distributed and/or modified under the                                           |
% conditions of the LaTeX Project Public License, either version 1.3                               |
% of this license or (at your option) any later version.                                           |
% The latest version of this license is in                                                         |
%   http://www.latex-project.org/lppl.txt                                                          |
% and version 1.3 or later is part of all distributions of LaTeX                                   |
% version 2005/12/01 or later.                                                                     |
%                                                                                                  |
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{bewerbung-cv-casual}
    [2015/07/08 v0.1 theme für bewerbungen basiert auf komacv-casual]
\addtokomafont{firstnamefont}{\sffamily\fontsize{38}{40}}
\addtokomafont{acadtitlefont}{\sffamily}
\addtokomafont{addressfont}{\sffamily\small}
\addtokomafont{hintfont}{\sffamily}
\newsavebox\@fboxa
\newsavebox\@fboxb
%    \end{macrocode}
%
% \begin{macro}{\@sboxa}
%    \begin{macrocode}
\newcommand*\@sboxa[1]{\sbox\@fboxa{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@sboxb}
%    \begin{macrocode}
\newcommand*\@sboxb[1]{\sbox\@fboxb{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@uboxa}
%    \begin{macrocode}
\newcommand*\@uboxa{\usebox\@fboxa}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@uboxb}
%    \begin{macrocode}
\newcommand*\@uboxb{\usebox\@fboxb}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@flushf}
%    \begin{macrocode}
\newcommand*\@flushf{\strut\@uboxa\@sboxa{}\@sboxb{}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\addtofooter}
%    \begin{macrocode}
\newcommand*\addtofooter[2][\@fsymbol]{%
  \@sboxb{\@uboxa{}#1#2}%
  \settowidth\@fboxwidth{\@uboxb}%
  \ifdimgreater{\@footerwidth}{\@fboxwidth}{%
    \@sboxa{\@uboxb}
  }{%
    \@flushf\\
    \@sboxa{#2}
    \@sboxb{#2}
  }
}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
  \ifdimequal{\footerwidth}{0pt}{}{\setlength\@footerwidth{\footerwidth}}
  \defpagestyle{footer}
  {{}{}{}}% head definition (empty)
  {% foot definition
    {}{}% definition for twoside layout
    {% definition for oneside layout
      \hspace*{\fill}%
      \parbox{\@footerwidth}{%
        \centering%
        \color{@addresscolor}\usekomafont{addressfont}%
        \ifdefempty{\addressstreet}{}{%
          \addtofooter[]{\@addresssymbol\addressstreet}%
          \ifdefempty{\addresscity}{}{%
            \addtofooter[~--~]{\addresscity}}}%
        \ifdefempty{\mobile}{}{%
          \addtofooter{\@mobilesymbol\mobile}}%
        \ifdefempty{\phonenr}{}{%
          \addtofooter{\@phonesymbol\phonenr}}
        \ifdefempty{\faxnr}{}{%
          \addtofooter{\@faxsymbol\faxnr}}%
        \ifdefempty{\email}{}{%
          \addtofooter{\@emailsymbol\emaillink{\email}}}
        \ifdefempty{\homepage}{}{%
          \addtofooter{\@homepagesymbol\httplink{\homepage}}}%
        \ifdefempty{\extrainfo}{}{%
          \addtofooter{\extrainfo}}\@flushf%
      }% Ende parbox
      \hspace*{\fill}%
      \makebox[0pt][r]{\pagemark/\totalpagemark}
    }% end definition onesided layout
  }% end footer definition
%    \end{macrocode}
%
% \begin{macro}{\@cvtitlecasual}
%    \begin{macrocode}
\providecommand\@cvtitlecasual{%
\newbox{\@picbox}
\savebox{\@picbox}{%
  \ifundef{\@photoname}{}{% with picture:
    \ifthenelse{%
      \equal{\@photoframe}{frame} \OR
      \equal{\@photoframe}{mframe}
    }{% with frame:
      \fcolorbox{@framecolor}{@framebackcolor}{%
        \includegraphics[width=\@photowidth]{\@photoname}%
      }% end fcolorbox
    }{% without frame:
      \includegraphics[width=\@photowidth]{\@photoname}%
    }% end ifdefstring frame
  }% end ifundef photoname
}% end savebox picbox
\settowidth\@titlepicwidth{\usebox{\@picbox}}
\setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
  \usebox{\@picbox}%
  \hspace*{\@titlesepwidth}%
  \parbox[b]{\@titlenamewidth}{%
    \raggedleft{\firstnamestyle\firstname}%
    ~{\familynamestyle\familyname}\\
    \raggedleft\color{@firstnamecolor}\rule{\@titlenamewidth}{.25ex}\par
  }% end parbox
  \vspace{\@aftertitlevspace}
  %% optional acadtitle
  \ifdefempty{\acadtitle}{}{%
    \raggedleft\acadtitlestyle{\acadtitle}}\\[2.5em]%
  %% optional quote
  \ifdefempty{\cvquote}{}{%
    {\centering
      \begin{minipage}{\@quotewidth}%
        \centering\quotestyle{\cvquote}
      \end{minipage}\\[\@afterquotevspace]%
    }
  }%
}% end \@cvtitle-casual
\AtBeginDocument{%
  \thispagestyle{footer}
} % end \AtBeginDocument
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\section}
%    \begin{macrocode}
\renewcommand{\section}[1]{\@cvbarsection{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\subsection}
%    \begin{macrocode}
\renewcommand{\subsection}[1]{\@cvbarsubsection{#1}}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\endinput
%    \end{macrocode}
%%
%% End of file `bewerbung-cv-casual.sty'.
% -*- coding: utf-8; -*-
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
% (C)opyright A. Hilbig, mail@andrehilbig.de                                                       |
%             http://www.andrehilbig.de/Publications                                               |
%                                                                                                  | 
% this file: ahilbig-cv-classic.sty                                                                |
% this file is based on komacv-classic.sty from Salome Södergran                                   |
%  every change is marked by                                                                       |
%   % ahilbig begin                                                                                |
%      CHANGE                                                                                      |
%   % ahilbig end                                                                                  |
%                                                                                                  |
%                                                                                                  |
% This work may be distributed and/or modified under the                                           |
% conditions of the LaTeX Project Public License, either version 1.3                               |
% of this license or (at your option) any later version.                                           |
% The latest version of this license is in                                                         |
%   http://www.latex-project.org/lppl.txt                                                          |
% and version 1.3 or later is part of all distributions of LaTeX                                   |
% version 2005/12/01 or later.                                                                     |
%                                                                                                  |
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{bewerbung-cv-classic}
    [2015/07/08 v0.1 theme für bewerbungen basiert auf komacv-classic]
\addtokomafont{firstnamefont}{\sffamily}
\addtokomafont{acadtitlefont}{\sffamily}
\addtokomafont{addressfont}{\sffamily}
\addtokomafont{hintfont}{\sffamily}
\AtEndPreamble{%
 %\AtBeginDocument{
%    \end{macrocode}
% mframepicshift
%    \begin{macrocode}
  \ifdimequal{\mframepicshift}{0pt}{%
    \setlength\@mframepicshift{.5\@photowidth+\@fboxextra}
  }{%
    \setlength\@mframepicshift{\mframepicshift}
  }
} % end \AtBeginDocument
%    \end{macrocode}
%
% \begin{macro}{\@cvtitleclassic}
%    \begin{macrocode}
\providecommand\@cvtitleclassic{%
 %% set \cs{@titlenamemaxwidth| to the full name length, capped by \cs{@titlenamemaxwidth|
\setlength{\@titlenamemaxwidth}{.525\textwidth}
\settowidth{\@titlenamefullwidth}{\firstnamestyle{\firstname~}\familynamestyle{\familyname}}
 \ifdimless{\@titlenamemaxwidth}{\@titlenamefullwidth}{%
   \setlength{\@titlenamewidth}{\@titlenamemaxwidth}
 }{%
   \setlength{\@titlenamewidth}{\@titlenamefullwidth}
 }
%    \end{macrocode}
% set titlenamedetailswidth
%    \begin{macrocode}
\setlength{\@titledetailswidth}{\textwidth-\@titlenamewidth-\@titlesepwidth}%
\ifundef{\@photoname}{}{% else
  \ifdefstring{\@photoframe}{frame}{%
    \setlength{\@titledetailswidth}{\@titledetailswidth-\@photowidth-2\@fboxextra}
  }{% else
  \ifdefstring{\@photoframe}{mframe}{%
    \setlength{\@titledetailswidth}{\@titledetailswidth-\@mframepicshift}%
  }{}%
}%
}%
%    \end{macrocode}
% name and title
%    \begin{macrocode}
  \begin{minipage}[b]{\@titlenamewidth}%
%    \end{macrocode}
% ahilbig begin
%    \begin{macrocode}
    \firstnamestyle{\firstname}\\ %
    \familynamestyle{\familyname}%
    \ifdefempty{\acadtitle}{}{%
      \\[1.25em]\acadtitlestyle{\acadtitle}}%
     \\[1.25em]\titlestyle{\lebenslaufTitel}%
  \end{minipage}%
%    \end{macrocode}
% optional data
%    \begin{macrocode}
  \begin{minipage}[b]{\@titledetailswidth}%
    \raggedleft\addressstyle{%
    \ifdefempty{\addressstreet}{}{%
      \@titledetailsnewline%
      \@addresssymbol\addressstreet%
      \ifdefempty{\addresscity}{}{%
        \@titledetailsnewline\addresscity}}%
    \ifdefempty{\mobile}{}{%
      \@titledetailsnewline\@mobilesymbol~\mobile}%
    \ifdefempty{\phonenr}{}{%
      \@titledetailsnewline\@phonesymbol~\phonenr}%
    \ifdefempty{\faxnr}{}{%
      \@titledetailsnewline\@faxsymbol~\faxnr}%
    \ifdefempty{\email}{}{%
      \@titledetailsnewline\@emailsymbol\emaillink{\email}}%
    \ifdefempty{\homepage}{}{%
      \@titledetailsnewline\@homepagesymbol\httplink{\homepage}}%
    \ifdefempty{\extrainfo}{}{%
      \@titledetailsnewline\extrainfo}%
  }%
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
  \end{minipage}%
%    \end{macrocode}
% optional photo
%    \begin{macrocode}
  \ifundef{\@photoname}{}{% with picture:
    \hspace*{\@titlesepwidth}%
    \ifthenelse{%
      \equal{\@photoframe}{frame} \OR
      \equal{\@photoframe}{mframe}
    }{% with frame:
      \begin{minipage}[b]{\@photowidth}%
        \fcolorbox{@framecolor}{@framebackcolor}{%
          \includegraphics[width=\@photowidth]{\@photoname}}%
      \end{minipage}}{% without frame:
      \begin{minipage}[b]{\@photowidth}
        \includegraphics[width=\@photowidth]{\@photoname}
      \end{minipage}}}
\\[\@aftertitlevspace]
%    \end{macrocode}
% optional quote
%    \begin{macrocode}
  \ifundef{\cvquote}{}{%
    \centering
      \begin{minipage}{\@quotewidth}%
        \centering\quotestyle{\cvquote}%
      \end{minipage}\\[\@afterquotevspace]%
  }%
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\section}
%    \begin{macrocode}
\renewcommand*{\section}[1]{\@cvbarsection{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\subsection}
%    \begin{macrocode}
\renewcommand{\subsection}[1]{\@cvbarsubsection{#1}}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\endinput
%    \end{macrocode}
%%
%% End of file `bewerbung-cv-classic.sty'.
% -*- coding: utf-8; -*-
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
% (C)opyright A. Hilbig, mail@andrehilbig.de                                                       |
%             http://www.andrehilbig.de/Publications                                               |
%                                                                                                  | 
% this file: bewerbung-cv-oldstyle.sty                                                             |
% this file is based on komacv-oldstyle.sty from Salome Södergran                                  |
%  every change is marked by                                                                       |
%   % ahilbig begin                                                                                |
%      CHANGE                                                                                      |
%   % ahilbig end                                                                                  |
%                                                                                                  |
%                                                                                                  |
% This work may be distributed and/or modified under the                                           |
% conditions of the LaTeX Project Public License, either version 1.3                               |
% of this license or (at your option) any later version.                                           |
% The latest version of this license is in                                                         |
%   http://www.latex-project.org/lppl.txt                                                          |
% and version 1.3 or later is part of all distributions of LaTeX                                   |
% version 2005/12/01 or later.                                                                     |
%                                                                                                  |
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{bewerbung-cv-oldstyle}
    [2015/07/08 v0.1 theme für bewerbungen basiert auf komacv-oldstyle]
\KOMAoptions{DIV=15}
\setlength{\hintscolwidth}{3cm}
\addtokomafont{addressfont}{\small}
\addtokomafont{hintfont}{\bfseries}
\setkomafont{section}{\Large\bfseries\upshape}
\setkomafont{subsection}{\large\bfseries\itshape}
\colorlet{addresscolor}{gray}
%    \end{macrocode}
%
% \begin{macro}{\listitemsymbol}
%    \begin{macrocode}
\renewcommand*{\listitemsymbol}{\labelitemi~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\addresssymbol}
%    \begin{macrocode}
\renewcommand*{\addresssymbol}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\mobilesymbol}
%    \begin{macrocode}
\renewcommand*{\mobilesymbol}{\textbf{M}~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\phonesymbol}
%    \begin{macrocode}
\renewcommand*{\phonesymbol}{\textbf{T}~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\faxsymbol}
%    \begin{macrocode}
\renewcommand*{\faxsymbol}{\textbf{F}~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\emailsymbol}
%    \begin{macrocode}
\renewcommand*{\emailsymbol}{\textbf{E}~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\homepagesymbol}
%    \begin{macrocode}
\renewcommand*{\homepagesymbol}{}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\setlength{\infocolwidth}{3.5cm}
\setlength{\sepinfocolwidth}{2em}
%    \end{macrocode}
%
% \begin{macro}{\@infocontent}
%    \begin{macrocode}
\providecommand\@infocontent{%
    \ifdefempty{\addressstreet}{}{%
      \@titledetailsnewline%
      \@addresssymbol\addressstreet%
      \ifdefempty{\addresscity}{}{%
        \@titledetailsnewline\addresscity}}%
    \ifdefempty{\mobile}{}{%
      \@titledetailsnewline\@mobilesymbol~\mobile}%
    \ifdefempty{\phonenr}{}{%
      \@titledetailsnewline \@phonesymbol\phonenr}%
    \ifdefempty{\faxnr}{}{%
      \@titledetailsnewline\@faxsymbol\faxnr}%
    \ifdefempty{\email}{}{%
      \@titledetailsnewline\@emailsymbol\emaillink{\email}}%
    \ifdefempty{\homepage}{}{%
      \@titledetailsnewline\@homepagesymbol\httplink{\homepage}}%
    \ifdefempty{\extrainfo}{}{%
      \@titledetailsnewline\extrainfo}%
} % end \@infocontent
 \providecommand{\@makeinfo}{%
   \newbox{\@infobox}%
   \savebox{\@infobox}{%
     \parbox[b]{\@infocolwidth}{%
%    \end{macrocode}
% put the first line on the same baseline as the first sectiontitle:
%    \begin{macrocode}
       {\usekomafont{section}
         \vspace*{1.6ex}
       }
       \raggedleft\addressstyle{%
         \@infocontent%
       }
     }% end parbox
   } % end savebox \@infobox%
   \newlength{\@infoheight}%
   \setlength{\@infoheight}{%
     \totalheightof{\usebox{\@infobox}}%
   }%
   \usebox{\@infobox}\vspace*{-\@infoheight}%
   \par\nointerlineskip%
   \vspace*{-\parskip}%
   \vspace*{-\@aftersecvspace}
 }% end \providecommand \@makeinfo
  \providecommand{\@cvtitleoldstyle}{%
%    \end{macrocode}
% optional picture box
%    \begin{macrocode}
    \newbox{\@picbox}
    \savebox{\@picbox}{%
      \ifundef{\@photoname}{}{% with picture:
        \ifthenelse{%
          \equal{\@photoframe}{frame} \OR
          \equal{\@photoframe}{mframe}
        }{% with frame:
          \fcolorbox{@framecolor}{@framebackcolor}{%
            \includegraphics[width=\@photowidth]{\@photoname}%
          }% end fcolorbox
        }{% without frame:
          \includegraphics[width=\@photowidth]{\@photoname}%
        }% end ifdefstring frame
      }% end ifundef photoname
    }% end savebox picbox
    \settowidth\@titlepicwidth{\usebox{\@picbox}}
    \setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
    \begin{minipage}[b]{\@titlenamewidth}%
      \firstnamestyle{\firstname}\ %
      \familynamestyle{\familyname}%
      \ifdefempty{\acadtitle}{}{%
        \\[1.25em]\acadtitlestyle{\acadtitle}}%
    \end{minipage}%
%    \end{macrocode}
% optional photo
%    \begin{macrocode}
      \usebox{\@picbox}%
      \\[\@aftertitlevspace]%
%    \end{macrocode}
% optional quote
%    \begin{macrocode}
    \ifdefempty{\cvquote}{}{%
      {\centering%
        \begin{minipage}{\@quotewidth}%
          \centering\quotestyle{\cvquote}%
        \end{minipage}\\[\@afterquotevspace]%
      }%
    }%
%    \end{macrocode}
% address info box
%    \begin{macrocode}
     \@makeinfo
\par
\begin{addmargin}[\komacvinfocolextrawidth]{0pt}
  } % end \@cvtitleoldstyle
\AtEndDocument{%
\end{addmargin}
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\section}
%    \begin{macrocode}
\renewcommand{\section}[1]{\@cvsimplesection{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\subsection}
%    \begin{macrocode}
\renewcommand{\subsection}[1]{\@cvsimplesubsection{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\cvitem}
%    \begin{macrocode}
\renewcommand*{\cvitem}[3][\@afterelementsvspace]{%
  \begin{tabular}{%
      @{}p{\@maincolwidth}%
      @{\hspace{\@sepcolwidth}}p{\@hintscolwidth}@{}%
    }%
    {#3} & \raggedright\hintstyle{#2}%
  \end{tabular}\\[#1]%
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\cvdoubleitem}
%    \begin{macrocode}
\renewcommand*{\cvdoubleitem}[5][\@afterelementsvspace]{%
 \cvitem[#1]{#4}{%
   \begin{minipage}[t]{\@dbitemmaincolwidth}#3\end{minipage}%
   \hspace*{\@sepcolwidth}%
   \begin{minipage}[t]{\@hintscolwidth}%
     \noindent\raggedleft\hintstyle{#2}
   \end{minipage}%
   \hspace*{\@sepcolwidth}%
   \begin{minipage}[t]{\@dbitemmaincolwidth}%
     \noindent #5
   \end{minipage}%
 }%
}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\endinput
%    \end{macrocode}
%%
%% End of file `bewerbung-cv-oldstyle.sty'.
% -*- coding: utf-8; -*-
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
% (C)opyright A. Hilbig, mail@andrehilbig.de                                                       |
%             http://www.andrehilbig.de/Publications                                               |
%                                                                                                  | 
% this file: bewerbung-cv.sty                                                                      |
% this file is based on komacv.cls from Salome Södergran                                           |
%  every change is marked by                                                                       |
%   % ahilbig begin                                                                                |
%      CHANGE                                                                                      |
%   % ahilbig end                                                                                  |
%                                                                                                  |
%                                                                                                  |
% This work may be distributed and/or modified under the                                           |
% conditions of the LaTeX Project Public License, either version 1.3                               |
% of this license or (at your option) any later version.                                           |
% The latest version of this license is in                                                         |
%   http://www.latex-project.org/lppl.txt                                                          |
% and version 1.3 or later is part of all distributions of LaTeX                                   |
% version 2005/12/01 or later.                                                                     |
%                                                                                                  |
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
%    \begin{macrocode}
\ProvidesPackage{bewerbung-cv}
    [2015/07/08 v0.1 Importierung der Klasse koma-cv für bewerbungen]
%    \end{macrocode}
%
% \begin{macro}{\mycolor}
%    \begin{macrocode}
\providecommand*\mycolor{blue}
%    \end{macrocode}
% \end{macro}
%
% ahilbig begin
%\RequirePackage{ifthen,kvoptions,calc}
%\SetupKeyvalOptions{%
%family=komacv,%
%prefix=komacv@,%
%setkeys=\kvsetkeys%
%}
%\DeclareStringOption[mycolor]{color}[mycolor]
%\DeclareStringOption[x11names]{xcolor}[x11names]
%\DeclareStringOption[classic]{style}[classic]
%\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
%\ProcessKeyvalOptions{komacv} % evaluate keyval options
%\ProcessOptions\relax % execute given options
% ahilbig end
%    \begin{macrocode}
\RequirePackage[\ahbewerbung@lebenslaufXcolor]{xcolor}
\RequirePackage{%
  etoolbox,%
  ifpdf,%
  ifluatex,%
  ifxetex,%
  scrpage2,%
  marvosym,%
  array,%
  graphicx,%
  microtype,%
  enumitem,
  hyperref%
}
\definecolor{myblue}{rgb}{0.2,0.3,0.65}
\colorlet{mycolor}{myblue}
\AtEndPreamble{%
 \renewcommand*\mycolor{\ahbewerbung@lebenslaufColor}
  \colorlet{colortheme}{\mycolor}% specified in documentclass option
  \@ifundefinedcolor{firstnamecolor}{%
    \colorlet{@firstnamecolor}{black}}{%
    \colorlet{@firstnamecolor}{firstnamecolor}}
  \@ifundefinedcolor{familynamecolor}{%
    \colorlet{@familynamecolor}{@firstnamecolor}}{%
    \colorlet{@familynamecolor}{familynamecolor}}
  \@ifundefinedcolor{acadtitlecolor}{%
    \colorlet{@acadtitlecolor}{@firstnamecolor}}{%
    \colorlet{@acadtitlecolor}{acadtitlecolor}}
%    \end{macrocode}
% ahilbig begin
%  additional color for title
%    \begin{macrocode}
  \@ifundefinedcolor{titlecolor}{%
    \colorlet{@titlecolor}{@firstnamecolor}}{%
    \colorlet{@titlecolor}{titlecolor}}
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
  \@ifundefinedcolor{addresscolor}{%
    \colorlet{@addresscolor}{@firstnamecolor}}{%
    \colorlet{@addresscolor}{addresscolor}}
%    \end{macrocode}
% ahilbig begin
%  additional handling of coloring of urls
%    \begin{macrocode}
  \@ifundefinedcolor{urllinkcolor}{%
    \colorlet{@urllinkcolor}{@addresscolor}}{%
    \colorlet{@urllinkcolor}{urllinkcolor}}
	\hypersetup{urlcolor=@urllinkcolor}
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
  \@ifundefinedcolor{quotecolor}{%
    \colorlet{@quotecolor}{@firstnamecolor}}{%
    \colorlet{@quotecolor}{quotecolor}}
  \@ifundefinedcolor{secbarcolor}{%
    \colorlet{@secbarcolor}{colortheme}}{%
    \colorlet{@secbarcolor}{secbarcolor}}
  \@ifundefinedcolor{seccolor}{%
    \colorlet{@seccolor}{colortheme}}{%
    \colorlet{@seccolor}{seccolor}}
  \@ifundefinedcolor{subseccolor}{%
    \colorlet{@subseccolor}{colortheme}}{%
    \colorlet{@subseccolor}{subseccolor}}
  \@ifundefinedcolor{hintcolor}{%
    \colorlet{@hintcolor}{black}}{%
    \colorlet{@hintcolor}{hintcolor}}
  \@ifundefinedcolor{framecolor}{%
    \colorlet{@framecolor}{colortheme}}{%
    \colorlet{@framecolor}{framecolor}}
  \@ifundefinedcolor{framebackcolor}{%
    \colorlet{@framebackcolor}{white}}{%
    \colorlet{@framebackcolor}{framebackcolor}}
} % end AtEndPreamble
\ifboolexpr{bool{xetex} or bool{luatex}}{%
  \RequirePackage{fontspec}%
}{%
%    \end{macrocode}
% ahilbig begin
% \RequirePackage[utf8]{inputenc}
% \RequirePackage[T1]{fontenc}%
% ahilbig end
%    \begin{macrocode}
}
%    \end{macrocode}
% ahilbig begin
%    \begin{macrocode}
\newkomafont{firstnamefont}{%\fontsize{34}{36}
	\Huge\mdseries\upshape}
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
\newkomafont{familynamefont}{\usekomafont{firstnamefont}}
%    \end{macrocode}
% ahilbig begin
%\addtokomafont{familynamefont}{}
%\setkomafont{\namefont}{\Huge\sffamily\mdseries\upshape}%
%    \begin{macrocode}
\newkomafont{titlefont}{\Large\sffamily\mdseries\itshape}
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
\newkomafont{acadtitlefont}{\LARGE\mdseries\itshape}
\newkomafont{addressfont}{\normalsize\mdseries\itshape}
\newkomafont{quotefont}{\large\itshape}
\newkomafont{hintfont}{}
\newkomafont{linkfont}{}
\newkomafont{httplinkfont}{}
\newkomafont{emaillinkfont}{}
\newkomafont{commentmainfont}{\bfseries} % in \cvitemwithcomment
\newkomafont{commentfont}{\footnotesize\itshape} % in \cvitemwithcomment
%    \end{macrocode}
% ahilbig begin:
%    \begin{macrocode}
\newkomafont{section}{\LARGE\mdseries\upshape}
\newkomafont{subsection}{\Large\mdseries\upshape}
%    \end{macrocode}
%
% \begin{macro}{\section}
%    \begin{macrocode}
\newcommand{\section}[1]{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\subsection}
%    \begin{macrocode}
\newcommand{\subsection}[1]{}
%    \end{macrocode}
% \end{macro}
%
% ahilbig end
%    \begin{macrocode}
\setlength\parindent{0pt}
\setlength\columnsep{10\p@}
\setlength\columnseprule{0\p@}
\newlength\@komacvtextwidth
\newlength\@hintscolwidth
\newlength\hintscolwidth
\setlength\hintscolwidth{0pt}
\newlength\@sepcolwidth
\newlength\sepcolwidth
\setlength\sepcolwidth{0pt}
\newlength\@maincolwidth
\newlength\maincolwidth
\setlength\maincolwidth{0pt}
\newlength\@quotewidth
\newlength\quotewidth
\setlength\quotewidth{0pt}
\newlength\@dbitemmaincolwidth
\newlength\dbitemmaincolwidth
\setlength\dbitemmaincolwidth{0pt}
\newlength\@listitemsymbolwidth
\newlength\listitemsymbolwidth
\setlength\listitemsymbolwidth{0pt}
\newlength\@listitemmaincolwidth
\newlength\listitemmaincolwidth
\setlength\listitemmaincolwidth{0pt}
\newlength\@listdbitemmaincolwidth
\newlength\listdbitemmaincolwidth
\setlength\listdbitemmaincolwidth{0pt}
\newlength\@titlepicwidth
\newlength\@titlesepwidth
\setlength\@titlesepwidth{0pt}
\newlength\titlesepwidth
\setlength\titlesepwidth{0pt}
\newlength\@mframepicshift
\newlength\mframepicshift
\setlength\mframepicshift{0pt}
\newlength\@commentmainlength
\newlength\@commentlength
\newlength\@titlenamewidth
\newlength\@titlenamemaxwidth
\newlength\@titlenamefullwidth
\newlength\@titledetailswidth
\newlength\@infocolwidth
\newlength\infocolwidth
\setlength\infocolwidth{0pt}
\newlength\@sepinfocolwidth
\newlength\sepinfocolwidth
\setlength\sepinfocolwidth{0pt}
\newlength\komacvinfocolextrawidth % witout @ for use inside document (addmargin)
\newlength\@footerwidth
\setlength\@footerwidth{.6\textwidth}
\newlength\@fboxwidth
\newlength\footerwidth
\setlength\footerwidth{0pt}
\newlength\@aftertitlevspace
\newlength\aftertitlevspace
\setlength\aftertitlevspace{0pt}
\newlength\@afterquotevspace
\newlength\afterquotevspace
\setlength\afterquotevspace{0pt}
\newlength\@afterelementsvspace
\newlength\afterelementsvspace
\newlength\@beforesecvspace
\newlength\beforesecvspace
\setlength\beforesecvspace{0pt}
\newlength\@aftersecvspace
\newlength\aftersecvspace
\setlength\aftersecvspace{0pt}
\newlength\@beforesubsecvspace
\newlength\beforesubsecvspace
\setlength\beforesubsecvspace{0pt}
\newlength\@aftersubsecvspace
\newlength\aftersubsecvspace
\setlength\aftersubsecvspace{0pt}
\AtEndPreamble{%
%    \end{macrocode}
% infocol (oldstyle)
%    \begin{macrocode}
  \setlength{\@infocolwidth}{\infocolwidth}
  \setlength{\@sepinfocolwidth}{\sepinfocolwidth}
  \setlength\komacvinfocolextrawidth{\@infocolwidth+\@sepinfocolwidth}
  \setlength\@komacvtextwidth{\textwidth-\komacvinfocolextrawidth}
%    \end{macrocode}
% fboxextra (picture frame)
%    \begin{macrocode}
  \newlength\@fboxextra
  \setlength\@fboxextra{\fboxsep+\fboxrule}
%    \end{macrocode}
% hintscolumn
%    \begin{macrocode}
  \ifdimequal{\hintscolwidth}{0pt}{%
    \setlength\@hintscolwidth{.2\@komacvtextwidth}
  }{%
    \setlength{\@hintscolwidth}{\hintscolwidth}%
  }
%    \end{macrocode}
% separatorcolumn
%    \begin{macrocode}
  \ifdimequal{\sepcolwidth}{0pt}{%
    \setlength\@sepcolwidth{2em}%
  }{%
    \setlength{\@sepcolwidth}{\sepcolwidth}%
  }
%    \end{macrocode}
% maincolumn
%    \begin{macrocode}
  \ifdimequal{\maincolwidth}{0pt}{%
    \setlength{\@maincolwidth}{\@komacvtextwidth-\@sepcolwidth-\@hintscolwidth}%
  }{%
    \setlength{\@maincolwidth}{\maincolwidth}%
  }
%    \end{macrocode}
% doubleitem
%    \begin{macrocode}
  \ifdimequal{\dbitemmaincolwidth}{0pt}{%
    \setlength{\@dbitemmaincolwidth}{%
    \@maincolwidth-\@hintscolwidth-2\@sepcolwidth}%
    \setlength{\@dbitemmaincolwidth}{0.5\@dbitemmaincolwidth}%
  }{%
    \setlength{\@dbitemmaincolwidth}{\dbitemmaincolwidth}%
  }
%    \end{macrocode}
% listitem
%    \begin{macrocode}
  \ifdimequal{\listitemsymbolwidth}{0pt}{%
    \settowidth{\@listitemsymbolwidth}{\listitemsymbol{}~}%
    \setlength{\@listitemmaincolwidth}{\@maincolwidth-\@listitemsymbolwidth}%
  }{%
    \setlength{\@listitemsymbolwidth}{\listitemsymbolwidth}%
  }
%    \end{macrocode}
% listdoubleitem
%    \begin{macrocode}
  \ifdimequal{\listdbitemmaincolwidth}{0pt}{%
    \setlength{\@listdbitemmaincolwidth}{\@maincolwidth-\@listitemsymbolwidth}%
    \setlength{\@listdbitemmaincolwidth}{0.475\@listdbitemmaincolwidth}% %
  }{%
    \setlength{\@listdbitemmaincolwidth}{\listdbitemmaincolwidth}%
  }
%    \end{macrocode}
% quote
%    \begin{macrocode}
  \ifdimequal{\quotewidth}{0pt}{%
    \setlength{\@quotewidth}{0.65\textwidth}%
  }{%
    \setlength{\@quotewidth}{\quotewidth}%
  }
  \ifdimequal{\afterquotevspace}{0pt}{%
   \setlength\@afterquotevspace{2\baselineskip}%
  }{%
    \setlength\@afterquotevspace{\afterquotevspace}%
  }
%    \end{macrocode}
% title
%    \begin{macrocode}
  \ifundef{\@photoname}{% without picture:
    \setlength\@aftertitlevspace{\aftertitlevspace}
  }{% with picture:
    \ifthenelse{%
      \equal{\@photoframe}{frame} \OR
      \equal{\@photoframe}{mframe}
    }{% with frame:
      \ifdimequal{\aftertitlevspace}{0pt}{%
        \setlength\@aftertitlevspace{1.5\@fboxextra}
      }{%
        \setlength\@aftertitlevspace{\aftertitlevspace}
      }
    }{% without frame:
      \setlength\@aftertitlevspace{\aftertitlevspace}
    }%
  }%
  \ifundef{\@photoname}{}{%
    \ifdimequal{\titlesepwidth}{0pt}{%
      \setlength\@titlesepwidth{\@sepcolwidth}
    }{%
      \setlength{\@titlesepwidth}{\titlesepwidth}
    }
  }
%    \end{macrocode}
% afterelementsvspace
%    \begin{macrocode}
  \ifdimequal{\afterelementsvspace}{0pt}{%
    \setlength{\@afterelementsvspace}{0.25em}%
  }{%
    \setlength{\@afterelementsvspace}{\afterelementsvspace}%
  }
%    \end{macrocode}
% beforesecvspace
%    \begin{macrocode}
  \ifdimequal{\beforesecvspace}{0pt}{%
    \setlength{\@beforesecvspace}{3.5ex \@plus -1ex \@minus -.2ex}%
  }{%
    \setlength{\@beforesecvspace}{\beforesecvspace}%
  }
%    \end{macrocode}
% aftersecvspace
%    \begin{macrocode}
  \ifdimequal{\aftersecvspace}{0pt}{%
    \setlength{\@aftersecvspace}{2.3ex \@plus.2ex}%
  }{%
    \setlength{\@aftersecvspace}{\aftersecvspace}%
  }
%    \end{macrocode}
% beforesubsecvspace
%    \begin{macrocode}
  \ifdimequal{\beforesubsecvspace}{0pt}{%
    \setlength{\@beforesubsecvspace}{3.25ex\@plus -1ex \@minus -.2ex}%
  }{
    \setlength{\@beforesubsecvspace}{\beforesubsecvspace}%
  }
%    \end{macrocode}
% aftersubsecvspace
%    \begin{macrocode}
  \ifdimequal{\aftersubsecvspace}{0pt}{%
    \setlength{\@aftersubsecvspace}{1.5ex \@plus .2ex}%
  }{%
    \setlength{\@aftersubsecvspace}{\aftersubsecvspace}%
  }
} % end AtEndPreamble
%    \end{macrocode}
%
% \begin{macro}{\@addresssymbol}
%    \begin{macrocode}
\providecommand*\@addresssymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\addresssymbol}
%    \begin{macrocode}
\providecommand*\addresssymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@mobilesymbol}
%    \begin{macrocode}
\providecommand*\@mobilesymbol{\Mobilefone~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\mobilesymbol}
%    \begin{macrocode}
\providecommand*\mobilesymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@phonesymbol}
%    \begin{macrocode}
\providecommand*\@phonesymbol{\Telefon~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\phonesymbol}
%    \begin{macrocode}
\providecommand*\phonesymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@faxsymbol}
%    \begin{macrocode}
\providecommand*\@faxsymbol{\FAX~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\faxsymbol}
%    \begin{macrocode}
\providecommand*\faxsymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@emailsymbol}
%    \begin{macrocode}
\providecommand*\@emailsymbol{\Letter~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\emailsymbol}
%    \begin{macrocode}
\providecommand*\emailsymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@homepagesymbol}
%    \begin{macrocode}
\providecommand*\@homepagesymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\homepagesymbol}
%    \begin{macrocode}
\providecommand*\homepagesymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@fsymbol}
%    \begin{macrocode}
\providecommand*\@fsymbol{~~~\textbullet~~~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\fsymbol}
%    \begin{macrocode}
\providecommand*\fsymbol{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@listitemsymbol}
%    \begin{macrocode}
\providecommand*\@listitemsymbol{\textcolor{colortheme}{\Neutral}~}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\listitemsymbol}
%    \begin{macrocode}
\providecommand*\listitemsymbol{}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\AtEndPreamble{%
  \ifdefempty{\addresssymbol}{}{%
%    \end{macrocode}
%
% \begin{macro}{\@addresssymbol}
%    \begin{macrocode}
\renewcommand*\@addresssymbol{\addresssymbol}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
}
  \ifdefempty{\mobilesymbol}{}{%
%    \end{macrocode}
%
% \begin{macro}{\@mobilesymbol}
%    \begin{macrocode}
\renewcommand*\@mobilesymbol{\mobilesymbol}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
}
  \ifdefempty{\phonesymbol}{}{%
%    \end{macrocode}
%
% \begin{macro}{\@phonesymbol}
%    \begin{macrocode}
\renewcommand*\@phonesymbol{\phonesymbol}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
}
  \ifdefempty{\faxsymbol}{}{%
%    \end{macrocode}
%
% \begin{macro}{\@faxsymbol}
%    \begin{macrocode}
\renewcommand*\@faxsymbol{\faxsymbol}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
}
  \ifdefempty{\emailsymbol}{}{%
%    \end{macrocode}
%
% \begin{macro}{\@emailsymbol}
%    \begin{macrocode}
\renewcommand*\@emailsymbol{\emailsymbol}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
}
  \ifdefempty{\homepagesymbol}{}{%
%    \end{macrocode}
%
% \begin{macro}{\@homepagesymbol}
%    \begin{macrocode}
\renewcommand*\@homepagesymbol{\homepagesymbol}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
}
  \ifdefempty{\fsymbol}{}{%
%    \end{macrocode}
%
% \begin{macro}{\@fsymbol}
%    \begin{macrocode}
\renewcommand*\@fsymbol{\fsymbol}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
}
  \ifdefempty{\listitemsymbol}{}{%
%    \end{macrocode}
%
% \begin{macro}{\@listitemsymbol}
%    \begin{macrocode}
\renewcommand*\@listitemsymbol{\listitemsymbol}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
}
} % end \AtEndPreamble
%    \end{macrocode}
%
% \begin{macro}{\firstname}
%    \begin{macrocode}
\providecommand*{\firstname}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\familyname}
%    \begin{macrocode}
\providecommand*{\familyname}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\acadtitle}
%    \begin{macrocode}
\providecommand*{\acadtitle}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\addressstreet}
%    \begin{macrocode}
\providecommand*{\addressstreet}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\addresscity}
%    \begin{macrocode}
\providecommand*{\addresscity}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\address}
%    \begin{macrocode}
\providecommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\mobile}
%    \begin{macrocode}
\providecommand*{\mobile}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\phonenr}
%    \begin{macrocode}
\providecommand*{\phonenr}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\faxnr}
%    \begin{macrocode}
\providecommand*{\faxnr}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\email}
%    \begin{macrocode}
\providecommand*{\email}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\homepage}
%    \begin{macrocode}
\providecommand*{\homepage}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\extrainfo}
%    \begin{macrocode}
\providecommand*{\extrainfo}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\cvquote}
%    \begin{macrocode}
\providecommand*{\cvquote}{}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\newlist{compactitem}{itemize}{3}
\newlist{compactenum}{enumerate}{3}
\newlist{compactdesc}{description}{3}
\setlist[compactitem,compactenum,compactdesc]{%
  topsep=0pt,%
  partopsep=0pt,%
  itemsep=0pt,%
  parsep=0pt,%
  leftmargin=*%
} % end setlist
\AtEndPreamble{%
\setlist[compactitem,1]{label=\@listitemsymbol}
\setlist[compactitem,2]{label={\textcolor{colortheme}\textendash}}
\setlist[compactitem,3]{label={\textcolor{colortheme}\textperiodcentered}}
\setlist[compactenum,1]{label={\textcolor{colortheme}{\arabic*.}}}
\setlist[compactenum,2]{label={\textcolor{colortheme}{\alph*.}}}
\setlist[compactenum,3]{label={\textcolor{colortheme}{\roman*.}}}
} % end AtEndPreamble
\newlength\@photowidth
%    \end{macrocode}
%
% \begin{macro}{\photo}
%    \begin{macrocode}
\providecommand{\photo}[3][]{%
  \providecommand{\@photoframe}{#1}%
  \setlength{\@photowidth}{#2}%
  \providecommand{\@photoname}{#3}}
\newif\if@firstdetailselement\@firstdetailselementtrue
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@titledetailsnewline}
%    \begin{macrocode}
\providecommand*{\@titledetailsnewline}{
  \if@firstdetailselement%
    \@firstdetailselementfalse%
  \else%
    \\[.4ex]
  \fi%
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\maketitle}
% ahilbig begin
%    \begin{macrocode}
\renewcommand\maketitle{\csexpandonce{@cvtitle\ahbewerbung@lebenslaufStyle}}
%    \end{macrocode}
% \end{macro}
%
% ahilbig end
%    \begin{macrocode}
\RequirePackage{lastpage}
%    \end{macrocode}
%
% \begin{macro}{\totalpagemark}
%    \begin{macrocode}
\providecommand*{\totalpagemark}{% page and pagetotal
\usekomafont{pagenumber}\pageref{LastPage}%
}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
  \newcommand*{\firstnamestyle}[1]{{%
      \usekomafont{firstnamefont}%
      \textcolor{@firstnamecolor}{#1}}}
  \newcommand*{\familynamestyle}[1]{{%
      \usekomafont{familynamefont}%
      \textcolor{@familynamecolor}{#1}}}
  \newcommand*{\acadtitlestyle}[1]{{%
      \usekomafont{acadtitlefont}%
      \textcolor{@acadtitlecolor}{#1}}}
%    \end{macrocode}
% ahilbig begin
%    \begin{macrocode}
  \newcommand*{\titlestyle}[1]{{%
      \usekomafont{titlefont}%
      \textcolor{@titlecolor}{#1}}}
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
  \newcommand*{\addressstyle}[1]{{%
      \usekomafont{addressfont}%
      \textcolor{@addresscolor}{#1}}}
  \newcommand*{\quotestyle}[1]{{%
      \usekomafont{quotefont}%
      \textcolor{@quotecolor}{#1}}}
  \newcommand*{\hintstyle}[1]{{%
      \usekomafont{hintfont}%
      \textcolor{@hintcolor}{#1}}}
  \newcommand*{\sectionstyle}[1]{%
    \usekomafont{section}%
    \textcolor{@seccolor}{#1}}
  \newcommand*{\subsectionstyle}[1]{%
    \usekomafont{subsection}%
    \textcolor{@subseccolor}{#1}}
%    \end{macrocode}
%
% \begin{macro}{\cvitem}
%    \begin{macrocode}
\providecommand*{\cvitem}[3][\@afterelementsvspace]{%
  \begin{tabular}{%
      @{}p{\@hintscolwidth}%
      @{\hspace{\@sepcolwidth}}p{\@maincolwidth}@{}%
    }%
    \raggedleft\hintstyle{#2} &{#3}%
  \end{tabular}\\[#1]%
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\cvdoubleitem}
%    \begin{macrocode}
\providecommand*{\cvdoubleitem}[5][\@afterelementsvspace]{%
 \cvitem[#1]{#2}{%
   \begin{minipage}[t]{\@dbitemmaincolwidth}#3\end{minipage}%
   \hspace*{\@sepcolwidth}%
   \begin{minipage}[t]{\@hintscolwidth}%
     \noindent\raggedleft\hintstyle{#4}
   \end{minipage}%
   \hspace*{\@sepcolwidth}%
   \begin{minipage}[t]{\@dbitemmaincolwidth}%
     \noindent #5
   \end{minipage}%
 }%
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\cvlistitem}
%    \begin{macrocode}
\providecommand*{\cvlistitem}[2][\@afterelementsvspace]{%
   \cvitem[#1]{}{%
     \@listitemsymbol%
     \begin{minipage}[t]{\@listitemmaincolwidth}%
       #2%
     \end{minipage}%
   }%
 }
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\cvlistdoubleitem}
%    \begin{macrocode}
\providecommand*{\cvlistdoubleitem}[3][\@afterelementsvspace]{%
  \cvitem[#1]{}{%
    \@listitemsymbol%
    \begin{minipage}[t]{\@listdbitemmaincolwidth}%
      #2%
    \end{minipage}%
    \hspace*{\@sepcolwidth}
    \ifstrempty{#3}{}{%
      \@listitemsymbol%
      \begin{minipage}[t]{\@listdbitemmaincolwidth}%
        #3%
      \end{minipage}
    }%
  }%
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\cventry}
%    \begin{macrocode}
\providecommand*{\cventry}[7][\@afterelementsvspace]{%
  \cvitem[#1]{#2}{%
    {\bfseries#3}%
    \ifstrempty{#4}{}{, {\itshape#4}}%
    \ifstrempty{#5}{}{, #5}%
    \ifstrempty{#6}{}{, #6}%
    .%
    \ifx&#7&%
    \else{%
      \newline{}\begin{minipage}[t]{\linewidth}%
        \small#7%
      \end{minipage}%
    }%
    \fi%
  }%
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\cvlanguage}
% ahilbig begin
%    \begin{macrocode}
\providecommand{\cvlanguage}[3]{
	\cvitemwithcomment{#1}{#2}{#3}
}
%    \end{macrocode}
% \end{macro}
%
% ahilbig end
%    \begin{macrocode}
\newbox{\@commentmainbox}
%    \end{macrocode}
%
% \begin{macro}{\cvitemwithcomment}
%    \begin{macrocode}
\providecommand*{\cvitemwithcomment}[4][\@afterelementsvspace]{%
  \savebox{\@commentmainbox}{{\usekomafont{commentmainfont}#3}}%
  \settowidth\@commentmainlength{\usebox{\@commentmainbox}}%
  \setlength{\@commentlength}{%
    \@maincolwidth-\@sepcolwidth-\@commentmainlength%
  }%
  \cvitem[#1]{#2}{%
    \begin{minipage}[t]{\@commentmainlength}%
      \usekomafont{commentmainfont} #3%
    \end{minipage}%
    \hfill%
   \begin{minipage}[t]{\@commentlength}%
     \raggedleft\usekomafont{commentfont} #4%
   \end{minipage}%
 }%
}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
  \providecommand*{\link}[2][]{%
    \ifstrempty{#1}{%
      \href{#2}{\usekomafont{linkfont}#2}}{%
      \href{#2}{\usekomafont{linkfont}#1}}%
  }
  \providecommand*{\httplink}[2][]{%
    \ifstrempty{#1}{%
      \href{http://#2}{\usekomafont{httplinkfont}#2}}{%
      \href{http://#2}{\usekomafont{httplinkfont}#1}}%
  }
  \providecommand*{\emaillink}[2][]{%
    \ifstrempty{#1}{%
	\href{mailto:#2}{\usekomafont{emaillinkfont}#2}}{%
	\href{mailto:#2}{\usekomafont{emaillinkfont}#1}}%
  }
%    \end{macrocode}
%
% \begin{macro}{\origsection}
%    \begin{macrocode}
\providecommand\origsection{}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\let\origsection\section
%    \end{macrocode}
%
% \begin{macro}{\origsubsection}
%    \begin{macrocode}
\providecommand\origsubsection{}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\let\origsubsection\subsection
%    \end{macrocode}
%
% \begin{macro}{\@cvsimplesection}
%    \begin{macrocode}
\providecommand\@cvsimplesection[1]{%
  \origsection*{\sectionstyle{#1}}
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@cvsimplesubsection}
%    \begin{macrocode}
\providecommand\@cvsimplesubsection[1]{%
  \origsubsection*{\subsectionstyle{#1}}
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@cvbarsection}
%    \begin{macrocode}
\providecommand\@cvbarsection[1]{%
%    \end{macrocode}
% ahilbig begin
%  needed some additional space between the sections to look nicer
%    \begin{macrocode}
	\vspace{0.75em}
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
  \origsection*{
    \phantomsection{}% reset the anchor for hyperrefs
    \addcontentsline{toc}{section}{#1}%
    \cvitem[0pt]{%
      \raggedleft\hintstyle{\color{@secbarcolor}%
        \rule{\@hintscolwidth}{1ex}}%
%    \end{macrocode}
% ahilbig begin
%  we need more space^^
%    \begin{macrocode}
		}{\sectionstyle{#1}\vspace{0.4em}}
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
  }% end origsection
} % end cvbarsection
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@cvbarsubsection}
%    \begin{macrocode}
\providecommand\@cvbarsubsection[1]{%
  \origsubsection*{
    \cvitem[0pt]{}{\subsectionstyle{#1}}
  }%
}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\hypersetup{
  breaklinks,
  unicode,
%    \end{macrocode}
% ahilbig begin
%  make links look nicer
%    \begin{macrocode}
  colorlinks    = true,
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
  pdfborder     = {0 0 .3},
  pdfstartview  = FitH,
  pdfstartpage  = 1,
  pdfcreator    = \LaTeX{},
  pdfproducer   = \LaTeX{}
}
\urlstyle{same}
%    \end{macrocode}
%
% \begin{macro}{\@citebordercolor}
%    \begin{macrocode}
\providecommand*\@citebordercolor{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\citebordercolor}
%    \begin{macrocode}
\providecommand*\citebordercolor{\@citebordercolor}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@filebordercolor}
%    \begin{macrocode}
\providecommand*\@filebordercolor{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\filebordercolor}
%    \begin{macrocode}
\providecommand*\filebordercolor{\@filebordercolor}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@linkbordercolor}
%    \begin{macrocode}
\providecommand*\@linkbordercolor{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\linkbordercolor}
%    \begin{macrocode}
\providecommand*\linkbordercolor{\@linkbordercolor}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@menubordercolor}
%    \begin{macrocode}
\providecommand*\@menubordercolor{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\menubordercolor}
%    \begin{macrocode}
\providecommand*\menubordercolor{\@menubordercolor}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@runbordercolor}
%    \begin{macrocode}
\providecommand*\@runbordercolor{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\runbordercolor}
%    \begin{macrocode}
\providecommand*\runbordercolor{\@runbordercolor}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@urlbordercolor}
%    \begin{macrocode}
\providecommand*\@urlbordercolor{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\urlbordercolor}
%    \begin{macrocode}
\providecommand*\urlbordercolor{\@urlbordercolor}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\allbordercolors}
%    \begin{macrocode}
\providecommand*\allbordercolors{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\pdfauthor}
%    \begin{macrocode}
\providecommand*\pdfauthor{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\pdfsubject}
%    \begin{macrocode}
\providecommand*\pdfsubject{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\pdftitle}
%    \begin{macrocode}
\providecommand*\pdftitle{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\pdfkeywords}
%    \begin{macrocode}
\providecommand*\pdfkeywords{}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\AtEndPreamble{%
%    \end{macrocode}
%
% \begin{macro}{\@allbordercolors}
%    \begin{macrocode}
\providecommand*\@allbordercolors{colortheme}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\ifdefempty{\allbordercolors}{}{\renewcommand*\@allbordercolors{\allbordercolors}}
%    \end{macrocode}
%
% \begin{macro}{\@pdfauthor}
%    \begin{macrocode}
\providecommand*\@pdfauthor{\firstname~\familyname}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\ifdefempty{\pdfauthor}{}{\renewcommand*\@pdfauthor{\pdfauthor}}
%    \end{macrocode}
%
% \begin{macro}{\@pdfsubject}
%    \begin{macrocode}
\providecommand*\@pdfsubject{\firstname~\familyname}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\pdfsubject}
%    \begin{macrocode}
\providecommand*\pdfsubject{\@pdfsubject}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@pdftitle}
%    \begin{macrocode}
\providecommand*\@pdftitle{\title~\firstname~\familyname}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\pdftitle}
%    \begin{macrocode}
\providecommand*\pdftitle{\@pdftitle}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\@pdfkeywords}
%    \begin{macrocode}
\providecommand*\@pdfkeywords{\firstname~\familyname{} curriculum~vit\ae{} CV{}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\pdfkeywords}
%    \begin{macrocode}
\providecommand*\pdfkeywords{\@pdfkeywords}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
  \hypersetup{%
    allbordercolors = \@allbordercolors,
    citebordercolor = \citebordercolor,
    filebordercolor = \filebordercolor,
    linkbordercolor = \linkbordercolor,
    menubordercolor = \menubordercolor,
    runbordercolor  = \runbordercolor,
    urlbordercolor  = \urlbordercolor,
    pdfauthor       = \@pdfauthor,
    pdfsubject      = \pdfsubject,
    pdftitle        = \pdftitle,
    pdfkeywords     = \pdfkeywords,
  }
} % end AtEndPreamble
\AtBeginDocument{%
  \raggedbottom
} % End AtBeginDocument
%    \end{macrocode}
% ahilbig begin
%\clearscrheadfoot
%    \begin{macrocode}
\RequirePackage{ahilbig-cv-\ahbewerbung@lebenslaufStyle}
%    \end{macrocode}
% ahilbig end
%    \begin{macrocode}
\endinput
%    \end{macrocode}
%%
%% End of file `bewerbung-cv.sty'.
% -*- coding: utf-8; -*-
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
% (C)opyright A. Hilbig, mail@andrehilbig.de                                                       |
%             http://www.andrehilbig.de/Publications                                               |
%                                                                                                  | 
% this file: bewerbung.sty                                                                         |
%                                                                                                  |
%                                                                                                  |
% This work may be distributed and/or modified under the                                           |
% conditions of the LaTeX Project Public License, either version 1.3                               |
% of this license or (at your option) any later version.                                           |
% The latest version of this license is in                                                         |
%   http://www.latex-project.org/lppl.txt                                                          |
% and version 1.3 or later is part of all distributions of LaTeX                                   |
% version 2005/12/01 or later.                                                                     |
%                                                                                                  |
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
%                                                                                                  |
%    \begin{macrocode}
\ProvidesPackage{ahilbig-bewerbung}
    [2015/07/08 v0.1 makros zum setzen der bewerbung]
%    \end{macrocode}
%
% \begin{macro}{\name}
% Macros for setting up your personal informations
%    \begin{macrocode}
\providecommand{\name}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\Name}
%    \begin{macrocode}
\providecommand{\Name}[1]{\renewcommand{\name}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\vorname}
%    \begin{macrocode}
\providecommand{\vorname}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\Vorname}
%    \begin{macrocode}
\providecommand{\Vorname}[1]{\renewcommand{\vorname}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\fullname}
%    \begin{macrocode}
\providecommand{\fullname}[1][n]{%
	\ifthenelse{\equal{#1}{n}}{%
		\vorname\xspace\name
	}{%
		\name, \vorname
	}
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\street}
%    \begin{macrocode}
\providecommand{\street}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\Street}
%    \begin{macrocode}
\providecommand{\Street}[1]{\renewcommand{\street}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\plz}
%    \begin{macrocode}
\providecommand{\plz}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\Plz}
%    \begin{macrocode}
\providecommand{\Plz}[1]{\renewcommand{\plz}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\stadt}
%    \begin{macrocode}
\providecommand{\stadt}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\Stadt}
%    \begin{macrocode}
\providecommand{\Stadt}[1]{\renewcommand{\stadt}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\anschrift}
%    \begin{macrocode}
\providecommand{\anschrift}[1][n]{%
	\ifthenelse{\equal{#1}{n}}{%
		\street\\%
		\plz\xspace\stadt%
	}{%
		\street, \plz\xspace\stadt%
	}%
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\meinBeruf}
%    \begin{macrocode}
\providecommand{\meinBeruf}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\meinberuf}
%    \begin{macrocode}
\providecommand{\meinberuf}{\meinBeruf}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\MeinBeruf}
%    \begin{macrocode}
\providecommand{\MeinBeruf}[1]{\renewcommand{\meinBeruf}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\gebDatum}
%    \begin{macrocode}
\providecommand{\gebDatum}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\GebDatum}
%    \begin{macrocode}
\providecommand{\GebDatum}[1]{\renewcommand{\gebDatum}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\sta}
%    \begin{macrocode}
\providecommand{\sta}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\Sta}
%    \begin{macrocode}
\providecommand{\Sta}[1]{\renewcommand{\sta}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\email}
%    \begin{macrocode}
\providecommand{\email}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\EMail}
%    \begin{macrocode}
\providecommand{\EMail}[1]{\renewcommand{\email}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\tel}
%    \begin{macrocode}
\providecommand{\tel}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\Tel}
%    \begin{macrocode}
\providecommand{\Tel}[1]{\renewcommand{\tel}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\mobile}
%    \begin{macrocode}
\providecommand{\mobile}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\Mobile}
%    \begin{macrocode}
\providecommand{\Mobile}[1]{\renewcommand{\mobile}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\todayOrt}
%    \begin{macrocode}
\providecommand{\todayOrt}{Musterstadt}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\TodayOrt}
%    \begin{macrocode}
\providecommand{\TodayOrt}[1]{\renewcommand{\todayOrt}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\todayTime}
%    \begin{macrocode}
\providecommand{\todayTime}{\today}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\TodayTime}
%    \begin{macrocode}
\providecommand{\TodayTime}[1]{\renewcommand{\todayTime}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\lebenslaufTitel}
%    \begin{macrocode}
\providecommand{\lebenslaufTitel}{Curriculum Vitae}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\LebenslaufTitel}
%    \begin{macrocode}
\providecommand{\LebenslaufTitel}[1]{\renewcommand{\lebenslaufTitel}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\firma}
% Macros for setting up the information of the company 
%    \begin{macrocode}
\providecommand{\firma}{a}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\firmaAnrede}
%    \begin{macrocode}
\providecommand{\firmaAnrede}{a}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\firmaName}
%    \begin{macrocode}
\providecommand{\firmaName}{a}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\firmaStreet}
%    \begin{macrocode}
\providecommand{\firmaStreet}{a}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\firmaPlz}
%    \begin{macrocode}
\providecommand{\firmaPlz}{a}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\firmaStadt}
%    \begin{macrocode}
\providecommand{\firmaStadt}{a}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\beruf}
%    \begin{macrocode}
\providecommand{\beruf}{a}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\setzekomma}
%    \begin{macrocode}
\providecommand{\setzekomma}{,}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungKW}
%    \begin{macrocode}
\providecommand{\bewerbungKW}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungKW}
%    \begin{macrocode}
\providecommand{\BewerbungKW}[1]{\renewcommand{\bewerbungKW}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungDatum}
%    \begin{macrocode}
\providecommand{\bewerbungDatum}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungDatum}
%    \begin{macrocode}
\providecommand{\BewerbungDatum}[1]{\renewcommand{\bewerbungDatum}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungFirma}
%    \begin{macrocode}
\providecommand{\bewerbungFirma}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungFirma}
%    \begin{macrocode}
\providecommand{\BewerbungFirma}[1]{\renewcommand{\bewerbungFirma}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungFirmaAnrede}
%    \begin{macrocode}
\providecommand{\bewerbungFirmaAnrede}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungFirmaAnrede}
%    \begin{macrocode}
\providecommand{\BewerbungFirmaAnrede}[1]{\renewcommand{\bewerbungAnrede}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungFirmaName}
%    \begin{macrocode}
\providecommand{\bewerbungFirmaName}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungFirmaName}
%    \begin{macrocode}
\providecommand{\BewerbungFirmaName}[1]{\renewcommand{\bewerbungName}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungFirmaStr}
%    \begin{macrocode}
\providecommand{\bewerbungFirmaStr}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungFirmaStr}
%    \begin{macrocode}
\providecommand{\BewerbungFirmaStr}[1]{\renewcommand{\bewerbungFirmaStr}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungFirmaPlz}
%    \begin{macrocode}
\providecommand{\bewerbungFirmaPlz}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungFirmaPlz}
%    \begin{macrocode}
\providecommand{\BewerbungFirmaPlz}[1]{\renewcommand{\bewerbungPlz}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungFirmaOrt}
%    \begin{macrocode}
\providecommand{\bewerbungFirmaOrt}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungFirmaOrt}
%    \begin{macrocode}
\providecommand{\BewerbungFirmaOrt}[1]{\renewcommand{\bewerbungOrt}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungStelle}
%    \begin{macrocode}
\providecommand{\bewerbungStelle}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungStelle}
%    \begin{macrocode}
\providecommand{\BewerbungStelle}[1]{\renewcommand{\bewerbungStelle}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungRueckmeldung}
%    \begin{macrocode}
\providecommand{\bewerbungRueckmeldung}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungRueckmeldung}
%    \begin{macrocode}
\providecommand{\BewerbungRueckmeldung}[1]{\renewcommand{\bewerbungRueckmeldung}{#1}}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\bewerbungSonstiges}
%    \begin{macrocode}
\providecommand{\bewerbungSonstiges}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\BewerbungSonstiges}
%    \begin{macrocode}
\providecommand{\BewerbungSonstiges}[1]{\renewcommand{\bewerbungSonstiges}{#1}}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\RequirePackage{datatool}
%    \end{macrocode}
%
% \begin{macro}{\id}
% Need to know which company you mean today
%    \begin{macrocode}
\providecommand{\id}{}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\ID}
%    \begin{macrocode}
\providecommand{\ID}[1]{\renewcommand{\id}{#1}}
%    \end{macrocode}
% \end{macro}
%
% How does the table of accurancies look like?
%ID,KW,Datum,Firma,FirmaAnrede,FirmaName,Str,PLZ,Ort,Stelle,Rueckmeldung,Sonstiges
%
%
% \begin{macro}{\getBewerbung}
% Get the information of the current company out of the table
%    \begin{macrocode}
\providecommand{\getBewerbung}[1][anschrift.csv]{
	\IfFileExists{#1}{%
%    \end{macrocode}
% load the table
%    \begin{macrocode}
		\DTLloaddb[
			]{anschrift}{#1}
%    \end{macrocode}
% which id-format is used?
%  plain             -> search for the exact match of id in the column ID
%  noplain (default) -> get the row with number id (first one is 0)
%    \begin{macrocode}
		\ifahbewerbung@idPlain
			\edtlgetrowforvalue{anschrift}{1}{\id}
		\else
			\dtlgetrow{anschrift}{\id}
		\fi
		\dtlgetentryfromcurrentrow{\bewerbungKW}{2}
		\dtlgetentryfromcurrentrow{\bewerbungDatum}{3}
		\dtlgetentryfromcurrentrow{\bewerbungFirma}{4}
		\dtlgetentryfromcurrentrow{\bewerbungFirmaAnrede}{5}
		\dtlgetentryfromcurrentrow{\bewerbungFirmaName}{6}
		\dtlgetentryfromcurrentrow{\bewerbungFirmaStr}{7}
		\dtlgetentryfromcurrentrow{\bewerbungFirmaPlz}{8}
		\dtlgetentryfromcurrentrow{\bewerbungFirmaOrt}{9}
		\dtlgetentryfromcurrentrow{\bewerbungStelle}{10}
		\dtlgetentryfromcurrentrow{\bewerbungRueckmeldung}{11}
		\dtlgetentryfromcurrentrow{\bewerbungSonstiges}{12}
	}{%
		\@latex@warning@no@line{Achtung die Datei #1 ist nicht lesbar.}
	}
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\runKomaVar}
% Change the komavars for komacv implementation of this project
%    \begin{macrocode}
\providecommand{\runKomaVar}{
	\setkomavar{fromname}{\fullname}
	\setkomavar{fromaddress}{\street\\\plz\xspace\stadt}
	\setkomavar{fromphone}[\Telefon\enskip]{\tel}
	\setkomavar{fromfax}[\Mobilefone\enskip]{\mobile}
	\setkomavar{fromemail}[\Letter\enskip]{\email}
	\setkomavar{signature}{\vorname\xspace\name}
	\setkomavar{subject}{Bewerbung als \meinberuf}
	\renewcommand*{\raggedsignature}{}
%    \end{macrocode}
%	\renewcommand*{\title}{\}% PDF metadata
%    \begin{macrocode}
	\renewcommand*{\firstname}{\vorname}
	\renewcommand*{\familyname}{\name}
%    \end{macrocode}
%	\renewcommand*{\acadtitle}{}
%    \begin{macrocode}
	\renewcommand*{\addressstreet}{\street}
	\renewcommand*{\addresscity}{\plz\xspace\stadt}
	\renewcommand*{\address}{\street\\\plz\xspace\stadt}
	\renewcommand*{\phonenr}{\tel}
%    \end{macrocode}
%	\renewcommand*{\extrainfo}{Some extra info}
%    \begin{macrocode}
	
}
%    \end{macrocode}
% \end{macro}
%
% Provide the right paper for a nice titlepage
%    \begin{macrocode}
\ProvideDocumentEnvironment{titlepage}{}{%
	\thispagestyle{empty}
	\newgeometry{top=4cm,left=3cm,right=2.5cm,bottom=2cm}
}{
	\clearpage
	\restoregeometry
}
%    \end{macrocode}
% This environment will make a nice letter to you company
%    \begin{macrocode}
\ProvideDocumentEnvironment{anschreiben}{O{Abiturzeugnis.}o}{%
	\begin{letter}{%
		\bewerbungFirma\\
		\bewerbungFirmaAnrede\xspace\bewerbungFirmaName\\
		\bewerbungFirmaStr\\
		\bewerbungFirmaPlz\xspace\bewerbungFirmaOrt
	}
	\IfNoValueF{#2}{\enlargethispage{#2}}
	\opening{Sehr geehrter \bewerbungFirmaAnrede\xspace\bewerbungFirmaName,}
}{
		\closing{Mit freundlichen Grüßen}
		%\signature{}
		\encl{%
			Curriculum Vitae.\\ 
			Diplomzeugnis.%
			\ifthenelse{\equal{#1}{}}{}{%
				\\
				#1
			} 
		}
	\end{letter}
}
%    \end{macrocode}
% This environment will produce a nice cv like komacv but within the same document
%    \begin{macrocode}
\ProvideDocumentEnvironment{lebenslauf}{oo}{
	\clearpage
	\newgeometry{top=2.5cm,left=3cm,right=2.5cm,bottom=3cm}
	\pagestyle{empty}
	\ifthenelse{\equal{#1}{none}}{\renewcommand{\@listitemsymbol}{}}{}
	%\clearscrheadfoot
	%\ifoot{CV~\firstname~\familyname}
	%\ofoot{n}
}{
	\vfill
	\begin{raggedright}
	\begin{tabular}{p{\textwidth}}
		\fullname\\
		\todayOrt, \todayTime
	\end{tabular}
	\end{raggedright}
	\IfNoValueF{#2}{%
		\newpage
		#2
	}
	\restoregeometry
}
%    \end{macrocode}
%
% \begin{macro}{\makePerson}
% Make the entry of your personality in the cv-environment
%    \begin{macrocode}
\providecommand{\makePerson}{
		\section{Persönliche Angaben}
		\cvitem{Name}{\fullname}
		\cvitem{Anschrift}{\anschrift[k]}
		\cvitem{StA}{\sta}
		\cvitem{Geburtsdatum}{\gebDatum}
		%\cvitem{Konfession}{}
		%\cvitem{Familienstand}{}
		\cvitem{Beruf}{\meinBeruf}
}
%    \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\argetabelle}
% Print a table with all your latest appliances
%    \begin{macrocode}
\providecommand{\argetabelle}[1][anschrift.csv]{
	\IfFileExists{#1}{%
%    \end{macrocode}
% load the table
%    \begin{macrocode}
		\DTLloaddb{anschrift}{anschrift.csv}
%    \end{macrocode}
% create a nice table environment for printing over more than one page
%    \begin{macrocode}
		\begin{longtable}{rrL{6cm}L{3cm}L{4cm}}
		  \toprule
   		\multicolumn{1}{l}{\textbf{KW}} & \multicolumn{1}{l}{\textbf{Datum}} & \textbf{Arbeitgeber} &
		   \textbf{Stelle} & \textbf{Rückmeldung} \\\midrule
   		\endfirsthead
	   \toprule
  	  \multicolumn{5}{r}{Fortsetzung...}\\\toprule
   		\multicolumn{1}{l}{\textbf{KW}} & \multicolumn{1}{l}{\textbf{Datum}} & \textbf{Arbeitgeber} &
		   {Stelle} & \textbf{Rückmeldung} \\\midrule
   		\endhead
	   \midrule\multicolumn{5}{r}{Fortsetzung auf der nächsten Seite...}\\\bottomrule
  	  \endfoot
    \bottomrule
		\endlastfoot
%    \end{macrocode}
% read the whole table-file and print it nicely into the table
%    \begin{macrocode}
		 \DTLforeach{anschrift}{%
			 \kw=KW,\datum=Datum,\firma=Firma,\firmaanrede=FirmaAnrede,\firmaname=FirmaName,\str=Str,\plz=PLZ,\ort=Ort,\stelle=Stelle,\rueckmeldung=Rueckmeldung}{%
			 \\
			 \kw & \datum & \firma\newline\firmaanrede\ \firmaname\ \str, \plz\ \ort & \stelle &
			 \rueckmeldung \\\midrule}
		\end{longtable}
	}{%
		\@latex@warning@no@line{Achtung die Datei #1 ist nicht lesbar.}
	}
}
%    \end{macrocode}
% \end{macro}
%

%
% \iffalse
%</package>
% \fi
%
% \Finale
\endinput
