Debian Codegraph @

texmf-dist/doc/latex/gs1/EANControlDigit.tex

raw
1 %%
2 %% This is file `EANControlDigit.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% GS1.dtx (with options: `test,EANControlDigit')
8 %%
9 %% EXPERIMENTAL CODE
10 %%
11 %% This Work depends on the correct version of expl3 release. If
12 %% you'll update expl3 you may need a update of this this Work too.
13 %%
14 %% Do not distribute this file without also distributing the
15 %% source files specified above.
16 %%
17 %% Do not distribute modified version of this file.
18 %%
19 %% File: GS1.dtx Copyright (C) 2012-2017 Markus Kohm
20 %%
21 %% It may be distributed and/or modified under the conditions of the
22 %% LaTeX Project Public License (LPPL), either version 1.3c of this
23 %% license or (at your option) any later version. The latest version
24 %% of this license is in the file
25 %%
26 %% http://www.latex-project.org/lppl.txt
27 %%
28 %% This file is part of the "GS1 bundle" (The Work in LPPL)
29 %% and all files in that bundle must be distributed together.
30 %%
31 %% The released version of this bundle is available from CTAN.
32 %%
33 %% -------------------------------------------------------------------------
34 \RequirePackage{expl3}[2017/05/29]
35 \GetIdInfo$Id: GS1.dtx 23 2021-06-17 07:00:36Z mjk $
36 {GS1 code handler and barcode generator}
37 \documentclass{article}
38 \usepackage{GS1}
39 \ExplSyntaxOn
40 \msg_new:nnn { GS1/test } { function }
41 {
42 Something~is~wrong~with~function~#1
43 \msg_line_context:~~of~\c_sys_jobname_str.tex.
44 }
45 \ExplSyntaxOff
46 \begin{document}
47 \begin{tabular}{ll}
48 \hline
49 Calculated & Known \\
50 \hline
51 501234567890-\EANControlDigit{501234567890} & 501234567890-0 \\
52 ISBN 978-3-86541-459-\EANControlDigit{ISBN 978-3-86541-459} & ISBN
53 978-3-86541-459-5 \\
54 EAN-8: 2012345\EANControlDigit{2012345} & EAN-8: 20123451 \\
55 \hline
56 \end{tabular}
57 \end{document}
58 %%
59 %%
60 %% End of file `EANControlDigit.tex'.