%%%%
%
% ticket.sty example file for visiting cards
%
%%%%
% use the corresponding paper size for your ticket definition
\documentclass[a4paper,9pt]{letter}

\usepackage{DejaVuSerifCondensed}
\usepackage{DejaVuSansMono}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[swedish]{babel}

\usepackage{FixSmallCaps}

% load ticket.sty with the appropriate ticket definition
\usepackage[zw32010,crossmark]{ticket}

% load misc stuff
\usepackage{graphicx}
\usepackage{color}

% define something
\definecolor{uni}{rgb}{.3019,.7216,.7019}

% make your default ticket. \ticketdefault is somewhat like a background
% here it is empty, because we use different tickets for the front an
% the back of our card
\renewcommand{\ticketdefault}{%
}

\unitlength=1mm
\ticketSize{90}{52}
%\ticketDistance{0}{0}

% now what do you like to put in your ticket
\newcommand{\vcardfront}{\ticket{%
    \footnotesize
    \put( 55, 10){\includegraphics[width=34mm, keepaspectratio, origin=bl]{bild2_cutout}}
    
    \put(5, 45){\small Gustav Hartvigsson}
    \put(5, 42){Skotsteksgatan 1}
    \put(5, 39){45 238 Strömstad}
    \put(5, 36.5){\textsc{Sweden}}
    
    %\put(5, 29.5){\small\textsc{When you need stuff done}}
    %\put(5, 26.5){\textsc{Programmer, Writer, The Best}}
    
    \put( 5, 20){+46 (0)70 394 1996}
    \put( 5, 17){+46 (0)526 615 27}
    \put( 5, 12){gustav.hartvigsson@gmail.com}
    \put( 5, 7){linkedin.com/in/GustavHartvigsson}
}}


\newcommand{\vcardback}{\ticket{%
    \footnotesize
    \put(2, 5){\includegraphics[width=45mm, keepaspectratio, origin=bl]{VCardQR}}
    
    \put(47, 7){\rule{37mm}{0.5pt}}
    \put(47, 12){\rule{37mm}{0.5pt}}
    \put(47, 17){\rule{37mm}{0.5pt}}
    \put(47, 22){\rule{37mm}{0.5pt}}
    \put(47, 27){\rule{37mm}{0.5pt}}
    \put(47, 32){\rule{37mm}{0.5pt}}
    \put(47, 37){\rule{37mm}{0.5pt}}
    \put(47, 42){\rule{37mm}{0.5pt}}
    \put(47, 47){\rule{37mm}{0.5pt}}
}}

% a counter, which makes life easier...
\newcounter{numcards}

\begin{document}
\tt
\footnotesize

% ten cards for the front
\whiledo{\thenumcards<10}{%
  \stepcounter{numcards}%
  \vcardfront{}
}

\setcounter{numcards}{0}
% and ten for the backside
\whiledo{\thenumcards<10}{%
  \stepcounter{numcards}%
  \vcardback{}
}


\end{document}
