diff options
author | Karl Berry <karl@freefriends.org> | 2006-10-18 20:45:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-10-18 20:45:25 +0000 |
commit | ee55a90f4497f62a8b7cf4375ebc8b677d33a882 (patch) | |
tree | 692d8a148d4f37ceccac6a6af31d91aa33ebdf22 /Master/texmf-dist/tex/generic | |
parent | 13a2c5a918f470bb66ade4498a7bde360c331bf0 (diff) |
pst-barcode needs MAKEpst
git-svn-id: svn://tug.org/texlive/trunk@2347 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r-- | Master/texmf-dist/tex/generic/pst-barcode/pst-barcode.tex | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/pst-barcode/pst-barcode.tex b/Master/texmf-dist/tex/generic/pst-barcode/pst-barcode.tex new file mode 100644 index 00000000000..98449a8430c --- /dev/null +++ b/Master/texmf-dist/tex/generic/pst-barcode/pst-barcode.tex @@ -0,0 +1,61 @@ +%% +%% This is file `pst-barcode.tex', +%% +%% IMPORTANT NOTICE: +%% +%% Package `pst-barcode.tex' +%% +%% Terry Burton <tez _at_ terryburton.co.uk> +%% Herbert Voss <voss _at_ perce.de> +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN archives +%% in directory macros/latex/base/lppl.txt. +%% +%% DESCRIPTION: +%% `pst-barcode' is a PSTricks package to draw barcodes, whatelse ... +%% +\csname PSTBarcodeLoaded\endcsname +\let\PSTBarcodeLoaded\endinput +\ifx\PSTricksLoaded\endinput\else\input pstricks.tex\fi +% +\def\fileversion{0.04} +\def\filedate{2006/07/23} +\message{`PST-barcode' v\fileversion, \filedate\space (tb,hv)} +% +\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax +\ifx\PSTXKeyLoaded\endinput\else\input pst-xkey \fi +\pst@addfams{pst-barcode} +\pstheader{pst-barcode.pro} +% +% +\define@key[psset]{pst-barcode}{transx}{% + \pst@getlength{#1}\psk@barcode@transx} +\define@key[psset]{pst-barcode}{transy}{% + \pst@getlength{#1}\psk@barcode@transy} +\define@key[psset]{pst-barcode}{scalex}{\def\psk@barcode@scalex{#1}} +\define@key[psset]{pst-barcode}{scaley}{\def\psk@barcode@scaley{#1}} +\define@key[psset]{pst-barcode}{rotate}{% + \pst@getangle{#1}\psk@barcode@rotate} +\psset[pst-barcode]{transx=0,transy=0,scalex=1,scaley=1,rotate=0} +% +\def\psbarcode{\pst@object{psbarcode}} +\def\psbarcode@i#1#2#3{% + \begin@SpecialObj + \addto@pscode{ + gsave + \psk@barcode@rotate\space + \psk@barcode@scalex\space \psk@barcode@scaley\space + \psk@barcode@transx\space \psk@barcode@transy\space + translate scale rotate + 0 0 moveto (#1) (#2) #3\space barcode + grestore + }% + \end@SpecialObj% + \ignorespaces% +} +% +\catcode`\@=\PstAtCode\relax +% +%% END: pst-barcode.tex +\endinput |