pancv/pancv.tex

159 lines
2.6 KiB
TeX

$if(europass)$
\newcommand{\pancvname}[2]{
\ecvname{#1 #2}
}
\newcommand{\pancvphone}[1]{
\ecvtelephone{#1}
}
\newcommand{\pancvmobile}[1]{
\ecvmobile{#1}
}
\newcommand{\pancvemail}[1]{
\ecvemail{#1}
}
\newcommand{\pancvaddress}[2]{
\ecvaddress{%
#1%
\ifthenelse{\isempty{#2}{}}{}{, #2}
}
}
\newcommand{\pancvsection}[1]{
\ecvsection{#1}
}
\newcommand{\pancventry}[6]{
\ecvitem{#1}{%
\textbf{#2},
#3%
\ifthenelse{\isempty{#4}}{.}{, #4.}%
\ifthenelse{\isempty{#5}}{}{ #5.}%
\ifthenelse{\isempty{#6}}{}{\newline #6}}%
}
\newcommand{\pancvitem}[2]{
\ecvitem{#1}{#2}
}
$else$
\newcommand{\pancvname}[2]{
\firstname{#1}
\familyname{#2}
}
\newcommand{\pancvphone}[1]{
\phone{#1}
}
\newcommand{\pancvmobile}[1]{
\mobile{#1}
}
\newcommand{\pancvemail}[1]{
\email{#1}
}
\newcommand{\pancvaddress}[2]{
\address{#1}{#2}
}
\newcommand{\pancvsection}[1]{
\section{#1}
}
\newcommand{\pancventry}[6]{
\cventry{#1}{#2}{#3}{#4}{#5}{#6}
}
\newcommand{\pancvitem}[2]{
\cvline{#1}{#2}
}
$endif$
$if(europass)$
\documentclass[
$if(europass.nologo)$
nologo,
$endif$
$if(europass.notitle)$
notitle,
$endif$
$if(europass.nototpages)$
nototpages,
$endif$
]{europasscv}
\usepackage{xifthen}
$else$
\documentclass{moderncv}
\moderncvtheme[$if(theme.color)$$theme.color$$else$blue$endif$]{$if(theme.style)$$theme.style$$else$classic$endif$}
$endif$
\usepackage[$if(inputenc)$$inputenc$$else$utf8$endif$]{inputenc}
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
\usepackage[$if(lang)$$lang$$else$english$endif$]{babel}
$if(name)$
\pancvname{$name.first$}{$name.family$}
$endif$
$if(address)$
\pancvaddress{$address.first$}{$address.second$}
$endif$
$if(email)$
\pancvemail{$email$}
$endif$
$if(mobile)$
\pancvmobile{$mobile$}
$endif$
$if(phone)$
\pancvphone{$phone$}
$endif$
%\photo[64pt]{pic.png}
\begin{document}
$if(europass)$
\ecvpersonalinfo
$else$
\maketitle
$endif$
$for(cron-sections)$
\pancvsection{$if(it.section)$$it.section$$endif$}
$for(it.entries)$
\pancventry{$if(it.year)$$it.year$$endif$}
{$if(it.degree)$$it.degree$$endif$}
{$if(it.institution)$$it.institution$$endif$}
{$if(it.city)$$it.city$$endif$}
{$if(it.grade)$$it.grade$$endif$}
{$if(it.description)$$it.description$$endif$}
$endfor$
$endfor$
$for(sections)$
\pancvsection{$if(it.section)$$it.section$$endif$}
$for(it.items)$
\pancvitem{$if(it.left)$$it.left$$endif$}
{$if(it.right)$$it.right$$endif$}
$endfor$
$endfor$
$if(end-text)$
\vfill
\begin{center}
\textit{\small $end-text$}
\end{center}
$endif$
\end{document}