diff options
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-barcode/Changes | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf | bin | 246009 -> 278101 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex | 36 |
3 files changed, 31 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-barcode/Changes b/Master/texmf-dist/doc/generic/pst-barcode/Changes index 67a200b8174..39729819828 100644 --- a/Master/texmf-dist/doc/generic/pst-barcode/Changes +++ b/Master/texmf-dist/doc/generic/pst-barcode/Changes @@ -1,4 +1,5 @@ ----- pst-barcode.tex +0.12 2013-10-26 - added option file for including an external file 0.11 2013-10-06 - added more options for data matrix 0.10 2012-08-25 - using another code for loading the ps code 0.09 2012-06-25 - using another code for loading the ps code 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 Binary files differindex e4683eac5fc..55b731ce2a3 100644 --- a/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf +++ b/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf 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 cdbaa6e96e9..72c33bffcff 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 @@ -11,6 +11,18 @@ \psbarcode{Herbert Voss Freie Universitaet Berlin}{rows=52 columns=52}{datamatrix} \end{pspicture}} +\begin{filecontents*}{demo.tex} +\documentclass{article} +\usepackage{pst-barcode,fancyvrb} +\begin{document} +\VerbatimInput{\jobname.tex}% test + +\begin{pspicture}(2in,2in) + \psbarcode[file]{\jobname.tex}{}{qrcode} +\end{pspicture} +\end{document} +\end{filecontents*} + \begin{document} \title{\texttt{pst-barcode}} @@ -24,10 +36,9 @@ \clearpage -\iffalse \begin{abstract} \noindent -The \LPack{pstricks} package provides (essentially) one macro +The \LPack{pstricks} related package provides (essentially) one macro for printing barcodes. The type of the code is defined by a parameter and passed to postscript. @@ -35,7 +46,6 @@ and passed to postscript. %Thanks to: \\ % Jean-C\^ome Charpentier. \end{abstract} -\fi \section{Introduction} The \LPack{pstricks} package provides (essentially) one macro @@ -58,7 +68,7 @@ for the files: \bigskip There is only one macro \verb+\psbarcode+ with the usual PSTricks syntax \begin{BDef} -\Lcs{psbarcode}\OptArgs\Largb{PS options}\Largb{barcode type} +\Lcs{psbarcode}\OptArgs\Largb{text or filename}\Largb{PS options}\Largb{barcode type} \end{BDef} Important is the fact, that the barcode is printed in a \TeX\ box of zero dimension. @@ -77,6 +87,7 @@ or the \Lcs{makebox} macro. \Lkeyword{scalex} & 1 & horizontal scaling\\ \Lkeyword{scaley} & 1 & vertical scaling\\ \Lkeyword{rotate} & 0 & rotating angle in degrees\\\hline +\Lkeyword{file} & false & load an external file for the text\\\hline \end{tabular} \subsection{The PostScript options} @@ -112,13 +123,26 @@ or the \Lcs{makebox} macro. \psbarcode{01335583}{includetext}{ean8} \end{pspicture}}\quad \psframebox{\begin{pspicture}(-2.6,-1.5)(0.4,0.2in) -%\psbarcode[rotate=180,linecolor=red]{01335583}{includetext guardwhitespace height=0.6}{ean8} +\psbarcode[rotate=180,linecolor=red]{01335583}{includetext guardwhitespace height=0.6}{ean8} \end{pspicture}}\quad \psframebox{\begin{pspicture}(3.8,1in) -%\psbarcode[scalex=1.5,scaley=0.5,transy=1]{01335583}{includetext inkspread=0.5}{ean8} +\psbarcode[scalex=1.5,scaley=0.5,transy=1]{01335583}{includetext inkspread=0.5}{ean8} \end{pspicture}} \end{LTXexample} + +\begin{LTXexample}[pos=t,preset=\centering,wide] +\begin{pspicture}(2in,2in) + \psbarcode[file]{demo.tex}{}{qrcode} +\end{pspicture} +\end{LTXexample} + +The contents of the external file \texttt{demo.tex}: + +\VerbatimInput{demo.tex} + + + \newpage \subsection{Examples for the PostScript options} |