| 1 |
\documentclass[aspectratio=1610,hyperref={pdfpagelabels=false}]{beamer} |
| 2 |
|
| 3 |
\usetheme{Bergen} |
| 4 |
|
| 5 |
%\nobuttons |
| 6 |
%% user definitions |
| 7 |
|
| 8 |
\def\code#1{\texttt{#1}} |
| 9 |
\newcommand{\ticket}{{\code{ticket.sty}}} |
| 10 |
\newcommand{\bs}{{\mtt\\}} |
| 11 |
|
| 12 |
\hypersetup{pdfauthor={Thomas Emmel}} |
| 13 |
\hypersetup{pdftitle={ticket manual}} |
| 14 |
\hypersetup{pdfsubject={ticket.sty}} |
| 15 |
|
| 16 |
\IfFileExists{cmtt.sty}{\usepackage{cmtt}}{} |
| 17 |
|
| 18 |
\usepackage{verbatim} |
| 19 |
\usepackage{amssymb} |
| 20 |
|
| 21 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 22 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 23 |
\begin{document} |
| 24 |
\sffamily |
| 25 |
|
| 26 |
\title{\begin{minipage}[t]{0.98\textwidth}\begin{center} |
| 27 |
{\mdseries \ticket{} v0.4d October 11, 2016}\\[1ex] |
| 28 |
Making labels, business cards, pins and flash-cards with \LaTeX\\[1ex] |
| 29 |
A short introduction |
| 30 |
\end{center}\end{minipage}} |
| 31 |
|
| 32 |
\author{\scalebox{1}[1.1]{Thomas Emmel} \href{mailto:[email protected]}% |
| 33 |
{[email protected]}} |
| 34 |
|
| 35 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 36 |
\begin{frame} |
| 37 |
\maketitle |
| 38 |
\end{frame} |
| 39 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 40 |
\begin{frame} |
| 41 |
\frametitle{A short introduction} |
| 42 |
|
| 43 |
\begin{block}{\ticket{}} |
| 44 |
provides a simple interface to produce |
| 45 |
\end{block} |
| 46 |
business cards, labels for your files, stickers, pins and |
| 47 |
other stuff for your office, conferences etc.\\[2ex] |
| 48 |
All you need is a definition of your \lq{}ticket\rq{} included in |
| 49 |
a ticket definition file (\code{.tdf}),\\ |
| 50 |
% $\rightarrowtail$ see \hyperlink{tdf}{ticket definition file}\\ |
| 51 |
and the two commands \code{\bs{}ticketdefault} and \code{\bs{}ticket}.\\ |
| 52 |
% $\rightarrowtail$ see \hyperlink{ticket}{how to fill your ticket}\\[2ex] |
| 53 |
See these examples to get an idea what you can get:\\ |
| 54 |
\begin{exampleblock}{\href{ex_file.pdf}{\code{ex\_file}}}back labels for your files...\end{exampleblock} |
| 55 |
\begin{exampleblock}{\href{ex_pin.pdf}{\code{ex\_pin}}}pins for a conference...\end{exampleblock} |
| 56 |
\begin{exampleblock}{\href{ex_vcard.pdf}{\code{ex\_vcard}}} business-cards...\end{exampleblock} |
| 57 |
\begin{exampleblock}{\href{ex_marks.pdf}{\code{ex\_marks}}} different markers used...\end{exampleblock} |
| 58 |
\begin{exampleblock}{\href{ex_flashcard.pdf}{\code{ex\_flashcard}}} flash-cards, try it...\end{exampleblock} |
| 59 |
\begin{exampleblock}{\href{ex_flashcard_dup.pdf}{\code{ex\_flashcard\_dup}}}in duplex mode\end{exampleblock} |
| 60 |
\begin{exampleblock}{\href{ex_flashcard_rm.pdf}{\code{ex\_flashcard\_rm}}}in rows\end{exampleblock} |
| 61 |
\end{frame} |
| 62 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 63 |
\begin{frame} |
| 64 |
\frametitle{How to use it} |
| 65 |
|
| 66 |
Just add this line to the header of your latex-file: |
| 67 |
|
| 68 |
\code{\bs{}usepackage[{\itshape tdf-file,other options}]\{ticket\}} |
| 69 |
|
| 70 |
Use the letter or article documentclass and |
| 71 |
set up the paper-size that you need. |
| 72 |
\end{frame} |
| 73 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 74 |
\begin{frame}[fragile] |
| 75 |
\frametitle{The ticket definition file}\hypertarget{tdf}{} |
| 76 |
A sample ticket definition (\code{lz1680.tdf}) for a \lq{}LEITZ\rq{}-product is:\\ |
| 77 |
\begin{quote} |
| 78 |
\begin{minipage}[t]{0.5\textwidth} |
| 79 |
{\scriptsize |
| 80 |
\begin{verbatim} |
| 81 |
%% |
| 82 |
%% ticket for "Leitz 1680" |
| 83 |
%% pre-cutted label for wide files |
| 84 |
%% |
| 85 |
\unitlength=1mm |
| 86 |
%% tested for an HP5SiMX, adjust it for your printer |
| 87 |
\hoffset=-16.2mm |
| 88 |
\voffset=-6.6mm |
| 89 |
\ticketNumbers{1}{4} |
| 90 |
\ticketSize{189}{56.5} % in unitlength |
| 91 |
\ticketDistance{0}{9.8} % in unitlength |
| 92 |
\end{verbatim} |
| 93 |
} |
| 94 |
\end{minipage} |
| 95 |
\end{quote} |
| 96 |
The meaning of \code{\bs{}unitlength} is obvious, \code{\bs{}hoffset} and |
| 97 |
\code{\bs{}voffset} are used to adjust the printed output. |
| 98 |
\code{\bs{}ticketNumbers\{n$_x$\}\{n$_y$\}} are the number of the tickets |
| 99 |
on the sheet in horizontal and vertical direction. |
| 100 |
\code{\bs{}ticketSize\{width\}\{height\}} is the size of one ticket and |
| 101 |
\code{\bs{}ticketDistance\{dist$_x$\}\{dist$_y$\}} are spaces |
| 102 |
between the tickets. |
| 103 |
\end{frame} |
| 104 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 105 |
\begin{frame} |
| 106 |
\frametitle{Missing the ticket definition file} |
| 107 |
If you like to test a new ticket definition or you like to create only a single output without reusing those definitions anymore, \ticket{} assumes default values which can be |
| 108 |
redefined in your file.\\ |
| 109 |
Simply call \ticket{} without any ticket definition: |
| 110 |
|
| 111 |
\code{\bs{}usepackage[{\itshape other options}]\{ticket\}} |
| 112 |
|
| 113 |
and add your definitions directly to the head of the file after loading ticket.sty. |
| 114 |
\end{frame} |
| 115 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 116 |
\begin{frame}[fragile] |
| 117 |
\frametitle{How to fill your ticket}\hypertarget{ticket}{}% |
| 118 |
\ticket{} enables a picture-environment for all tickets. |
| 119 |
You can put things |
| 120 |
into this picture with \code{\color{red}\bs{}ticketdefault} and \code{\color{red}\bs{}ticket}. |
| 121 |
Both commands offer one argument.\\ |
| 122 |
\begin{exampleblock}{\code{\bs{}ticketdefault}} |
| 123 |
is used to put a default and unique background to your ticket, that will be -- of course -- not changed for all tickets unless |
| 124 |
you change it with:\\ |
| 125 |
% \begin{quote} |
| 126 |
\begin{minipage}[t]{.5\textwidth} |
| 127 |
{\scriptsize |
| 128 |
\begin{verbatim} |
| 129 |
\renewcommand{\ticketdefault}{% |
| 130 |
\put(100, 5){\includegraphics[width=35mm]{logo}}% |
| 131 |
\put(100,50){\begin{rotate}{180}\Huge ...\end{rotate}}% |
| 132 |
} |
| 133 |
\end{verbatim} |
| 134 |
\normalsize |
| 135 |
} |
| 136 |
\end{minipage} |
| 137 |
% \end{quote} |
| 138 |
\end{exampleblock} |
| 139 |
\begin{exampleblock}{\code{\bs{}ticket}} |
| 140 |
is used to provide the content which will be changed |
| 141 |
for the individual tickets. The simplest way to do that is to define a new |
| 142 |
command like this:\\ |
| 143 |
% \begin{quote} |
| 144 |
\begin{minipage}[t]{0.5\textwidth} |
| 145 |
{\scriptsize |
| 146 |
\begin{verbatim} |
| 147 |
\newcommand{\myticket}[3]{\ticket{% |
| 148 |
\put( 0, 5){#1}% |
| 149 |
\put( 20,20){{\bfseries\large#2}\\#3}% |
| 150 |
}} |
| 151 |
\end{verbatim} |
| 152 |
} |
| 153 |
\end{minipage} |
| 154 |
% \end{quote} |
| 155 |
\end{exampleblock} |
| 156 |
\end{frame} |
| 157 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 158 |
\def\cross{% |
| 159 |
\begin{picture}(0,0)% |
| 160 |
\put(-2,0){\line(1,0){4}}\put(0,-2){\line(0,1){4}}% |
| 161 |
\end{picture}}% |
| 162 |
\begin{frame} |
| 163 |
\frametitle{Additional Options} |
| 164 |
Most of the options other than the tdf-file are used to create marks |
| 165 |
or decorations around the ticket:\\ |
| 166 |
\begin{alertblock}{crossmark% |
| 167 |
\begin{picture}(23,0)(-5,0)\color{red} |
| 168 |
\put(0,0){\cross}% |
| 169 |
\put(0,8){\cross}% |
| 170 |
\put(17,0){\cross}% |
| 171 |
\put(17,8){\cross}% |
| 172 |
\end{picture}} |
| 173 |
Add a cross at all four corners of the ticket |
| 174 |
\end{alertblock} |
| 175 |
\begin{alertblock}{circlemark% |
| 176 |
\begin{picture}(23,0)(-5,0)\color{red} |
| 177 |
\put(0,0){\circle{2}}% |
| 178 |
\put(0,8){\circle{2}}% |
| 179 |
\put(17,0){\circle{2}}% |
| 180 |
\put(17,8){\circle{2}}% |
| 181 |
\end{picture}% |
| 182 |
} |
| 183 |
Add a circle at all four corners |
| 184 |
\end{alertblock} |
| 185 |
\begin{alertblock}{emptycrossmark% |
| 186 |
\begin{picture}(23,0)(-5,0)\color{red} |
| 187 |
\put(-1,0){\line(-1,0){2}} |
| 188 |
\put(0,-1){\line(0,-1){2}} |
| 189 |
\put(-1,8){\line(-1,0){2}} |
| 190 |
\put(0,11){\line(0,1){2}} |
| 191 |
\put(18,0){\line(1,0){2}} |
| 192 |
\put(17,-1){\line(0,-1){2}} |
| 193 |
\put(18,8){\line(1,0){2}} |
| 194 |
\put(17,11){\line(0,1){2}} |
| 195 |
\end{picture}% |
| 196 |
} |
| 197 |
A crossmark where the part of the cross inside the ticket is not visible |
| 198 |
\end{alertblock} |
| 199 |
\begin{alertblock}{cutmark% |
| 200 |
\begin{picture}(23,0)(-5,0)\color{red} |
| 201 |
\put(0,-1){\line(0,-1){2}} |
| 202 |
\put(0,11){\line(0,1){2}} |
| 203 |
\put(18,0){\line(1,0){2}} |
| 204 |
\put(17,-1){\line(0,-1){2}} |
| 205 |
\put(18,8){\line(1,0){2}} |
| 206 |
\put(17,11){\line(0,1){2}} |
| 207 |
\end{picture}% |
| 208 |
} |
| 209 |
Just add cutmarks at the outer region of the page |
| 210 |
\end{alertblock} |
| 211 |
\begin{alertblock}{boxed% |
| 212 |
\begin{picture}(23,0)(-5,0)\color{red} |
| 213 |
\put(0,0){\line(0,1){8}} |
| 214 |
\put(0,0){\line(1,0){17}} |
| 215 |
\put(17,8){\line(-1,0){17}} |
| 216 |
\put(17,8){\line(0,-1){8}} |
| 217 |
\end{picture}% |
| 218 |
} |
| 219 |
Add a frame around each ticket |
| 220 |
\end{alertblock} |
| 221 |
\begin{alertblock}{rowmode} |
| 222 |
This option creates the tickets in rows instead of columns, |
| 223 |
which might be useful in some cases. |
| 224 |
\end{alertblock} |
| 225 |
\end{frame} |
| 226 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 227 |
\begin{frame} |
| 228 |
\frametitle{Special commands} |
| 229 |
\begin{exampleblock}{reset tickets} |
| 230 |
You can add additional page-breaks with \code{\bs{}newpage\bs{}ticketreset}. This clears the ticket-buffers and sets the corresponding values to initial values. |
| 231 |
This can be used if you create a handful of tickets multiple times. |
| 232 |
\end{exampleblock} |
| 233 |
|
| 234 |
\begin{exampleblock}{\code{\bs{}backside}} |
| 235 |
is useful for flash-cards, see the use-cases below. |
| 236 |
\end{exampleblock} |
| 237 |
|
| 238 |
\begin{exampleblock}{skip tickets} |
| 239 |
Once you printed a series of tickets you mostly end up with some empty stickers on your sheet. In this case use \code{\bs{}ticketskip\{5\}} to skip 5 tickets (New feature) |
| 240 |
\end{exampleblock} |
| 241 |
\end{frame} |
| 242 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 243 |
\begin{frame}[fragile] |
| 244 |
\frametitle{Organising and reading input} |
| 245 |
In general it is a good idea to create a file that contains all definitions and the whole latex-setup and a second file that contains only the data that you like to print which can be referenced by \code{\bs{}input}. |
| 246 |
|
| 247 |
For example, if you reference a huge database of names of people which are used for the pins of a conference, you can easily write a script (perl, python...) that extracts the data to a file that is itself latex-formated with a \code{\bs{}myticket\{ \}\{ \}\{ \}} on each line. |
| 248 |
|
| 249 |
Sometimes -- of course -- you only have to print only a small amount of data and all data can easily be written to a single file. |
| 250 |
|
| 251 |
Sometimes a small generator-function can help to create numbers on tickets: |
| 252 |
|
| 253 |
\begin{quote} |
| 254 |
\begin{minipage}[t]{0.5\textwidth} |
| 255 |
{\scriptsize |
| 256 |
\begin{verbatim} |
| 257 |
\newcounter{numcards} |
| 258 |
... |
| 259 |
\begin{document} |
| 260 |
... |
| 261 |
\whiledo{\thenumcards<25}{\stepcounter{numcards}\acard{\thenumcards}}% |
| 262 |
\end{verbatim} |
| 263 |
} |
| 264 |
\end{minipage} |
| 265 |
\end{quote} |
| 266 |
\end{frame} |
| 267 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 268 |
\begin{frame} |
| 269 |
\frametitle{Use-cases} |
| 270 |
Some examples were referenced at the beginning of this manual. I will finish this short introduction with an overview of special examples and their implementations... |
| 271 |
\end{frame} |
| 272 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 273 |
\begin{frame}[fragile] |
| 274 |
\begin{block}{Files and pins} |
| 275 |
This is a simple example for your files. |
| 276 |
\end{block} |
| 277 |
The same applies to pins. Start with a \code{\bs{}ticketdefault}, with this background: |
| 278 |
\begin{quote} |
| 279 |
\begin{minipage}[t]{0.5\textwidth} |
| 280 |
{\scriptsize |
| 281 |
\begin{verbatim} |
| 282 |
\renewcommand{\ticketdefault}{% |
| 283 |
\put(155,5){\begin{sideways}% |
| 284 |
\includegraphics[width=35mm]{logo}\end{sideways}}% |
| 285 |
\put(150,50){\begin{rotate}{180}\Huge C O M P U T E R\end{rotate}}% |
| 286 |
} |
| 287 |
\end{verbatim} |
| 288 |
} |
| 289 |
\end{minipage} |
| 290 |
\end{quote} |
| 291 |
\end{frame} |
| 292 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 293 |
\begin{frame}[fragile] |
| 294 |
\vspace*{10mm} |
| 295 |
Now, create the content of the \code{\bs{}ticket} which differs: |
| 296 |
\begin{quote} |
| 297 |
\begin{minipage}[t]{0.5\textwidth} |
| 298 |
{\scriptsize |
| 299 |
\begin{verbatim} |
| 300 |
\newcommand{\filelabel}[3]{\ticket{% |
| 301 |
\put(33,48){\begin{sideways}\bfseries\Large#1\end{sideways}}% |
| 302 |
\put(43,5){\begin{sideways}% |
| 303 |
\begin{minipage}[t]{50mm}% |
| 304 |
{\bfseries\large#2}\\[2ex]\large#3% |
| 305 |
\end{minipage}% |
| 306 |
\end{sideways}}% |
| 307 |
}} |
| 308 |
\end{verbatim} |
| 309 |
} |
| 310 |
\end{minipage} |
| 311 |
\end{quote} |
| 312 |
|
| 313 |
And fill the tickets: |
| 314 |
\begin{quote} |
| 315 |
\begin{minipage}[t]{0.5\textwidth} |
| 316 |
{\scriptsize |
| 317 |
\begin{verbatim} |
| 318 |
\begin{document} |
| 319 |
... |
| 320 |
\filelabel{1}{\LaTeX{} - styles}{Standard styles\\Own styles\\% |
| 321 |
\hspace*{5mm}\bfseries ...\\\hspace*{5mm}\bfseries ticket}% |
| 322 |
... |
| 323 |
\end{verbatim} |
| 324 |
} |
| 325 |
\end{minipage} |
| 326 |
\end{quote} |
| 327 |
\end{frame} |
| 328 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 329 |
\begin{frame}[fragile]\vspace*{-4mm} |
| 330 |
\begin{block}{Business-cards} |
| 331 |
In this example, the \code{\bs{}ticketdefault} is empty, since we need a front and and background that differs: |
| 332 |
\end{block} |
| 333 |
\begin{quote} |
| 334 |
\begin{minipage}[t]{0.5\textwidth} |
| 335 |
{\scriptsize |
| 336 |
\begin{verbatim} |
| 337 |
\renewcommand{\ticketdefault}{}% |
| 338 |
|
| 339 |
\newcommand{\vcardfront}[5]{\ticket{% |
| 340 |
\put( 63, 5){\includegraphics[width=40mm,angle=90,origin=bl]{logo}} |
| 341 |
\put( 63.2, 2){\color{uni}your logo} |
| 342 |
\put( 5, 13){\color{uni}\line(1,0){56}} |
| 343 |
\put( 7, 10){\small your company} |
| 344 |
\put( 7,6.5){\small street 1}\put( 7, 3){\small xxxxx city and state} |
| 345 |
\put( 7, 24){\small phone:}\put( 7, 20){\small fax:} |
| 346 |
\put(6,40){\bfseries\LARGE #1} |
| 347 |
\put(7,36){#2}\put(15,24){\small #3} |
| 348 |
\put(15,20){\small #4}\put( 7,16){\small #5} |
| 349 |
}} |
| 350 |
|
| 351 |
\newcommand{\vcardback}[1]{\ticket{% |
| 352 |
\put( 7, 26){\small private:} |
| 353 |
\put( 5, 23){\color{uni}\line(1,0){56}} |
| 354 |
\put( 7,19){\small% |
| 355 |
\begin{minipage}[t]{50mm}{#1}\hss\end{minipage}}% |
| 356 |
}} |
| 357 |
\end{verbatim} |
| 358 |
} |
| 359 |
\end{minipage} |
| 360 |
\end{quote} |
| 361 |
\end{frame} |
| 362 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 363 |
\begin{frame}[fragile]\vspace*{10mm} |
| 364 |
And fill the tickets: |
| 365 |
\begin{quote} |
| 366 |
\begin{minipage}[t]{0.5\textwidth} |
| 367 |
{\scriptsize |
| 368 |
\begin{verbatim} |
| 369 |
% a counter, which makes life easier... |
| 370 |
\newcounter{numcards} |
| 371 |
|
| 372 |
\begin{document} |
| 373 |
... |
| 374 |
% ten cards for the front |
| 375 |
\whiledo{\thenumcards<10}{% |
| 376 |
\stepcounter{numcards}% |
| 377 |
\vcardfront{Mr. X}{Degree/Profession} |
| 378 |
{+YY/XXXX/ZZZ ZZ ZZ}{+YY/XXXX/ZZZ ZZ ZZ} |
| 379 |
{[email protected]}} |
| 380 |
\setcounter{numcards}{0} |
| 381 |
% and ten for the backside |
| 382 |
\whiledo{\thenumcards<10}{% |
| 383 |
\stepcounter{numcards}% |
| 384 |
\vcardback{phone: ---/HH HH HHH\\fax: ---/HH HH HHH\\% |
| 385 |
homestreet 7\\everywhere}} |
| 386 |
... |
| 387 |
\end{verbatim} |
| 388 |
} |
| 389 |
\end{minipage} |
| 390 |
\end{quote} |
| 391 |
\end{frame} |
| 392 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 393 |
\begin{frame}[fragile]\vspace*{-4mm} |
| 394 |
\begin{block}{Flashcards} |
| 395 |
In this case we work with two different \code{\bs{}ticket}-definitions since we have a file |
| 396 |
with two different commands. However, this can be changed according to your taste: |
| 397 |
\end{block} |
| 398 |
\begin{quote} |
| 399 |
\begin{minipage}[t]{0.5\textwidth} |
| 400 |
{\scriptsize |
| 401 |
\begin{verbatim} |
| 402 |
% now what do you like to put in your ticket |
| 403 |
\newcommand{\card}[2]{\ticket{% |
| 404 |
\put(32.5,15){\makebox[0mm]{\centering{\huge{\textbf{#1}}}}} |
| 405 |
}} |
| 406 |
\newcommand{\raiz}[3]{\ticket{% |
| 407 |
\put(2,31){{$\sqrt{\enspace}$}} |
| 408 |
\put(32.5,15){\makebox[0mm]{{\huge{\textit{{ #1 }}}}}} |
| 409 |
}} |
| 410 |
\end{verbatim} |
| 411 |
} |
| 412 |
\end{minipage} |
| 413 |
\end{quote} |
| 414 |
|
| 415 |
All data is in a file: |
| 416 |
\begin{quote} |
| 417 |
\begin{minipage}[t]{0.5\textwidth} |
| 418 |
{\scriptsize |
| 419 |
\begin{verbatim} |
| 420 |
... |
| 421 |
\begin{document} |
| 422 |
\input{words} |
| 423 |
\end{verbatim} |
| 424 |
} |
| 425 |
\end{minipage} |
| 426 |
\end{quote} |
| 427 |
\end{frame} |
| 428 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 429 |
\begin{frame}[fragile]\vspace*{10mm} |
| 430 |
Now change the command for the backside: |
| 431 |
\begin{quote} |
| 432 |
\begin{minipage}[t]{0.5\textwidth} |
| 433 |
{\scriptsize |
| 434 |
\begin{verbatim} |
| 435 |
\renewcommand{\card}[2]{\ticket{% |
| 436 |
\put(3,30){\parbox{58mm}{\large{\textbf{ #1:}}}}% |
| 437 |
\put(4,23){\parbox[t]{58mm} {\small {\blt #2}}}% |
| 438 |
}} |
| 439 |
\renewcommand{\raiz}[3]{\ticket{% |
| 440 |
\put(3,30){\parbox{58mm}{\textbf{#1:} #2}}% |
| 441 |
\put(3,13){\parbox{58mm}{#3}}% |
| 442 |
}} |
| 443 |
\end{verbatim} |
| 444 |
} |
| 445 |
\end{minipage} |
| 446 |
\end{quote} |
| 447 |
|
| 448 |
Use the special command \code{\bs{}backside}, do some further adjustment for your printer and reread the file: |
| 449 |
\begin{quote} |
| 450 |
\begin{minipage}[t]{0.5\textwidth} |
| 451 |
{\scriptsize |
| 452 |
\begin{verbatim} |
| 453 |
\backside% |
| 454 |
\oddsidemargin=8pt |
| 455 |
\input{words} |
| 456 |
... |
| 457 |
\end{verbatim} |
| 458 |
} |
| 459 |
\end{minipage} |
| 460 |
\end{quote} |
| 461 |
|
| 462 |
If you want to print this on a duplex-printer rearrange the pages with this command for example: |
| 463 |
\begin{quote} |
| 464 |
\begin{minipage}[t]{0.5\textwidth} |
| 465 |
{\scriptsize |
| 466 |
\begin{verbatim} |
| 467 |
psselect -p1,3,2,4 ex_flashcard.ps ex_flashcard_dup.ps ... |
| 468 |
\end{verbatim} |
| 469 |
} |
| 470 |
\end{minipage} |
| 471 |
\end{quote} |
| 472 |
\end{frame} |
| 473 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 474 |
\begin{frame} |
| 475 |
\frametitle{Acknowledgements...} |
| 476 |
\begin{block}{Many thanks} |
| 477 |
to those who used ticket.sty for many years and helped |
| 478 |
to find some small bugs and those who provided ticket-definition-files (tdf) |
| 479 |
and suggestions for new features. |
| 480 |
\end{block} |
| 481 |
|
| 482 |
Many special thanks to Santiago Mejia who created an initial version |
| 483 |
of the flash-card use-case. |
| 484 |
\end{frame} |
| 485 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 486 |
\end{document} |
| 487 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 488 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 489 |
|
| 490 |
% LocalWords: Emmel tdf ticketdefault pdf vcard usepackage documentclass lz |
| 491 |
% LocalWords: LEITZ unitlength hoffset voffset ticketNumbers ticketSize dist |
| 492 |
% LocalWords: ticketDistance renewcommand crossmark circlemark emptycrossmark |
| 493 |
% LocalWords: cutmark newpage ticketreset perl myticket todo Mejia |