%% start of file `cvbasic.tex'; shows exemplarily the use of koma-moderncvclassic
%% (c) Copyright 2010--2012 Salome Södergran (salome.soedergran@gmx.ch)
%% 
\ProvidesFile{cvbasic_v05.tex}[v0.5 2012/01/04]
%%
\RequirePackage{filecontents}
\begin{filecontents}{cvbasic.bib}
@ARTICLE{2006,
  title = {journalarticle},
  journal = {journal},
  year = {2006},
  volume = {6},
  pages = {19--75}
}
@BOOK{2000,
  title = {Some Book},
  address = {Around the Corner},
  year = {2000}
}
\end{filecontents} 
% ===========================
\documentclass[%
fontsize=11pt,%
a4paper,%
pagesize,%
headinclude,footinclude,%
headings=normal,%
]{scrartcl}
%\usepackage[left=2cm,right=2cm,top=3cm,bottom=5cm]{geometry} % page layout
\usepackage{scrpage2}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[german=quotes]{csquotes} 

\tolerance=200 % white space
\clubpenalty = 1000 % orphans
\widowpenalty = 1000 % widows

% ===========================
%    VARIABLES
% ===========================
%    must be defined, BEFORE koma-moderncvclassic is loaded!

% address; not needed variables should be commented out
\renewcommand*{\title}{Lebenslauf}% für PDF
\newcommand*{\firstname}{Minna}
\newcommand*{\familyname}{von Barnhelm}
\newcommand*{\acadtitle}{Dr.~h.\,c.~mult.}
\newcommand*{\addressstreet}{Way of no return 77}
\newcommand*{\addresscity}{9999 Hinterdemmond}
\newcommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
%\newcommand*{\mobile}{}
\newcommand*{\phone}{001 23456789}
%\newcommand*{\faxnr}{}
\newcommand*{\email}{minna@barnhelm.edu}
%\newcommand*{\extrainfo}{}
%\renewcommand*{\quote}{}

% ===========================
%    LENGTHS
% ===========================
%    must be defined, BEFORE koma-moderncvclassic is loaded!

% left column width (default value: 2,79cm)
% uncomment the \newlength-command, and uncomment and adjust one of the \set...-commands to change the default value
% \newlength\myhintscolumnwidth
% \settowidth\myhintscolumnwidth{Left column takes this text's width}
% \setlength\myhintscolumnwidth{.3\textwidth}
% \setlength\myhintscolumnwidth{5cm}


% ===========================
%    KOMA-MODERNCVCLASSIC
% ===========================

\usepackage[myblue]{koma-moderncvclassic} % color theme as option; default = myblue; other predefined colors that may be used: red, green, blue, cyan, magenta, yellow, black, white, darkgray, gray, lightgray

% picture
%\photo[noframe]{3cm}{picture.jpg}
% 'frame' gives a frame around the picture (=default), 'noframe' does not;
% '3cm' is the width the picture must be resized to;
% 'picture.jpg' is the name of the picture file


% ===========================
%    ADAPTIONS
% ===========================
%\renewcommand*{\familydefault}{\sfdefault}% default font sans-serif
%\renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}% sans-serif font for address, too
%\renewcommand{\firstnamefont}{\fontsize{24}{26}\sffamily\mdseries\upshape} % name in smaller font
\newcommand*{\totalpagemark}{\usekomafont{pagenumber}\thepage/\pageref{lastpage}}% for page and pagetotal
 
% ===========================
%    HEAD- AND FOOTLINES
% ===========================
\pagestyle{scrheadings}
\clearscrheadfoot
\ifoot{CV~\firstname~\familyname}
\ofoot{\totalpagemark}
%\ihead{}
%\ohead{}

% ===========================
%    BIBLIOGRAPHY
% ===========================

\usepackage[backend=biber,% or bibtex8
style=authortitle,% 
sorting=ydnt,% sorted by year, descending
]{biblatex}
\bibliography{cvbasic.bib}
\defbibheading{bibliography}[Publications]{\section{#1}}

% ==================================================================
%       DOCUMENT
% ==================================================================

\begin{document}

\maketitle

\section{Personal Information}
\cvline{margintext}{linetext}
\cvline{margintext}{linetext}
\cvline{margintext}{linetext}

\section{Education}
\subsection{Schools}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\subsection{University}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\subsection{Job Training}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}
\cventry{years}{degree/jobtitle}{institution/employer}{localization}{optional: grade/...}{optional: comment/job description}

\section{Languages}
\cvlanguage{name}{level}{comment}
\cvlanguage{name}{level}{comment}
\cvlanguage{name}{level}{comment}

\section{Computer Knowledges}
\cvcomputer{category}{programs}{category}{programs}
\cvcomputer{category}{programs}{category}{programs}

\newpage

\nocite{*}
\printbibliography

\label{lastpage}% needed for computing pagetotal
\end{document}
