summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-10-26 21:42:47 +0000
committerKarl Berry <karl@freefriends.org>2013-10-26 21:42:47 +0000
commitfb7138686dfa87a452b0135e50f0909160009bd8 (patch)
tree79cfe26f4db0441213710338405e5d35a7e62576 /Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex
parentc3ad81474a43e78dcb33ddfaeebc08504bee76f1 (diff)
pst-barcode (26oct13)
git-svn-id: svn://tug.org/texlive/trunk@32004 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.tex36
1 files changed, 30 insertions, 6 deletions
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}