vorlagebewerbung/bewerbung/bewerbung-cv-classic.sty

140 lines
4.0 KiB
TeX

% \begin{macrocode}
\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{
% \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}
%