summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ticket/manual.tex
blob: 414474bd64c8637a294423ef87d0a27aaeff65c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
\documentclass[a4paper,KOMA,landscape]{powersem}

\usepackage[stmo,button,display]{ifmslide}

%% user definitions
\newcommand{\ticket}{{\code{ticket.sty}}}
\newcommand{\bs}{{\mtt\\}}

\hypersetup{pdfauthor={Thomas Emmel}}
\hypersetup{pdftitle={ticket manual}}
\hypersetup{pdfsubject={ticket.sty}}

\IfFileExists{cmtt.sty}{\usepackage{cmtt}}{}

\usepackage{verbatim}
\usepackage{amssymb}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\slidepagestyle{panel}
\panelposition{bottom}
\pageTransitionDissolve
\sffamily

\orgname{TU Darmstadt -- Institute of Mechanics -- AG4}

\title{\begin{minipage}[t]{0.98\textwidth}\begin{center}
      {\mdseries \ticket{} v0.3c October 10, 2000}\\[1ex]
      Making labels, visting cards, pins with \LaTeX\\
      A short introduction
    \end{center}\end{minipage}}

\author{\scalebox{1}[1.3]{Thomas Emmel}}

\address{\href{mailto:emmel@mechanik.tu-darmstadt.de}%
  {emmel@mechanik.tu-darmstadt.de}}
\orgurl{http://coulomb.mechanik.tu-darmstadt.de/}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{slide}
  \maketitle
\end{slide}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\slidepagestyle{empty}
\panelposition{outsidebottom}
\hidebackground
\pageTransitionReplace
\centerslidesfalse
\begin{slide}
  \section{A short introduction}
  \ticket{} provides an easy to handle interface to produce 
  visiting cards, labels for your files, stickers, pins and
  other stuff for your office, conferences etc.\\[2ex]
  All you need is a definition of your \lq{}ticket\rq{} included in
  a ticket definition file (\code{.tdf}),\\
  $\rightarrowtail$ see \hyperlink{tdf}{ticket definition file}\\
  and the two commands \code{\bs{}ticketdefault} and \code{\bs{}ticket}.\\
  $\rightarrowtail$ see \hyperlink{ticket}{how to fill your ticket}\\[2ex]
  What you get is shown in some examples:\\
  $\rightarrowtail$ \href{ex_file.pdf}{\code{ex\_file}} back labels for your files...\\
  $\rightarrowtail$ \href{ex_pin.pdf}{\code{ex\_pin}}  pins for a conference...\\
  $\rightarrowtail$ \href{ex_vcard.pdf}{\code{ex\_vcard}} visiting-cards...\\
\end{slide}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{slide}
  \section{ticket definition file}\hypertarget{tdf}{}
A sample ticket definition (\code{lz1680.tdf}) for a product of the german company 
\lq{}LEITZ\rq{} is:
\begin{center}
  \begin{minipage}[t]{0.5\textwidth}
    {\scriptsize
\begin{verbatim}
%%
%% ticket for "Leitz 1680" 
%% pre-cutted label for wide files
%%
\unitlength=1mm

%% tested for an HP5SiMX, adjust it for your printer
\hoffset=-16.2mm
\voffset=-6.6mm

\ticketNumbers{1}{4}

\ticketSize{189}{56.5}     % in unitlength
\ticketDistance{0}{9.8}    % in unitlength
\end{verbatim}
      }
    \end{minipage}
\end{center}
The meaning of \code{\bs{}unitlength} is obvious, \code{\bs{}hoffset} and 
\code{\bs{}voffset} are used to adjust the output.
\code{\bs{}ticketNumbers\{n$_x$\}\{n$_y$\}} are the number of the tickets
on the sheet in horizontal and vertical direction.
\code{\bs{}ticketSize\{width\}\{height\}} is the size of one ticket and
\code{\bs{}ticketDistance\{dist$_x$\}\{dist$_y$\}} are existing distances
between the tickets.
\end{slide}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{slide}
  \section{missing ticket definition file}
If you like to test a new ticket definition or there is no need to 
provide such a file \ticket{} assumes default values which can be
redefined in your file.\\
Simply call \ticket{} without any ticket definition:\\
\code{\bs{}usepackage[other options]\{ticket\}}
\end{slide}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{slide}
  \section{how to fill your ticket}\hypertarget{ticket}{}
  \ticket{} opens a picture-environment for all tickets. You can put things 
  in this picture with \code{\bs{}ticketdefault} and \code{\bs{}ticket}.
  Both commands have one argument.\\
  \code{\bs{}ticketdefault} is used to put a default background to your 
  ticket, which will not changed for all tickets. 
  You have to \code{\bs{}renewcommand} \code{\bs{}ticketdefault} every time
  you change this background:\\[-5ex]
  \begin{center}
    \begin{minipage}[t]{.5\textwidth}
      {\scriptsize
\begin{verbatim}
\renewcommand{\ticketdefault}{%
    \put(100, 5){\includegraphics[width=35mm]{ifmlogoc}}%
    \put(100,50){\begin{rotate}{180}\Huge ...\end{rotate}}%
    }
\end{verbatim}
        \normalsize
        }
    \end{minipage}
  \end{center}
  \code{\bs{}ticket} is used to provide the content which will be changed
  for the individual tickets. The simplest way to do that is to define a new 
  command like this:
  \begin{center}
    \begin{minipage}[t]{0.5\textwidth}
      {\scriptsize
\begin{verbatim}
\newcommand{\myticket}[3]{\ticket{%
    \put(  0, 5){#1}%
    \put( 20,20){{\bfseries\large#2}\\#3}%
    }}
\end{verbatim}
        }
    \end{minipage}
  \end{center}
\end{slide}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{slide}
  \section{special commands}
You can add additional pagebreaks with \code{\bs{}newpage\bs{}ticketreset}. This clears the ticket-buffers and sets the corresponding values to initial values.\\
\end{slide}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%