vorlagebewerbung/bewerbung-cv-classic.sty

107 lines
3.5 KiB
TeX

\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{bewerbung-cv-classic} %
[2015/07/14 v1.1 theme für bewerbungen basiert auf komacv-classic]
%% this file is based on komacv-classic.sty from Salome Södergran
%% every change is marked by
%% %% ahilbig begin
%% CHANGE
%% %% ahilbig end
\addtokomafont{firstnamefont}{\sffamily}
\addtokomafont{acadtitlefont}{\sffamily}
\addtokomafont{addressfont}{\sffamily}
\addtokomafont{hintfont}{\sffamily}
\AtEndPreamble{%
%AtBeginDocument{
% mframepicshift
\ifdimequal{\mframepicshift}{0pt}{%
\setlength\@mframepicshift{.5\@photowidth+\@fboxextra}
}{%
\setlength\@mframepicshift{\mframepicshift}
}
} % end AtBeginDocument
\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}
}
% set titlenamedetailswidth
\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}%
}{}%
}%
}%
% name and title
\begin{minipage}[b]{\@titlenamewidth}%
%% ahilbig begin
\firstnamestyle{\firstname}\\ %
\familynamestyle{\familyname}%
\ifdefempty{\acadtitle}{}{%
\\[1.25em]\acadtitlestyle{\acadtitle}}%
\\[1.25em]\titlestyle{\lebenslaufTitel}%
\end{minipage}%
% optional data
\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}%
}%
%% ahilbig end
\end{minipage}%
% optional photo
\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]
% optional quote
\ifundef{\cvquote}{}{%
\centering
\begin{minipage}{\@quotewidth}%
\centering\quotestyle{\cvquote}%
\end{minipage}\\[\@afterquotevspace]%
}%
}
\renewcommand*{\section}[1]{\@cvbarsection{#1}}
\renewcommand{\subsection}[1]{\@cvbarsubsection{#1}}
%%\endinput
%%
%% End of file `bewerbung-cv-classic.sty'.