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 | |
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')
17 files changed, 520 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/GS1/GS1.pdf b/Master/texmf-dist/doc/latex/GS1/GS1.pdf Binary files differnew file mode 100644 index 00000000000..4791b71aa43 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/GS1.pdf diff --git a/Master/texmf-dist/doc/latex/GS1/README b/Master/texmf-dist/doc/latex/GS1/README new file mode 100644 index 00000000000..963e675af38 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/README @@ -0,0 +1,25 @@ +$Id: README 1 2012-07-27 06:09:40Z mjk $ +============================================================================ +GS1 - l3-package for handling of GS1 codes of GS1 specification +---------------------------------------------------------------------------- +Maintainer: Markus Kohm +E-Mail: komascript at gmx info +Abstract: Currently the package is able to + - calculate control digits for EAN-8 and EAN-13 + - generate bar code for EAN-8 and EAN-13 +Requires: expl3 - stable packages of LaTeX3 kernel for LaTeX2e + xparse - definition of LaTeX2e user commands using LaTeX3 + rule-D - see below +License: LPPL 1.3c or later +State: Author maintained +============================================================================ +rule-D - l3-package simply providing LaTeX3 \rule functions +---------------------------------------------------------------------------- +Maintainer: Markus Kohm +E-Mail: komascript at gmx info +Abstract: Currently there's no \rule command in expl3, but GS1 needs + it. +Requires: expl3 - stable packages of LaTeX3 kernel for LaTeX2e +License: LPPL 1.3c or later +State: Author maintained +============================================================================ diff --git a/Master/texmf-dist/doc/latex/GS1/examples/EANBarcode.pdf b/Master/texmf-dist/doc/latex/GS1/examples/EANBarcode.pdf Binary files differnew file mode 100644 index 00000000000..aefe9f33213 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/EANBarcode.pdf diff --git a/Master/texmf-dist/doc/latex/GS1/examples/EANBarcode.tex b/Master/texmf-dist/doc/latex/GS1/examples/EANBarcode.tex new file mode 100644 index 00000000000..01214df1169 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/EANBarcode.tex @@ -0,0 +1,66 @@ +%% +%% This is file `EANBarcode.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% GS1.dtx (with options: `test,EANBarcode') +%% +%% 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} +\raggedright +\verb|\EANBarcode{ISBN 978-3-86541-459-5}|: + \EANBarcode{ISBN 978-3-86541-459-5} + +\verb|\EANBarcode[add_control]{ISBN 978-3-86541-459-}|: + \EANBarcode[add_control]{ISBN 978-3-86541-459-} + +\verb|\EANBarcode[ocrb=false]{ISBN 978-3-86541-459-5}|: +\EANBarcode[ocrb=false]{ISBN 978-3-86541-459-5} + +\verb|\EANBarcode[code=EAN-8]{20123451}|: + \EANBarcode[code=EAN-8]{20123451} + +\verb|\EANBarcode[code=EAN-8,ocrb=false,add_control]{2012345}|: + \EANBarcode[code=EAN-8,ocrb=false,add_control]{2012345} + +\end{document} +%% +%% +%% End of file `EANBarcode.tex'. diff --git a/Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.pdf b/Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.pdf Binary files differnew file mode 100644 index 00000000000..863873aca3d --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/EANControlDigit.pdf 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'. diff --git a/Master/texmf-dist/doc/latex/GS1/examples/GSSetup.pdf b/Master/texmf-dist/doc/latex/GS1/examples/GSSetup.pdf Binary files differnew file mode 100644 index 00000000000..c89f544f732 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/GSSetup.pdf diff --git a/Master/texmf-dist/doc/latex/GS1/examples/GSSetup.tex b/Master/texmf-dist/doc/latex/GS1/examples/GSSetup.tex new file mode 100644 index 00000000000..f6962e5ce22 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/GSSetup.tex @@ -0,0 +1,75 @@ +%% +%% This is file `GSSetup.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% GS1.dtx (with options: `test,GSSetup') +%% +%% 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} +\raggedright +\verb|\EANBarcode{ISBN 978-3-86541-459-5}|: + \EANBarcode{ISBN 978-3-86541-459-5} + +\verb|\EANBarcode[add_control]{ISBN 978-3-86541-459-}|: + \EANBarcode[add_control]{ISBN 978-3-86541-459-} + +\verb|\EANBarcode[ocrb=false]{ISBN 978-3-86541-459-5}|: +\EANBarcode[ocrb=false]{ISBN 978-3-86541-459-5} + +\verb|\EANBarcode[code=EAN-8]{20123451}|: + \EANBarcode[code=EAN-8]{20123451} + +\verb|\EANBarcode[code=EAN-8,ocrb=false,add_control]{2012345}|: + \EANBarcode[code=EAN-8,ocrb=false,add_control]{2012345} + +After \verb|\GSSetup{ocrb=false,add_control}|: + \GSSetup{ocrb=false,add_control} + +\verb|\EANBarcode[code=EAN-8]{2012345}|: + \EANBarcode[code=EAN-8]{2012345} + +\verb|\EANBarcode[code=EAN-8,ocrb,add_control=false]{20123451}|: + \EANBarcode[code=EAN-8,ocrb,add_control=false]{20123451} + +\end{document} +%% +%% +%% End of file `GSSetup.tex'. diff --git a/Master/texmf-dist/doc/latex/GS1/examples/GS_cut_EAN_control_digit.pdf b/Master/texmf-dist/doc/latex/GS1/examples/GS_cut_EAN_control_digit.pdf Binary files differnew file mode 100644 index 00000000000..6c7c28c29b3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/GS_cut_EAN_control_digit.pdf diff --git a/Master/texmf-dist/doc/latex/GS1/examples/GS_cut_EAN_control_digit.tex b/Master/texmf-dist/doc/latex/GS1/examples/GS_cut_EAN_control_digit.tex new file mode 100644 index 00000000000..a1e974c235a --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/GS_cut_EAN_control_digit.tex @@ -0,0 +1,71 @@ +%% +%% This is file `GS_cut_EAN_control_digit.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% GS1.dtx (with options: `test,GS.cut.EAN.control.digit') +%% +%% 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} +\raggedright +\ExplSyntaxOn +\seq_new:N \l_testa_seq +\GS_set_code_digit_seq:Nn \l_testa_seq {ISBN 978-3-86541-459-5} +With~control:~\seq_use:Nnnn \l_testa_seq { ,~ } { ,~} { ,~ }\\ +\GS_set_code_digit_seq:Nn \l_testb_seq {ISBN 978-3-86541-459} +\GS_cut_EAN_control_digit:N \l_testa_seq +\seq_map_inline:Nn \l_testa_seq + { + \seq_pop_left:NN \l_testb_seq \l_tmpa_tl + \tl_set:Nn \l_tmpb_tl { #1 } + \tl_if_eq:NNF \l_tmpa_tl \l_tmpb_tl + { + \tl_show:N \l_testa_seq + \tl_show:N \l_testb_seq + \msg_fatal:nnn { GS1/test } { function } + { \GS_cut_EAN_control_digit:N } + } + } +Without~control:~\seq_use:Nnnn \l_testa_seq { ,~ } { ,~} { ,~ }\\ +\ExplSyntaxOff +\end{document} +%% +%% +%% End of file `GS_cut_EAN_control_digit.tex'. diff --git a/Master/texmf-dist/doc/latex/GS1/examples/GS_set_EAN_control_digit.pdf b/Master/texmf-dist/doc/latex/GS1/examples/GS_set_EAN_control_digit.pdf Binary files differnew file mode 100644 index 00000000000..5e48e86db89 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/GS_set_EAN_control_digit.pdf diff --git a/Master/texmf-dist/doc/latex/GS1/examples/GS_set_EAN_control_digit.tex b/Master/texmf-dist/doc/latex/GS1/examples/GS_set_EAN_control_digit.tex new file mode 100644 index 00000000000..70cd849f52e --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/GS_set_EAN_control_digit.tex @@ -0,0 +1,69 @@ +%% +%% This is file `GS_set_EAN_control_digit.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% GS1.dtx (with options: `test,GS.set.EAN.control.digit') +%% +%% 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} +\ExplSyntaxOn +\seq_new:N \l_testa_seq +\GS_set_code_digit_seq:Nn \l_testa_seq {ISBN 978-3-86541-459-5} +\seq_new:N \l_testb_tl +\seq_pop_right:NN \l_testa_seq \l_testb_tl +\GS_set_EAN_control_digit:N \l_testa_seq +\tl_new:N \l_testa_tl +\seq_get_right:NN \l_testa_seq \l_testa_tl +Control~digit~should~be~ \tl_use:N \l_testb_tl {} ~ +\int_compare:nNnTF { \l_testa_tl } { = } { \l_testb_tl } + { + ~and~is~\tl_use:N \l_testa_tl . + } + { + ~but~it~\tl_use:N \t_testa_tl . + \msg_error:nnn { GS1/test } { function } { \GS_set_EAN_control_digit:N } + } + +\ExplSyntaxOff +\end{document} +%% +%% +%% End of file `GS_set_EAN_control_digit.tex'. diff --git a/Master/texmf-dist/doc/latex/GS1/examples/GS_set_code_digit_seq.pdf b/Master/texmf-dist/doc/latex/GS1/examples/GS_set_code_digit_seq.pdf Binary files differnew file mode 100644 index 00000000000..549839dce25 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/GS_set_code_digit_seq.pdf diff --git a/Master/texmf-dist/doc/latex/GS1/examples/GS_set_code_digit_seq.tex b/Master/texmf-dist/doc/latex/GS1/examples/GS_set_code_digit_seq.tex new file mode 100644 index 00000000000..575bb176c0a --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/GS_set_code_digit_seq.tex @@ -0,0 +1,86 @@ +%% +%% This is file `GS_set_code_digit_seq.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% GS1.dtx (with options: `test,GS.set.code.digit.seq') +%% +%% 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} +\ExplSyntaxOn +\seq_new:N \l_testa_seq +\seq_new:N \l_testb_seq + +\GS_set_code_digit_seq:Nn \l_testa_seq {ISBN 978-3-86541-459-5} +Sequence~for~ISBN~978-3-86541-459-5~is:~ +\seq_use:Nnnn \l_testa_seq { ,~ } { ,~} { ,~ } + +\GS_set_code_digit_seq:Nn \l_testb_seq {9783865414595} +\seq_map_inline:Nn \l_testa_seq + { + \seq_pop_left:NN \l_testb_seq \l_tmpa_tl + \tl_set:Nn \l_tmpb_tl { #1 } + \tl_if_eq:NNF \l_tmpa_tl \l_tmpb_tl + { + \tl_show:N l_testa_seq + \tl_show:N l_testb_seq + \msg_fatal:nnn { GS1/test } { function } { \GS_set_code_digit_seq:Nn } + } + } + +\GS_set_code_digit_seq:Nn \l_testa_seq {ISBN 978-3-86541-459-5} +\seq_set_split:Nnn \l_testb_seq {,} {9,7,8,3,8,6,5,4,1,4,5,9,5} +\seq_map_inline:Nn \l_testa_seq + { + \seq_pop_left:NN \l_testb_seq \l_tmpa_tl + \tl_set:Nn \l_tmpb_tl { #1 } + \tl_if_eq:NNF \l_tmpa_tl \l_tmpb_tl + { + \tl_show:N \l_testa_seq + \tl_show:N \l_testb_seq + \msg_fatal:nnn { GS1/test } { function } { \GS_set_code_digit_seq:Nn } + } + } + +\ExplSyntaxOff +\end{document} +%% +%% +%% End of file `GS_set_code_digit_seq.tex'. diff --git a/Master/texmf-dist/doc/latex/GS1/examples/int_set_to_EAN_control_digit.pdf b/Master/texmf-dist/doc/latex/GS1/examples/int_set_to_EAN_control_digit.pdf Binary files differnew file mode 100644 index 00000000000..edcb1cc3974 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/int_set_to_EAN_control_digit.pdf diff --git a/Master/texmf-dist/doc/latex/GS1/examples/int_set_to_EAN_control_digit.tex b/Master/texmf-dist/doc/latex/GS1/examples/int_set_to_EAN_control_digit.tex new file mode 100644 index 00000000000..e9e00c1f221 --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/examples/int_set_to_EAN_control_digit.tex @@ -0,0 +1,68 @@ +%% +%% This is file `int_set_to_EAN_control_digit.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% GS1.dtx (with options: `test,int.set.to.EAN.control.digit') +%% +%% 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} +\ExplSyntaxOn +\seq_new:N \l_testa_seq +\tl_new:N \l_control_tl +\GS_set_code_digit_seq:Nn \l_testa_seq {ISBN 978-3-86541-459-5} +\seq_pop_right:NN \l_testa_seq \l_control_tl +\int_new:N \l_control_int +\int_set_to_EAN_control_digit:NN \l_control_int \l_testa_seq +Control~digit~should~be~\tl_use:N \l_control_tl{} ~ +\int_compare:nNnTF { \l_control_tl } { = } { \l_control_int } + { + ~and~is~\int_use:N \l_control_int . + } + { + ~but~it~\int_use:N \l_control_int . + \msg_error:nnn { GS1/test } { function } + { \int_set_to_EAN_control_digit:NN } + } +\ExplSyntaxOff +\end{document} +%% +%% +%% End of file `int_set_to_EAN_control_digit.tex'. diff --git a/Master/texmf-dist/doc/latex/GS1/rule-D.pdf b/Master/texmf-dist/doc/latex/GS1/rule-D.pdf Binary files differnew file mode 100644 index 00000000000..31c36c857ac --- /dev/null +++ b/Master/texmf-dist/doc/latex/GS1/rule-D.pdf |