| 1 |
%%%% |
| 2 |
% |
| 3 |
% ticket.sty example file for visiting cards |
| 4 |
% |
| 5 |
%%%% |
| 6 |
% use the corresponding paper size for your ticket definition |
| 7 |
\documentclass[a4paper,10pt]{letter} |
| 8 |
|
| 9 |
% load ticket.sty with the appropriate ticket definition |
| 10 |
\usepackage[zw32010,crossmark]{ticket} |
| 11 |
|
| 12 |
% load misc stuff |
| 13 |
\usepackage{graphicx} |
| 14 |
\usepackage{color} |
| 15 |
|
| 16 |
% define something |
| 17 |
\definecolor{uni}{rgb}{.3019,.7216,.7019} |
| 18 |
|
| 19 |
% make your default ticket. \ticketdefault is somewhat like a background |
| 20 |
% here it is empty, because we use different tickets for the front an |
| 21 |
% the back of our card |
| 22 |
\renewcommand{\ticketdefault}{% |
| 23 |
} |
| 24 |
|
| 25 |
% now what do you like to put in your ticket |
| 26 |
\newcommand{\vcardfront}[5]{\ticket{% |
| 27 |
\put( 63, 5){\includegraphics[width=40mm,angle=90,origin=bl]{logo}} |
| 28 |
\put( 63.2, 2){\color{uni}your logo} |
| 29 |
\put( 5, 13){\color{uni}\line(1,0){56}} |
| 30 |
\put( 7, 10){\small your company} |
| 31 |
\put( 7,6.5){\small street 1} |
| 32 |
\put( 7, 3){\small xxxxx city and state} |
| 33 |
\put( 7, 24){\small phone:} |
| 34 |
\put( 7, 20){\small fax:} |
| 35 |
\put(6,40){\bfseries\LARGE #1} |
| 36 |
\put(7,36){#2} |
| 37 |
\put(15,24){\small #3} |
| 38 |
\put(15,20){\small #4} |
| 39 |
\put( 7,16){\small #5} |
| 40 |
}} |
| 41 |
|
| 42 |
\newcommand{\vcardback}[1]{\ticket{% |
| 43 |
\put( 7, 26){\small private:} |
| 44 |
\put( 5, 23){\color{uni}\line(1,0){56}} |
| 45 |
\put( 7,19){\small% |
| 46 |
\begin{minipage}[t]{50mm}% |
| 47 |
{#1}\hss% |
| 48 |
\end{minipage}}% |
| 49 |
}} |
| 50 |
|
| 51 |
% a counter, which makes life easier... |
| 52 |
\newcounter{numcards} |
| 53 |
|
| 54 |
\begin{document} |
| 55 |
\sffamily |
| 56 |
|
| 57 |
% ten cards for the front |
| 58 |
\whiledo{\thenumcards<10}{% |
| 59 |
\stepcounter{numcards}% |
| 60 |
\vcardfront{Mr. X}{Degree/Profession}{+YY/XXXX/ZZZ ZZ ZZ}{+YY/XXXX/ZZZ ZZ ZZ}{[email protected]}} |
| 61 |
|
| 62 |
\setcounter{numcards}{0} |
| 63 |
|
| 64 |
% and ten for the backside |
| 65 |
\whiledo{\thenumcards<10}{% |
| 66 |
\stepcounter{numcards}% |
| 67 |
\vcardback{phone: ---/HH HH HHH\\fax: ---/HH HH HHH\\homestreet 7\\everywhere}} |
| 68 |
\end{document} |
| 69 |
|
| 70 |
|