summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:09:08 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:09:08 +0000
commit43d20e0b5552eb99d52f1fccf0fe955c4d8e7bf0 (patch)
tree1838daafc77856fe39b8b05c7a8fffd02202cef4
parentde8bd9678de18160b90c38fd45d44c597c1366d7 (diff)
ticket
git-svn-id: svn://tug.org/texlive/trunk@1387 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/tex/latex/ticket/aj8414.tdf12
-rw-r--r--Master/texmf-dist/tex/latex/ticket/freepin.tdf12
-rw-r--r--Master/texmf-dist/tex/latex/ticket/he4432.tdf15
-rw-r--r--Master/texmf-dist/tex/latex/ticket/lz1680.tdf15
-rw-r--r--Master/texmf-dist/tex/latex/ticket/lz1681.tdf15
-rw-r--r--Master/texmf-dist/tex/latex/ticket/ticket.sty186
-rw-r--r--Master/texmf-dist/tex/latex/ticket/zw32010.tdf15
-rw-r--r--Master/texmf-dist/tex/latex/ticket/zw4752.tdf15
8 files changed, 285 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ticket/aj8414.tdf b/Master/texmf-dist/tex/latex/ticket/aj8414.tdf
new file mode 100644
index 00000000000..3442767e463
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/aj8414.tdf
@@ -0,0 +1,12 @@
+%%
+%% ticket for "AVERY J8414"
+%% pre-cutted label for visit card
+%%
+\unitlength=1mm
+
+\hoffset=-9mm
+\voffset=-7mm
+
+\ticketNumbers{2}{5}
+\ticketSize{87}{50.8} % in unitlength
+\ticketDistance{6}{0} %in unitlength
diff --git a/Master/texmf-dist/tex/latex/ticket/freepin.tdf b/Master/texmf-dist/tex/latex/ticket/freepin.tdf
new file mode 100644
index 00000000000..5b23fe34433
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/freepin.tdf
@@ -0,0 +1,12 @@
+%%
+%% free ticket for pins etc.
+%%
+\unitlength=1mm
+\hoffset=-10mm
+\voffset=-10mm
+
+\ticketNumbers{2}{5}
+
+\ticketSize{70}{50.8} % in unitlength
+\ticketDistance{20}{0} %in unitlength
+
diff --git a/Master/texmf-dist/tex/latex/ticket/he4432.tdf b/Master/texmf-dist/tex/latex/ticket/he4432.tdf
new file mode 100644
index 00000000000..cea727db592
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/he4432.tdf
@@ -0,0 +1,15 @@
+%%
+%% ticket for "Herma 4432"
+%% sticky labels for different use
+%%
+\unitlength=1mm
+
+%% tested for an HP5SiMX, adjust for your printer
+\hoffset=-16.7mm
+\voffset=-19.4mm
+
+\ticketNumbers{2}{6}
+
+\ticketSize{94}{46.5} % in unitlength
+\ticketDistance{3.4}{0} %in unitlength
+
diff --git a/Master/texmf-dist/tex/latex/ticket/lz1680.tdf b/Master/texmf-dist/tex/latex/ticket/lz1680.tdf
new file mode 100644
index 00000000000..5007354f530
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/lz1680.tdf
@@ -0,0 +1,15 @@
+%%
+%% ticket for "Leitz 1680"
+%% pre-cutted label for wide files
+%%
+\unitlength=1mm
+
+%% tested for an HP5SiMX, adjust for your printer
+\hoffset=-16.2mm
+\voffset=-6.6mm
+
+\ticketNumbers{1}{4}
+
+\ticketSize{189}{56.5} % in unitlength
+\ticketDistance{0}{9.8} %in unitlength
+
diff --git a/Master/texmf-dist/tex/latex/ticket/lz1681.tdf b/Master/texmf-dist/tex/latex/ticket/lz1681.tdf
new file mode 100644
index 00000000000..66c1cee84b4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/lz1681.tdf
@@ -0,0 +1,15 @@
+%%
+%% ticket for "Leitz 1681"
+%% pre-cutted label for small files
+%%
+\unitlength=1mm
+
+%% tested for an HP5SiMX, adjust for your printer
+\hoffset=-16.2mm
+\voffset=-12.2mm
+
+\ticketNumbers{1}{7}
+
+\ticketSize{189}{31} % 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
new file mode 100644
index 00000000000..36bed4738ce
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/ticket.sty
@@ -0,0 +1,186 @@
+%%
+%%
+%% This is file `ticket.sty',
+%%
+%% File: ticket.sty Copyright (c) 1999,2000, Thomas Emmel
+%% <emmel@mechanik.tu-darmstadt.de>
+%%
+%%
+% This package may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.2
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.2 or later is part of all distributions of LaTeX
+% version 1999/12/01 or later.
+%
+% This package consists of the file ticket.sty
+%%
+% HISTORY:
+%
+% v0.1a-0.1d non-official implementations
+%
+% v0.2 fixing some minor bugs and add examples
+%
+% 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}
+
+\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
+
+\DeclareOption{boxed}{\@boxedtrue}
+\DeclareOption{crossmark}{\@crossmarktrue}
+\DeclareOption{circlemark}{\@circlemarktrue}
+
+\DeclareOption*{\edef\ticketToUse{\CurrentOption.tdf}\@externtrue}%
+
+\ProcessOptions
+%
+\RequirePackage{ifthen}
+\RequirePackage{calc}
+% older calc packages have a small bug
+\@ifpackagelater{calc}{1998/07/06}%
+ {% Yes. OK!
+ }
+ {% No.
+ \PackageWarning{ticket}
+ {Package calc too old (older than v4.1b).}%
+ }%
+
+\pagestyle{empty}
+
+% standard definitions
+\topmargin=0pt
+\headheight=0pt
+\headsep=0pt
+\oddsidemargin=0pt
+\footskip=0pt
+\voffset=0pt
+\hoffset=0pt
+\unitlength=1mm
+
+%
+\newcounter{ticket@x}
+\newcounter{ticket@y}
+\setcounter{ticket@x}{1}
+\setcounter{ticket@y}{1}
+
+\newcounter{ticket@num@X}% Number of tickets in horizontal direction
+\newcounter{ticket@num@Y}% Number of tickets in vertical direction
+\setcounter{ticket@num@X}{2}% default value
+\setcounter{ticket@num@Y}{3}% default value
+
+\def\ticketNumbers#1#2{\setcounter{ticket@num@X}{#1}%
+ \setcounter{ticket@num@Y}{#2}}
+
+%
+
+\newdimen\ticketWidth% width of a ticket
+\newdimen\ticketHeight% height of a ticket
+
+\newdimen\ticket@dis@X% horizontal space between tickets
+\newdimen\ticket@dis@Y% vertical space between tickets
+\ticket@dis@X=0mm% default value
+\ticket@dis@Y=0mm% default value
+
+\def\ticketSize#1#2{\gdef\ticket@size@X{#1}\ticketWidth=#1\unitlength%
+ \gdef\ticket@size@Y{#2}\ticketHeight=#2\unitlength}
+
+\def\ticketDistance#1#2{\ticket@dis@X=#1\unitlength%
+ \ticket@dis@Y=#2\unitlength}
+
+%% now load ticket definitions from file
+\if@extern
+\InputIfFileExists{\ticketToUse}
+ {\typeout{load \ticketToUse}}
+ {\errmessage{\ticketToUse\space not found! Please use another file}}
+\else
+ \unitlength=1mm
+ \hoffset=0mm
+ \voffset=0mm
+ \ticketNumbers{2}{2}
+ \ticketSize{50}{20}
+ \ticketDistance{5}{10}
+\fi
+
+%% 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}}
+
+% the heart: a "counter"
+\newcommand{\ticket@counter}{%
+ \ifthenelse{\value{ticket@y}<\value{ticket@num@Y}}%
+ {\stepcounter{ticket@y}\\[-\baselineskip]}%
+ {\setcounter{ticket@y}{1}%
+ \ifthenelse{\value{ticket@x}<\value{ticket@num@X}}%
+ {\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)}%
+ }%
+
+% default content...
+% users should renew this command
+\newcommand{\ticketdefault}{%
+%
+\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
+\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
+ \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
+ \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
+% put the default content into the ticket
+\ticketdefault%
+% put the variable content into the ticket
+#1%
+\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}}
+
+
+
+
+\endinput
+
+
diff --git a/Master/texmf-dist/tex/latex/ticket/zw32010.tdf b/Master/texmf-dist/tex/latex/ticket/zw32010.tdf
new file mode 100644
index 00000000000..564de7ede30
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/zw32010.tdf
@@ -0,0 +1,15 @@
+%%
+%% ticket for "Zweckform 32010"
+%% pre-cutted visiting cards
+%%
+\unitlength=1mm
+
+%% tested for an HP5SiMX, adjust for your printer
+\hoffset=-14.3mm
+\voffset=-9.2mm
+
+\ticketNumbers{2}{5}
+
+\ticketSize{85}{54} % in unitlength
+\ticketDistance{9.8}{0} %in unitlength
+
diff --git a/Master/texmf-dist/tex/latex/ticket/zw4752.tdf b/Master/texmf-dist/tex/latex/ticket/zw4752.tdf
new file mode 100644
index 00000000000..9b866c83431
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ticket/zw4752.tdf
@@ -0,0 +1,15 @@
+%%
+%% ticket for "Zweckform 4752"
+%% long sticky label for wide files
+%%
+\unitlength=1mm
+
+%% tested for an HP5SiMX, adjust for your printer
+\hoffset=-12.5mm
+\voffset=-1in
+
+\ticketNumbers{3}{1}
+
+\ticketSize{60.8}{297} % in unitlength
+\ticketDistance{0}{0} %in unitlength
+