diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-18 22:39:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-18 22:39:12 +0000 |
commit | 7187ab3ef2c3ecf2c08bc3b855cdad3e70aa3f34 (patch) | |
tree | 545f8e192f070d3a854442b67e334209c0fc119b /Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.tex | |
parent | 436942fe5ad78d0938c03cdd50a4e0ebcf544a0b (diff) |
new latex package GS1 (17aug12)
git-svn-id: svn://tug.org/texlive/trunk@27453 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.tex | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.tex b/Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.tex new file mode 100644 index 00000000000..f30e234d3e3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.tex @@ -0,0 +1,60 @@ +%% +%% This is file `EANControlDigit.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% GS1.dtx (with options: `test,EANControlDigit') +%% +%% EXPERIMENTAL CODE +%% +%% This Work depends on the correct version of expl3 release. If +%% you'll update expl3 you may need a update of this this Work too. +%% +%% Do not distribute this file without also distributing the +%% source files specified above. +%% +%% Do not distribute modified version of this file. +%% +%% File: GS1.dtx Copyright (C) 2012 Markus Kohm +%% +%% It may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License (LPPL), either version 1.3c of this +%% license or (at your option) any later version. The latest version +%% of this license is in the file +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This file is part of the "GS1 bundle" (The Work in LPPL) +%% and all files in that bundle must be distributed together. +%% +%% The released version of this bundle is available from CTAN. +%% +%% ------------------------------------------------------------------------- +\RequirePackage{l3names} +\GetIdInfo$Id: GS1.dtx 9 2012-08-01 09:31:32Z mjk $ + {GS1 code handler and barcode generator} +\documentclass{article} +\usepackage{GS1} +\ExplSyntaxOn +\msg_new:nnn { GS1/test } { function } + { + Something~is~wrong~with~function~#1 + \msg_line_context:~~of~\c_job_name_tl.tex. + } +\ExplSyntaxOff +\begin{document} +\begin{tabular}{ll} + \hline + Calculated & Known \\ + \hline + 501234567890-\EANControlDigit{501234567890} & 501234567890-0 \\ + ISBN 978-3-86541-459-\EANControlDigit{ISBN 978-3-86541-459} & ISBN + 978-3-86541-459-5 \\ + EAN-8: 2012345\EANControlDigit{2012345} & EAN-8: 20123451 \\ + \hline +\end{tabular} +\end{document} +%% +%% +%% End of file `EANControlDigit.tex'. |