Debian Codegraph @

texmf-dist/doc/latex/ticket/ex_marks.tex

raw
1 %%%%
2 %
3 % ticket.sty example file for empty cross-marks
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[freepin3,emptycrossmark]{ticket}
11
12 % load misc stuff
13 \usepackage{graphicx}
14 \usepackage{color}
15 %\usepackage{layout}
16
17 % make your default ticket. \ticketdefault is somewhat like a background
18 % here it is empty, because we use different tickets for the front an
19 % the back of our card
20 \renewcommand{\ticketdefault}{%
21 }
22
23 % now what do you like to put in your ticket
24 \newcommand{\acard}[1]{\ticket{%
25 \put( 7, 20){\large Hello!}%
26 \put( 7, 10){Number:\bfseries #1}%
27 }}
28
29 % a counter, which makes life easier...
30 \newcounter{numcards}
31
32 \begin{document}
33 %\layout\newpage
34 \sffamily
35
36 % cards with an empty crossmark
37 \whiledo{\thenumcards<25}{\stepcounter{numcards}\acard{\thenumcards}}%
38
39 % cards with cutmarks
40 \setcounter{numcards}{0}\ticketreset\clearpage%
41 \makeatletter\@emptycrossmarkfalse\@cutmarktrue\makeatother
42 \whiledo{\thenumcards<25}{\stepcounter{numcards}\acard{\thenumcards}}%
43
44 % cards boxed
45 \setcounter{numcards}{0}\ticketreset\clearpage%
46 \makeatletter\@cutmarkfalse\@boxedtrue\makeatother
47 \whiledo{\thenumcards<25}{\stepcounter{numcards}\acard{\thenumcards}}%
48
49 % cards with crossmarks
50 \setcounter{numcards}{0}\ticketreset\clearpage%
51 \makeatletter\@boxedfalse\@crossmarktrue\makeatother
52 \whiledo{\thenumcards<25}{\stepcounter{numcards}\acard{\thenumcards}}%
53
54 % cards with circlemarks
55 \setcounter{numcards}{0}\ticketreset\clearpage%
56 \makeatletter\@crossmarkfalse\@circlemarktrue\makeatother
57 \whiledo{\thenumcards<25}{\stepcounter{numcards}\acard{\thenumcards}}%
58
59
60 \end{document}
61
62