From 050c38a72286bd2086d5aa5fbc2ea4f59459917b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 28 Aug 2009 00:18:48 +0000 Subject: pst-barcode 0.07 git-svn-id: svn://tug.org/texlive/trunk@14898 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pst-barcode/Changes | 3 +- Master/texmf-dist/doc/generic/pst-barcode/README | 2 +- .../doc/generic/pst-barcode/pst-barcode-doc.bib | 153 +++++++-- .../doc/generic/pst-barcode/pst-barcode-doc.pdf | Bin 256484 -> 228146 bytes .../doc/generic/pst-barcode/pst-barcode-doc.tex | 358 +++++++++++++++------ .../texmf-dist/source/generic/pst-barcode/Makefile | 3 +- .../tex/latex/pst-barcode/pst-barcode.sty | 5 +- 7 files changed, 406 insertions(+), 118 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/generic/pst-barcode/Changes b/Master/texmf-dist/doc/generic/pst-barcode/Changes index d98d9b4be6c..c7d8f012ea8 100644 --- a/Master/texmf-dist/doc/generic/pst-barcode/Changes +++ b/Master/texmf-dist/doc/generic/pst-barcode/Changes @@ -13,7 +13,8 @@ ----- pst-barcode.pro -2009-08-06 - Added sport for several 2D matrix codes +2009-08-13 - Added support for pdf417 +2009-08-06 - Added support for several 2D matrix codes 2007-07-10 - Added QR code, Aztex code. 2007-05-22 - Added parsable example options field to each encoder. - An encoder for the Pharmaceutical Binary Code symbology was added. diff --git a/Master/texmf-dist/doc/generic/pst-barcode/README b/Master/texmf-dist/doc/generic/pst-barcode/README index 8e3d83f73ad..e6c071eb168 100644 --- a/Master/texmf-dist/doc/generic/pst-barcode/README +++ b/Master/texmf-dist/doc/generic/pst-barcode/README @@ -6,5 +6,5 @@ local TeX tree. pst-barcode.pro should be saved in ../texmf/dvips/pstricks/ Then do not forget to run texhash to update this tree. pst-barcode needs pstricks, which should be part of your local TeX installation, otherwise get it from a CTAN server, f.ex. -http://www.dante.de/CTAN/graphics/pstricks/ +http://mirror.ctan.org/graphics/pstricks/ diff --git a/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.bib b/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.bib index 1bc5afd844c..cb8f1f164c5 100644 --- a/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.bib +++ b/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.bib @@ -14,18 +14,112 @@ @STRING{theaterkasse = {Von der Theaterkasse} } @STRING{theatertage = {{\TeX}-Theatertage} } -@Book{companion, - author = {Michel Goosens and Frank Mittelbach and Alexander - Samarin}, +@Book{PSTricks2, + author = {Herbert Vo\ss}, + title = {{\PST} {G}rafik f\"ur \TeX{} und \LaTeX}, + edition = {fifth}, + publisher = {DANTE -- Lob.media}, + year = {2008}, + address = {Heidelberg/Hamburg} +} + +@Book{companion04, + author = {Frank Mittelbach and Michel Goosens et al}, + title = {The {\LaTeX} {C}ompanion}, + edition = {second}, + publisher = {Addison-Wesley Publishing Company}, + year = {2004}, + address = {Boston} +} + +@Book{begleiter05, + author = {Frank Mittelbach and Michel Goosens et al}, + title = {Der {\LaTeX} {B}egleiter}, + edition = {zweite}, + publisher = {Pearson Education}, + year = {2005}, + address = {M\"unchen} +} + +@Book{unbound, + author = {Alan Hoenig}, + title = {\TeX{} {U}nbound: \LaTeX{} \& \TeX{} {S}trategies, {F}onts, {G}raphics, and {M}ore}, + publisher = {Oxford University Press}, + year = {1998}, + address = {London} +} +@Article{ dtk02.2:jackson.voss:plot-funktionen, + author = {Laura E. Jackson and Herbert Vo{\ss}}, + title = {Die Plot-Funktionen von {\texttt{pst-plot}}}, + journal = dtk, + year = 2002, + volume = {2/02}, + altvolume = 2, + altnumber = 14, + month = jun, + pages = {27--34}, + annote = bretter, + keywords = {}, + abstract = { Im letzten Heft wurden die mathematischen Funktionen von + \PS~im Zusammenhang mit dem {\LaTeX}-Paket + \texttt{pst-plot} zum Zeichnen von Funktionen beschrieben + und durch Beispiele erl{\"a}utert. In diesem Teil werden + die bislang nur erw{\"a}hnten Plot-Funktionen f{\"u}r + externe Daten behandelt. } +} + +@Article{ dtk02.1:voss:mathematischen, + author = {Herbert Vo{\ss}}, + title = {Die mathematischen {F}unktionen von {P}ost{S}cript}, + journal = dtk, + year = 2002, + volume = {1/02}, + altvolume = 1, + altnumber = 14, + month = mar, + pages = {}, + annote = bretter, + keywords = {}, + abstract = { \PS, faktisch genauso alt wie {\TeX}, ist im + Verh{\"a}ltnis dazu allgemein noch weniger bekannt, wenn es + darum geht zu beurteilen, was es denn nun im eigentlichen + Sinne ist. Au{\ss}erdem wird h{\"a}ufig vergessen, dass + sich mit den \PS-Funktionen viele Dinge erledigen lassen, + bei denen sonst auf externe Programme zur{\"u}ckgegriffen + wird. Dies wird im Folgenden f{\"u}r die mathematischen + Funktionen im Zusammenhang mit dem Paket \texttt{pst-plot} + gezeigt. } +} + +@Book{tlgc2, + author = {Michel Goosens and Frank Mittelbach and Sebastian Rahtz and Denis Roegel and Herbert Vo{\ss}}, title = {The {\LaTeX} {G}raphics {C}ompanion}, publisher = {{Addison-Wesley Publishing Company}}, - year = {2004}, - edition = {2.}, + edition = second, + year = {2007}, address = {Reading, Mass.} } +@Book{voss:chaos, + author = {Herbert Vo{\ss}}, + title = {Chaos und {F}raktale selbst programmieren: von {M}andelbrotmengen {\"u}ber {F}arbmanipulationen zur perfekten Darstellung}, + publisher = {{Franzis Verlag}}, + year = {1994}, + address = {Poing} +} + +@Article{girou:01:, + author = {Denis Girou}, + title = {Pr\'esentation de {PST}ricks}, + journal = {Cahier {GUT}enberg}, + year = 1994, + volume = {16}, + month = apr, + pages = {21-70} +} + @Article{girou:02:, - author = {{Timothy van} Zandt and Denis Girou}, + author = {{Timothy Van} Zandt and Denis Girou}, title = {Inside {PST}ricks}, journal = TUGboat, year = 1994, @@ -36,7 +130,7 @@ @Book{PostScript, Author = {Kollock, Nikolai G.}, - Title = {Post{S}cript richtig eingesetzt: vom {K}onzept zum + Title = {PostScript richtig eingesetzt: vom {K}onzept zum praktischen {E}insatz}, Publisher = {IWT}, Address = {Vaterstetten}, @@ -45,26 +139,43 @@ @Manual{pstricks, Title = {PSTricks - {\PS} macros for generic {\TeX}}, - Author = {{Timothy van} Zandt}, + Author = {{Timothy Van} Zandt}, Organization = {}, Address = {\url{http://www.tug.org/application/PSTricks}}, Note = {}, year = 1993 } -@Book{PSTricks2, - author = {Herbert Vo\ss}, - title = {\texttt{PSTricks} -- {G}rafik f\"ur \TeX{} und \LaTeX}, - edition = {4.}, - publisher = {DANTE -- Lehmanns}, - year = {2007}, - address = {Heidelberg/Hamburg} +@Manual{pst-plot, + Title = {\texttt{pst-plot}: Plotting two dimensional functions and data}, + Author = {{Timothy Van} Zandt}, + Organization = {}, + Address = {\url{CTAN:graphics/pstricks/generic/pst-plot.tex}}, + Note = {}, + year = 1999 } -@Book{voss:math, - author = {Herbert Vo\ss}, - title = {\LaTeX\ in {M}athematik und {N}aturwissenschaften}, - publisher = {{Franzis-Verlag}}, - year = {2006}, - address = {Poing} +@Manual{multido, + Title = {\texttt{multido.tex} - a loop macro, that supports fixed-point addition}, + Author = {{Timothy Van} Zandt}, + Organization = {}, + Address = {\url{CTAN:/graphics/pstricks/generic/multido.tex}}, + Note = {}, + year = 1997 +} + +@MISC{xkeyval, + author = {Hendri Adriaens}, + title = {xkeyval package}, + howpublished = {\url{CTAN:/macros/latex/contrib/xkeyval}}, + year = 2004 +} + +@book{voss06, + Title = {Mathematiksatz in \LaTeX{}}, + Author = {Herbert Vo\ss}, + Publisher = {Lehmanns Media/DANTE}, + Edition= {first}, + Address= {Berlin/Heidelberg}, + Year= {2009}, } diff --git a/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf b/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf index 5585da25fd0..68c4e233836 100644 Binary files a/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf and b/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf differ diff --git a/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex b/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex index 0781c0240ca..4c83feb1440 100644 --- a/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex @@ -1,64 +1,69 @@ -\documentclass{article} -\usepackage{pstricks,tabularx,paralist} -\usepackage{showexpl} -\lstset{wide,preset=\raggedright} +%% $Id: pst-bezier-doc.tex 104 2009-03-04 16:06:54Z herbert $ +\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings + headexclude,footexclude,oneside]{pst-doc} +\usepackage[utf8]{inputenc} \usepackage{pst-barcode} -\let\PSTfileversion\fileversion -\usepackage[ps2pdf,colorlinks,linktocpage]{hyperref} -\usepackage{breakurl} -\def\CMD#1{\texttt{\textbackslash #1}} -\def\PS{PostScript} - -\title{Package \texttt{pst-barcode}\\ -\footnotesize v. \PSTfileversion} -\author{Terry Burton\thanks{\protect\url{tez@terryburton.co.uk}} - \and Herbert Vo\ss\thanks{\protect\url{hvoss@tug.org}}} -\date{\today} -\begin{document} -\maketitle - - -\begin{center} -\begin{tabular}{@{}>{\ttfamily}lll@{}} -\textrm{\emph{file name}} & \emph{meaning} & \emph{version}\\\hline -pst-barcode.sty & \LaTeX\ style file -- wrapper & 2006-07-23\\ -pst-barcode.tex & \TeX\ file -- PS interface & 2006-07-23\\ -pst-barcode.pro & PostScript file & 2008-01-15\\ -pst-barcode-doc.tex & documentation source & 2007-05-22\\ -pst-barcode-doc.pdf & documentation PDF & 2007-05-22\\ -pst-barcode-doc.bib & Bibliography file & 2007-05-22 -\end{tabular} -\end{center} +\let\pstBarcodeFV\fileversion +\lstset{pos=l,wide=false,language=PSTricks, + morekeywords={multidipole,parallel},basicstyle=\footnotesize\ttfamily} +% +\def\bgImage{\begin{pspicture}(1in,1in) +%\psbarcode{Herbert Voss Freie Universitaet Berlin}{rows=52 columns=52}{datamatrix} +\end{pspicture}} +\begin{document} +\title{\texttt{pst-barcode}} +\subtitle{A PSTricks package for drawing bar codes; v.\pstBarcodeFV} +\author{Terry Burton \\Herbert Vo\ss} +\docauthor{Herbert Vo\ss} +\date{\today} +\maketitle -\clearpage \tableofcontents \clearpage + +\iffalse +\begin{abstract} +\noindent +The \LPack{pstricks} package provides (essentially) one macro +for printing barcodes. The type of the code is defined by a parameter +and passed to postscript. + +%\vfill\noindent +%Thanks to: \\ +% Jean-C\^ome Charpentier. +\end{abstract} +\fi + \section{Introduction} +The \LPack{pstricks} package provides (essentially) one macro +for printing barcodes. The type of the code is defined by a parameter +and passed to postscript. To install the package put the three files in a place, where \TeX{} will search for the files: \bigskip\noindent -\begin{tabular}{@{}ll@{}} -\emph{name} & \emph{target dir} \\\hline -\verb+pst-barcode.tex+ & \verb+$LOCALTEXMF/tex/generic/pstricks/+\\ -\verb+pst-barcode.sty+ & \verb+$LOCALTEXMF/tex/latex/pstricks/+\\ -\verb+pst-barcode.pro+ & \verb+$LOCALTEXMF/dvips/pstricks/+ \\ -\verb+barcode.tex+ & \verb+$LOCALTEXMF/doc/pstricks/+\\ -\verb+barcode.pdf+ & \verb+$LOCALTEXMF/doc/pstricks/+ %$ +\begin{tabular}{@{} l l l @{}} +\emph{name} & \emph{meaning}& \emph{target dir} \\\hline +\verb+pst-barcode.tex+ & \LaTeX\ style file -- wrapper & \verb+$LOCALTEXMF/tex/generic/pstricks/+\\ +\verb+pst-barcode.sty+ & \TeX\ file -- PS interface &\verb+$LOCALTEXMF/tex/latex/pstricks/+\\ +\verb+pst-barcode.pro+ & PostScript file & \verb+$LOCALTEXMF/dvips/pstricks/+ \\ +\verb+pst-barcode-doc.tex+ & documentation source & \verb+$LOCALTEXMF/doc/pstricks/+\\ +\verb+pst-barcode-doc.bib+ & bibliography source & \verb+$LOCALTEXMF/doc/pstricks/+\\ +\verb+pst-barcode-doc.pdf+ & documentation & \verb+$LOCALTEXMF/doc/pstricks/+ %$ \end{tabular} \bigskip There is only one macro \verb+\psbarcode+ with the usual PSTricks syntax -\begin{verbatim} -\psbarcode[]{}{} -\end{verbatim} +\begin{BDef} +\Lcs{psbarcode}\OptArgs\Largb{PS options}\Largb{barcode type} +\end{BDef} -Important is the fact, that the barcode is printed in a box of zero dimension. -If you want to save some space in your text, use the \verb+pspicture+ environment -or the \verb+\makebox+ macro. +Important is the fact, that the barcode is printed in a \TeX\ box of zero dimension. +If you want to save some space in your text, use the \Lenv{pspicture} environment +or the \Lcs{makebox} macro. @@ -67,36 +72,39 @@ or the \verb+\makebox+ macro. \begin{tabular}{@{}lll@{}} \emph{name} & \emph{default} & \emph{remarks}\\\hline -\verb+transx+ & 0 & horizontal shift\\ -\verb+transy+ & 0 & vertical shift\\ -\verb+scalex+ & 1 & horizontal scaling\\ -\verb+scaley+ & 1 & vertical scaling\\ -\verb+rotate+ & 0 & rotating angle in degrees +\Lkeyword{transx} & 0 & horizontal shift\\ +\Lkeyword{transy} & 0 & vertical shift\\ +\Lkeyword{scalex} & 1 & horizontal scaling\\ +\Lkeyword{scaley} & 1 & vertical scaling\\ +\Lkeyword{rotate} & 0 & rotating angle in degrees \end{tabular} \subsection{The PostScript options} \begin{tabularx}{\textwidth}{@{}llX@{}} \emph{name} & \emph{default} & \emph{remarks}\\\hline -\verb+height+ & 1 & dimension is inch\\ -\verb+textsize+ & 10 & dimension is pt\\ -\verb+textpos+ & -2 & dimension is pt; it is the shift for additional code text\\ -\verb+inkspread+ & 0.15 & dimension is pt\\ -\verb+showborder+ & - & - \\ -\verb+borderwidth+ & 0.5 & dimension in pt \\ -\verb+borderleft+ & 10 & dimension in pt\\ -\verb+borderright+ & 10 & dimension in pt\\ -\verb+bordertop+ & 1 & dimension in pt\\ -\verb+borderbottom+ & 1 & dimension in pt\\ -\verb+borderwidth+ & 0.5 & dimension in pt\\ -\verb+width+ & - & dimension in inch\\ +\Lps{height} & 1 & dimension is inch\\ +\Lps{textsize} & 10 & dimension is pt\\ +\Lps{textpos} & -2 & dimension is pt; it is the shift for additional code text\\ +\Lps{inkspread} & 0.15 & dimension is pt\\ +\Lps{showborder} & -- & - \\ +\Lps{borderwidth} & 0.5 & dimension in pt \\ +\Lps{borderleft} & 10 & dimension in pt\\ +\Lps{borderright} & 10 & dimension in pt\\ +\Lps{bordertop} & 1 & dimension in pt\\ +\Lps{borderbottom} & 1 & dimension in pt\\ +\Lps{borderwidth} & 0.5 & dimension in pt\\ +\Lps{width} & -- & dimension in inch\\ % -\verb+font+ & /Helvetica & must be a PostScript font\\ -\verb+includetext+ & - & enable human readable text \\ -\verb+includecheck+ & - & enable check digit \\ -\verb+includecheckintext+ & - & check digit visible in text +\Lps{font} & /Helvetica & must be a PostScript font\\ +\Lps{includetext} & -- & enable human readable text \\ +\Lps{includecheck} & -- & enable check digit \\ +\Lps{includecheckintext} & -- & check digit visible in text\\ +\Lps{parse} & -- & parse variable field für decimal values, like \^{}032 for space, and convert them to ASCII \end{tabularx} + + \subsection{Examples for the TeX options} \begin{LTXexample}[pos=t,preset=\centering] @@ -140,12 +148,12 @@ or the \verb+\makebox+ macro. \section{Usage} -By default the barcode has a width and a height of zero. Using the \CMD{parbox} -macro or the \verb+pspicture+ environment can reserve the needed space for -the barcode. The \CMD{fbox} in the following examples is used +By default the barcode has a width and a height of zero. Using the \Lcs{parbox} +macro or the \Lenv{pspicture} environment can reserve the needed space for +the barcode. The \Lcs{fbox} in the following examples is used only for demonstration. - +\xLps{code39} \begin{LTXexample}[width=.5\linewidth] foo \fbox{% @@ -153,6 +161,7 @@ foo bar \end{LTXexample} +\xLps{code39} \bigskip \begin{LTXexample}[width=.5\linewidth] foo @@ -185,6 +194,7 @@ try the support mailing list. \item[Notes] If just 12 digits are entered then the check digit is calculated automatically \end{description} +\xLps{ean13} \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(3,1.2in) \psbarcode[scalex=0.8,scaley=0.8]{9781860742712}{includetext guardwhitespace}{ean13} @@ -204,6 +214,7 @@ try the support mailing list. \end{tabular} \end{description} +\xLps{ean8} \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(-2,-1.2)(0,0.2in) \psbarcode[rotate=180,linecolor=red]{12345678}{includetext guardwhitespace height=0.6}{ean8} @@ -226,6 +237,7 @@ try the support mailing list. calculated automatically \end{description} +\xLps{upca} \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(3,1.2in) \psbarcode[transx=15pt,transy=10pt]{78858101497}{includetext}{upca} @@ -247,6 +259,7 @@ try the support mailing list. \item[Notes] If just 7 digits are entered then the check digit is calculated automatically \end{description} +\xLps{upce} \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(1.5,1.2in) \psbarcode{0123456}{includetext}{upce} @@ -265,6 +278,7 @@ try the support mailing list. \end{tabular} \end{description} +\xLps{ean5} \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(2,1in) \psbarcode{90200}{includetext guardwhitespace}{ean5} @@ -283,12 +297,35 @@ try the support mailing list. \end{tabular} \end{description} +\xLps{ean2} \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(1,1in) \psbarcode{38}{includetext guardwhitespace}{ean2} \end{pspicture} \end{LTXexample} + +\subsection{onecode} + +\begin{description} +\item[Characters] \verb+0123456789+ +\item[Data] Variable +\item[Options]~\\ + \begin{tabular}{l|l} + Option & Feature\\\hline + \texttt{includetext} & Enable human readable text\\ + \end{tabular} +\end{description} + +\xLps{onecode} +\begin{LTXexample}[pos=t] +\begin{pspicture}(0,-5mm)(2.5in,0.3in) +\psbarcode{0123456709498765432101234567891}{includetext}{onecode} +\end{pspicture} +\end{LTXexample} + + + \newpage \subsection{ISBN} An ISBN symbol is really an EAN-13 with a particular prefix, 978 for the older ISBN-10 format, and others for the new ISBN-13 format. @@ -306,6 +343,7 @@ An ISBN symbol is really an EAN-13 with a particular prefix, 978 for the older I ISBN check digit is calculated automatically \end{description} +\xLps{isbn} \smallskip \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(3,1in) @@ -515,9 +553,31 @@ for the initial character set. UCC/EAN-128s must have a manditory \end{pspicture} \end{LTXexample} +\subsection{Japan post service} + +\begin{description} +\item[Characters] \verb!ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRSabc...xyz! +\item[Data] Variable number digits and letters +\item[Options]~\\ + \begin{tabular}{l|l} + Option & Feature\\ \hline + \texttt{includetext} & Enable human readable text\\ + \texttt{includecheckintext} & Make the check digit visible in the text + \end{tabular} +%\item[Notes] Check digit is always added automatically +\end{description} + +\begin{LTXexample}[pos=t] +\begin{pspicture}(0,-5mm)(7,0.5in) +\psbarcode{6540123789-A-K-Z}{includetext textxalign=center}{japanpost} +\end{pspicture} +\end{LTXexample} + + + \subsection{onecode} -United States Postal Service, replaces POSTNET and PLANET symbols. -Each barcode can be 20, 25, 29, or 31 digits long, depending on the type of ZIP code present. Each digit has four possible states, so one digit represents numbers 0-3. +%United States Postal Service, replaces POSTNET and PLANET symbols. +%Each barcode can be 20, 25, 29, or 31 digits long, depending on the type of ZIP code present. Each digit has four possible states, so one digit represents numbers 0-3. \begin{description} \item[Characters] \verb!0123456789! \item[Data] Variable number digits @@ -531,7 +591,7 @@ Each barcode can be 20, 25, 29, or 31 digits long, depending on the type of ZIP \end{description} \begin{LTXexample}[pos=t,preset=\centering] -\begin{pspicture}(5,0.3in) +\begin{pspicture}(0,-5mm)(5,0.3in) \psbarcode{0123456709498765432101234567891}{includetext}{onecode} \end{pspicture} \end{LTXexample} @@ -622,21 +682,21 @@ RSS is used in the healthcare industry. \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(12,.3in) -\psbarcode{24012345678905}{height=0.3}{rss14} +\psbarcode{(01)24012345678905}{format=truncated includetext height=0.3}{rss14} \end{pspicture} \end{LTXexample} \subsubsection{rsslimited} \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(12,.3in) -\psbarcode{00978186074271}{height=0.3}{rsslimited} +\psbarcode{(01)15012345678907}{height=0.3}{rsslimited} \end{pspicture} \end{LTXexample} \subsubsection{rssexpanded} \begin{LTXexample}[width=.3\linewidth] \begin{pspicture}(12,.3in) -\psbarcode{000000010011001010100001000000010000}{height=0.3}{rssexpanded} +\psbarcode{(10)12A}{height=0.3}{rssexpanded} \end{pspicture} \end{LTXexample} @@ -671,16 +731,16 @@ For a documentation see \url{http://de.wikipedia.org/wiki/Strichcode#PDF417}. \subsection{Data matrix} For a documentation see \url{http://de.wikipedia.org/wiki/Strichcode#DataMatrix}. +It is used for the german post company DHL. \begin{description} -\item[Characters] \verb!0123456789! +\item[Characters] extended ASCII \item[Data] Variable number characters \end{description} \begin{LTXexample}[width=1in,wide] \begin{pspicture}(1in,1in) -%\psbarcode{Herbert Voss}{rows=48 columns=48}{datamatrix} -\psbarcode{^142^164^186}{rows=48 columns=48}{datamatrix} +\psbarcode{Herbert Voss ^142^164^186}{rows=48 columns=48 parse}{datamatrix} \end{pspicture} \end{LTXexample} @@ -718,13 +778,9 @@ The modes: \item Mode 6 - Used for programming hardware devices. \end{itemize} -UPS labels use Mode 2 or Mode 3 MaxiCodes. - - -Example MaxiCode in mode 2 with standard field identifier [)>GS01GSyy %(^059^042^041^059^040^03001^02996152382802^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291^0471^029^029Y^029634 -%ALPHA DR^029PITTSBURGH^029PA^030^062^004^063) (mode 2) maxicode barcode +%ALPHA DR^029PITTSBURGH^029PA^030^062^004^063) (mode 2 parse) maxicode barcode \begin{description} \item[Characters] \verb!@ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789! @@ -733,8 +789,7 @@ Example MaxiCode in mode 2 with standard field identifier [)>GS01GSyy \begin{LTXexample}[width=1in,wide] \begin{pspicture}(1in,1in) -\psbarcode{^059^042^041^059^040^03001^02996152382802^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291^0471^029^029Y^029634 -ALPHA DR^029PITTSBURGH^029PA^030^062^004^063}{mode=2}{maxicode} +\expandafter\psbarcode{[\string\)>^03001^02996152382802^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291/1^029^029Y^029634 ALPHA DR^029PITTSBURGH^029PA^029^004}{mode=2 parse}{maxicode} \end{pspicture} \end{LTXexample} @@ -751,8 +806,7 @@ corporation Denso-Wave in 1994 (\url{http://de.wikipedia.org/wiki/QR_Code}). \begin{LTXexample}[width=1in,wide] \begin{pspicture}(1in,1in) -\psbarcode{000100000010000000001100010101100110000110000}% - {version=1 eclevel=M}{qrcode} +\psbarcode{http://www.dante.de}{}{qrcode} \end{pspicture} \end{LTXexample} @@ -770,18 +824,70 @@ Aztec Code was invented by Andrew Longacre (USA) in 1995 \begin{LTXexample}[width=1in,wide] \begin{pspicture}(1in,1in) -\psbarcode{00100111001000000101001101111000010100111100101000000110}% +\psbarcode{0123456789}% {format=compact layers=3}{azteccode} \end{pspicture} \end{LTXexample} +%315 140 moveto (00100111001000000101001101111000010100111100101000000110) (format=compact layers=3) azteccode barcode +%0 -10 rmoveto (Aztec Code) show +\subsection{itf14} +%Aztec Code is a 2 dimensional matrix style bar code symbology. +%Aztec Code was invented by Andrew Longacre (USA) in 1995 +%(\url{http://de.wikipedia.org/wiki/Aztec_Code}). -\nocite{*} -\bibliographystyle{plain} -\bibliography{pst-barcode-doc} +\begin{description} +\item[Characters] \verb!0123456789! +\item[Data] Variable number characters +\end{description} + +\begin{LTXexample}[width=1.5in,wide] +\begin{pspicture}(1in,1in) +\psbarcode{1001234567890}{showborder borderwidth=4 borderleft=15 borderright=15 height=0.5 includecheck includetext includecheckintext textyoffset=-10}{interleaved2of5} +\end{pspicture} +\end{LTXexample} + + +\subsection{qrcode} +%Aztec Code is a 2 dimensional matrix style bar code symbology. +%Aztec Code was invented by Andrew Longacre (USA) in 1995 +%(\url{http://de.wikipedia.org/wiki/Aztec_Code}). + + +\begin{description} +\item[Characters] \verb!0123456789! +\item[Data] Variable number characters +\end{description} + +\begin{LTXexample}[width=1.5in,wide] +\begin{pspicture}(1in,1in) +\psbarcode{http://www.dante.de}{eclevel=M}{qrcode} +\end{pspicture} +\end{LTXexample} + +%\psbarcode{000100000010000000001100010101100110000110000}{version=1 eclevel=M}{qrcode} + + +\subsection{PDF417} +%Aztec Code is a 2 dimensional matrix style bar code symbology. +%Aztec Code was invented by Andrew Longacre (USA) in 1995 +%(\url{http://de.wikipedia.org/wiki/Aztec_Code}). + + +\begin{description} +\item[Characters] \verb!0123456789! +\item[Data] Variable number characters +\end{description} + +\begin{LTXexample}[width=1.5in,wide] +\begin{pspicture}(1in,1in) +\psbarcode{^453^178^121^239}% + {columns=2 rows=10}{pdf417} +\end{pspicture} +\end{LTXexample} \section{Code Commentary} @@ -1165,7 +1271,20 @@ serverdict begin 0 exitserver systemdict /quit get exec +\section{List of all optional arguments for \texttt{pst-barcode}} +\xkvview{family=pst-barcode,columns={key,type,default}} + + +\bgroup +\raggedright +\nocite{*} +\bibliographystyle{plain} +\bibliography{\jobname} +\egroup + +\printindex +\end{document} \clearpage @@ -1180,5 +1299,60 @@ serverdict begin 0 exitserver systemdict /quit get exec %\subsection{\texttt{pst-barcode.pro}} %\lstinputlisting[language={},xleftmargin=-1.5cm,xrightmargin=-1.5cm]{pst-barcode.pro} -\end{document} +\iffalse +30 500 moveto (CODE 39) (includecheck includetext) code39 barcode +0 -17 rmoveto (Code 39) show +390 200 moveto (THIS IS CODE 93) (includecheck includetext) code93 barcode +0 -17 rmoveto (Code 93) show +400 600 moveto (^104^102Abc^09912345678^101!) (includetext) code128 barcode +0 -17 rmoveto (Code 128) show +150 700 moveto (0123456789) (includecheck includetext) interleaved2of5 barcode +0 -17 rmoveto (Interleaved 2 of 5) show +215 300 moveto (24012345678905) (height=0.3 includetext) rss14 barcode +0 -17 rmoveto (RSS-14) show +220 550 moveto (00978186074271) (height=0.3 includetext) rsslimited barcode +0 -17 rmoveto (RSS Limited) show +220 500 moveto (000000010011001010100001000000010000) (height=0.3) rssexpanded barcode +0 -10 rmoveto (RSS Expanded) show +215 348 moveto (117480) (includetext) pharmacode barcode +0 -17 rmoveto (Pharmacode) show +30 300 moveto (01234567) (includetext includecheck) code2of5 barcode +0 -17 rmoveto (Code 2 of 5) show +165 600 moveto (0124589) (includetext includecheck barcolor=AA0000 textyoffset=-8 textcolor=008888 backgroundcolor=2020FF0F showborder bordercolor=0000FF) code11 barcode +0 -17 rmoveto (Code 11) show +30 400 moveto (A0123456789B) (includecheck includetext) rationalizedCodabar barcode +0 -17 rmoveto (Rationalized Codabar) show +430 700 moveto (977147396801) (includetext) ean13 barcode +0 -17 rmoveto (EAN-13) show +535 705.4 moveto (05) (includetext guardwhitespace) ean2 barcode +0 -17 rmoveto (EAN-2) show +30 700 moveto (01335583) (includetext guardwhitespace) ean8 barcode +0 -17 rmoveto (EAN-8) show +30 600 moveto (78858101497) (includetext) upca barcode +0 -17 rmoveto (UPC-A) show +320 700 moveto (0425261) (includetext) upce barcode +0 -17 rmoveto (UPC-E) show +405 400 moveto (978-1-86074-271) (includetext) isbn barcode +0 -17 rmoveto (ISBN) show +510 405.4 moveto (90200) (includetext) ean5 barcode +0 -17 rmoveto (EAN-5) show +240 455 moveto (012345) (includetext) postnet barcode +0 -17 rmoveto (Postnet) show +240 410 moveto (LE28HS9Z) (includetext) royalmail barcode +0 -17 rmoveto (Royal Mail) show +410 145 moveto (1231FZ13XHS) (includetext) kix barcode +0 -17 rmoveto (KIX) show +385 515 moveto (5956439111ABA 9) (includetext) auspost barcode +0 -17 rmoveto (AusPost) show +350 300 moveto (12345) (includecheck includetext) msi barcode +0 -17 rmoveto (MSI) show +30 200 moveto (123ABCD) (includetext) plessey barcode +0 -17 rmoveto (Plessey) show +47 135 moveto (1001234567890) (showborder borderwidth=4 borderleft=15 borderright=15 height=0.5 includecheck includetext includecheckintext textyoffset=-10) interleaved2of5 barcode +-15 -20 rmoveto (ITF-14) show +485 300 moveto (^059^042^041^059^040^03001^02996152382802^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291^0471^029^029Y^029634 ALPHA DR^029PITTSBURGH^029PA^030^062^004^063) (mode=2) maxicode barcode +0 -10 rmoveto (MaxiCode) show +%300 600 moveto (^142^164^186) (rows=48 columns=48) datamatrix barcode +%0 -10 rmoveto (Data Matrix) show +\fi \ No newline at end of file diff --git a/Master/texmf-dist/source/generic/pst-barcode/Makefile b/Master/texmf-dist/source/generic/pst-barcode/Makefile index 6fc0d0be751..d8bd75bc545 100644 --- a/Master/texmf-dist/source/generic/pst-barcode/Makefile +++ b/Master/texmf-dist/source/generic/pst-barcode/Makefile @@ -15,8 +15,7 @@ ARCHFILES = $(PACKAGE).sty $(PACKAGE).tex $(PACKAGE).pro $(MAIN).tex README Chan TDS = ~/PSTricks/PSTricks-TDS -all : doc -# clean +all : doc clean doc: $(MAIN).pdf $(MAIN).pdf : $(MAIN).ps diff --git a/Master/texmf-dist/tex/latex/pst-barcode/pst-barcode.sty b/Master/texmf-dist/tex/latex/pst-barcode/pst-barcode.sty index 73b57640a71..acce0bf8906 100644 --- a/Master/texmf-dist/tex/latex/pst-barcode/pst-barcode.sty +++ b/Master/texmf-dist/tex/latex/pst-barcode/pst-barcode.sty @@ -4,5 +4,8 @@ \input{pst-barcode.tex} \ProvidesFile{pst-barcode.tex} [\filedate\space v\fileversion\space `PST-barcode' (hv)] -\IfFileExists{pst-barcode.pro}{\@addtofilelist{pst-barcode.pro}}{}% +\IfFileExists{pst-barcode.pro}{% + \ProvidesFile{pst-barcode.pro} + [2009/08/12 PostScript prologue file (hv)] + \@addtofilelist{pst-barcode.pro}}{}% \endinput -- cgit v1.2.3