summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ticket
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-10-06 23:35:29 +0000
committerKarl Berry <karl@freefriends.org>2006-10-06 23:35:29 +0000
commitd3042188ecd8fc8fab8e6ede6b3c4a8ba306fb96 (patch)
treedb96a89b9e118cfd18719864ee66aa093eb5e321 /Master/texmf-dist/tex/latex/ticket
parent63a0497a74fbe02f2bd1f6b62c68f44a4d8d99c5 (diff)
ticket update (31jan06)
git-svn-id: svn://tug.org/texlive/trunk@2257 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ticket')
-rw-r--r--Master/texmf-dist/tex/latex/ticket/dura5222.tdf14
-rw-r--r--Master/texmf-dist/tex/latex/ticket/flashCard.tdf11
-rw-r--r--Master/texmf-dist/tex/latex/ticket/freepin2.tdf12
-rw-r--r--Master/texmf-dist/tex/latex/ticket/freepin3.tdf12
-rw-r--r--Master/texmf-dist/tex/latex/ticket/lz1680.tdf4
-rw-r--r--Master/texmf-dist/tex/latex/ticket/lz1685.tdf15
-rw-r--r--Master/texmf-dist/tex/latex/ticket/ticket.sty133
-rw-r--r--Master/texmf-dist/tex/latex/ticket/zw3424.tdf15
8 files changed, 179 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/ticket/dura5222.tdf b/Master/texmf-dist/tex/latex/ticket/dura5222.tdf
new file mode 100644
index 00000000000..e8e4f103bcc
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/dura5222.tdf
@@ -0,0 +1,14 @@
+%%
+%% ticket for "Durable 5222"
+%% CD/DVD pocket A4
+%%
+\unitlength=1mm
+
+\hoffset= 7.6mm
+\voffset=-3.5mm
+
+\ticketNumbers{2}{2}
+
+\ticketSize{67.7}{125} % in unitlength
+\ticketDistance{0}{0} %in unitlength
+
diff --git a/Master/texmf-dist/tex/latex/ticket/flashCard.tdf b/Master/texmf-dist/tex/latex/ticket/flashCard.tdf
new file mode 100644
index 00000000000..720df243360
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/flashCard.tdf
@@ -0,0 +1,11 @@
+%%
+%% free ticket for flashcards (GRE).
+%%
+\unitlength=1mm
+\hoffset=-22mm
+\voffset=-25mm
+
+\ticketNumbers{3}{8}
+
+\ticketSize{65}{35} % in unitlength
+\ticketDistance{2.5}{1.5} % in unitlength
diff --git a/Master/texmf-dist/tex/latex/ticket/freepin2.tdf b/Master/texmf-dist/tex/latex/ticket/freepin2.tdf
new file mode 100644
index 00000000000..2610cff64b6
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/freepin2.tdf
@@ -0,0 +1,12 @@
+%%
+%% free ticket for pins etc.
+%%
+\unitlength=1mm
+\hoffset=-10mm
+\voffset=-15mm
+
+\ticketNumbers{2}{7}
+
+\ticketSize{75}{39} % in unitlength
+\ticketDistance{20}{0} %in unitlength
+
diff --git a/Master/texmf-dist/tex/latex/ticket/freepin3.tdf b/Master/texmf-dist/tex/latex/ticket/freepin3.tdf
new file mode 100644
index 00000000000..40d65d9488f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/freepin3.tdf
@@ -0,0 +1,12 @@
+%%
+%% free ticket for pins etc.
+%%
+\unitlength=1mm
+\hoffset=-10mm
+\voffset=-15mm
+
+\ticketNumbers{4}{8}
+
+\ticketSize{35}{30} % in unitlength
+\ticketDistance{5}{5} %in unitlength
+
diff --git a/Master/texmf-dist/tex/latex/ticket/lz1680.tdf b/Master/texmf-dist/tex/latex/ticket/lz1680.tdf
index 5007354f530..a592783b4ec 100644
--- a/Master/texmf-dist/tex/latex/ticket/lz1680.tdf
+++ b/Master/texmf-dist/tex/latex/ticket/lz1680.tdf
@@ -10,6 +10,6 @@
\ticketNumbers{1}{4}
-\ticketSize{189}{56.5} % in unitlength
-\ticketDistance{0}{9.8} %in unitlength
+\ticketSize{189.2}{56.3} % in unitlength
+\ticketDistance{0}{9.7} %in unitlength
diff --git a/Master/texmf-dist/tex/latex/ticket/lz1685.tdf b/Master/texmf-dist/tex/latex/ticket/lz1685.tdf
new file mode 100644
index 00000000000..d7097c35eb0
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/lz1685.tdf
@@ -0,0 +1,15 @@
+%%
+%% ticket for "Leitz 1685"
+%% pre-cutted label for wide files
+%%
+\unitlength=1mm
+
+%% tested for an HPLaserjet II, adjust for your printer
+\hoffset=-19.2mm
+\voffset=-8.6mm
+
+\ticketNumbers{1}{4}
+
+\ticketSize{191.2}{61.5} % in unitlength
+\ticketDistance{0}{8} %in unitlength
+
diff --git a/Master/texmf-dist/tex/latex/ticket/ticket.sty b/Master/texmf-dist/tex/latex/ticket/ticket.sty
index 36bed4738ce..507ac40ee23 100644
--- a/Master/texmf-dist/tex/latex/ticket/ticket.sty
+++ b/Master/texmf-dist/tex/latex/ticket/ticket.sty
@@ -2,8 +2,8 @@
%%
%% This is file `ticket.sty',
%%
-%% File: ticket.sty Copyright (c) 1999,2000, Thomas Emmel
-%% <emmel@mechanik.tu-darmstadt.de>
+%% File: ticket.sty Copyright (c) 1999,2000,2005 Thomas Emmel
+%% <thomas@family-emmel.de>
%%
%%
% This package may be distributed and/or modified under the
@@ -25,21 +25,36 @@
% v0.3a checking for an old calc-package
% v0.3b use internal values if tdf-file is not specified
% v0.3c \ticketreset added.
-
-\def\fileversion{v0.3c}
-\def\filedate{2000/10/10}
+% v0.3d added option emptycrossmark as provided by
+% Rafal Bielski <rafal dot bielski at dhl dot com>
+% Similar option was provided by
+% Ivan Lloro Boada <antispam at wanadoo dot es>
+%
+% v0.4a added the flashcard-style invented by
+% Santiago Mejia <san_tico at yahoo dot com>
+%
+% Many thanks for all contributions
+%
+%
+\def\fileversion{v0.4a}
+\def\filedate{2006/01/30}
\ProvidesPackage{ticket}[\filedate\space\fileversion]
\typeout{Package: `ticket' \fileversion\space <\filedate> (Thomas Emmel)}
-\newif\if@crossmark \@crossmarkfalse
-\newif\if@circlemark \@circlemarkfalse
-\newif\if@boxed \@boxedfalse
-\newif\if@extern \@externfalse
+\newif\if@crossmark \@crossmarkfalse
+\newif\if@circlemark \@circlemarkfalse
+\newif\if@emptycrossmark \@emptycrossmarkfalse
+\newif\if@cutmark \@cutmarkfalse
+\newif\if@boxed \@boxedfalse
+\newif\if@extern \@externfalse
+\newif\if@backside \@backsidefalse
\DeclareOption{boxed}{\@boxedtrue}
\DeclareOption{crossmark}{\@crossmarktrue}
\DeclareOption{circlemark}{\@circlemarktrue}
+\DeclareOption{emptycrossmark}{\@emptycrossmarktrue}
+\DeclareOption{cutmark}{\@cutmarktrue}
\DeclareOption*{\edef\ticketToUse{\CurrentOption.tdf}\@externtrue}%
@@ -63,6 +78,7 @@
\headheight=0pt
\headsep=0pt
\oddsidemargin=0pt
+\evensidemargin=0pt
\footskip=0pt
\voffset=0pt
\hoffset=0pt
@@ -81,7 +97,6 @@
\def\ticketNumbers#1#2{\setcounter{ticket@num@X}{#1}%
\setcounter{ticket@num@Y}{#2}}
-
%
\newdimen\ticketWidth% width of a ticket
@@ -115,10 +130,27 @@
%% temporary length
\newdimen\ticket@shift@x
\newdimen\ticket@shift@y
-
-\def\ticketreset{\setcounter{ticket@x}{1}\setcounter{ticket@y}{1}%
- \setlength{\ticket@shift@y}{0pt}%
- \setlength{\ticket@shift@x}{0pt}}
+\newdimen\back@shift
+
+\setlength{\back@shift}{(\ticketWidth+\ticket@dis@X)*(\theticket@num@X-1)}%
+
+%% a restart
+\def\ticketreset{%
+ \if@backside%
+ \setcounter{ticket@x}{1}\setcounter{ticket@y}{1}%
+ \setlength{\ticket@shift@y}{0pt}%
+ \setlength{\ticket@shift@x}{\back@shift}%
+ \else%
+ \setcounter{ticket@x}{1}\setcounter{ticket@y}{1}%
+ \setlength{\ticket@shift@y}{0pt}%
+ \setlength{\ticket@shift@x}{0pt}%
+ \fi}
+
+%% backsides should be handled different for flashcards
+\def\backside{%
+ \@backsidetrue%
+ \ticketreset%
+ \clearpage}%
% the heart: a "counter"
\newcommand{\ticket@counter}{%
@@ -129,58 +161,89 @@
{\stepcounter{ticket@x}\\[-\baselineskip]}%
{\setcounter{ticket@x}{1}\setcounter{ticket@y}{1}\newpage}}%
\setlength{\ticket@shift@y}{(\ticketHeight+\ticket@dis@Y)*(\theticket@y-1)}%
- \setlength{\ticket@shift@x}{(\ticketWidth+\ticket@dis@X)*(\theticket@x-1)}%
- }%
+ \if@backside%
+ \setlength{\ticket@shift@x}{\back@shift-(\ticketWidth+\ticket@dis@X)*(\theticket@x-1)}%
+ \else%
+ \setlength{\ticket@shift@x}{(\ticketWidth+\ticket@dis@X)*(\theticket@x-1)}%
+ \fi}%
% default content...
% users should renew this command
\newcommand{\ticketdefault}{%
%
-\put( 5, 5){Ticket....}
-}
+\put( 5, 5){Ticket....}%
+}%
% the main command: \ticket
% users should define a command like \myticket to get more than one parameter
\newcommand{\ticket}[1]{%
% position global
+\noindent%
\raisebox{-\ticket@shift@y}[0mm][0mm]{%
\raisebox{-\ticketHeight}[0mm][0mm]{%
\hspace*{\ticket@shift@x}%
%
% open a picture of zero size and place some crosses
\begin{picture}(0,0)%
-\if@crossmark
+\if@crossmark%
\put(0,0){\ticket@cross}%
\put(0,\ticket@size@Y){\ticket@cross}%
\put(\ticket@size@X,0){\ticket@cross}%
\put(\ticket@size@X,\ticket@size@Y){\ticket@cross}%
-\fi
-\if@circlemark
+\fi%
+\if@circlemark%
\put(0,0){\circle{1}}%
\put(0,\ticket@size@Y){\circle{1}}%
\put(\ticket@size@X,0){\circle{1}}%
\put(\ticket@size@X,\ticket@size@Y){\circle{1}}%
-\fi
-\if@boxed
- \put(0,0){\line(1,0){\ticket@size@X}}
- \put(0,0){\line(0,1){\ticket@size@Y}}
- \put(\ticket@size@X,\ticket@size@Y){\line(-1,0){\ticket@size@X}}
- \put(\ticket@size@X,\ticket@size@Y){\line(0,-1){\ticket@size@Y}}
-\fi
+\fi%
+\if@boxed%
+ \put(0,0){\line(1,0){\ticket@size@X}}%
+ \put(0,0){\line(0,1){\ticket@size@Y}}%
+ \put(\ticket@size@X,\ticket@size@Y){\line(-1,0){\ticket@size@X}}%
+ \put(\ticket@size@X,\ticket@size@Y){\line(0,-1){\ticket@size@Y}}%
+\fi%
+\if@emptycrossmark%
+ \put(0,0){\begin{picture}(0,0)%
+ \put(-1,0){\line(-1,0){1}}%
+ \put(0,-1){\line(0,-1){1}}\end{picture}}%
+ \put(0,\ticket@size@Y){\begin{picture}(0,0)%
+ \put(-1,0){\line(-1,0){1}}%
+ \put(0,1){\line(0,1){1}}\end{picture}}%
+ \put(\ticket@size@X,0){\begin{picture}(0,0)%
+ \put(1,0){\line(1,0){1}}%
+ \put(0,-1){\line(0,-1){1}}\end{picture}}%
+ \put(\ticket@size@X,\ticket@size@Y){\begin{picture}(0,0)%
+ \put(1,0){\line(1,0){1}}%
+ \put(0,1){\line(0,1){1}}\end{picture}}%
+\fi%
+\if@cutmark%
+ \ifthenelse{\value{ticket@x}=1}%
+ {\put(-1,0){\line(-1,0){1}}\put(-1,\ticket@size@Y){\line(-1,0){1}}}{}%
+ \ifthenelse{\value{ticket@y}=1}%
+ {\put(0,\ticket@size@Y){\begin{picture}(0,0)%
+ \put(0,1){\line(0,1){1}}\end{picture}}%
+ \put(\ticket@size@X,\ticket@size@Y){\begin{picture}(0,0)%
+ \put(0,1){\line(0,1){1}}\end{picture}}}{}%
+ \ifthenelse{\value{ticket@x}=\value{ticket@num@X}}%
+ {\put(\ticket@size@X,0){\begin{picture}(0,0)%
+ \put(1,0){\line(1,0){1}}\end{picture}}%
+ \put(\ticket@size@X,\ticket@size@Y){\begin{picture}(0,0)%
+ \put(1,0){\line(1,0){1}}\end{picture}}}{}%
+ \ifthenelse{\value{ticket@y}=\value{ticket@num@Y}}%
+ {\put(0,-1){\line(0,-1){1}}\put(\ticket@size@X,-1){\line(0,-1){1}}}{}%
+\fi%
% put the default content into the ticket
\ticketdefault%
% put the variable content into the ticket
#1%
-\end{picture}}}\ticket@counter}
-
+\end{picture}}}\ticket@counter}%
+%
\def\ticket@cross{%
\begin{picture}(0,0)%
\put(-1,0){\line(1,0){2}}\put(0,-1){\line(0,1){2}}%
- \end{picture}}
-
-
-
-
+ \end{picture}}%
+%
\endinput
diff --git a/Master/texmf-dist/tex/latex/ticket/zw3424.tdf b/Master/texmf-dist/tex/latex/ticket/zw3424.tdf
new file mode 100644
index 00000000000..2e1b2560a5a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/zw3424.tdf
@@ -0,0 +1,15 @@
+%%
+%% ticket for "Zweckform 3424"
+%% address labels
+%%
+\unitlength=1mm
+
+%% tested for an HP5SiMX, adjust for your printer
+\hoffset=-1in
+\voffset=-1in
+
+\ticketNumbers{2}{6}
+
+\ticketSize{105}{48} % in unitlength
+\ticketDistance{0}{0} %in unitlength
+