summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/gs1/GS_cut_EAN_control_digit.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-17 20:48:26 +0000
committerKarl Berry <karl@freefriends.org>2021-06-17 20:48:26 +0000
commit333487fa7d67a14476a0bd7734bffff2fabfd64f (patch)
treec19b5ea90736b33fa18be27b34ceb096e17bcdd0 /Master/texmf-dist/doc/latex/gs1/GS_cut_EAN_control_digit.tex
parent2b525643dd1aa6f46e24a42d3275777f53d5ff92 (diff)
gs1 [was GS1] (17jun21)
git-svn-id: svn://tug.org/texlive/trunk@59620 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/gs1/GS_cut_EAN_control_digit.tex')
-rw-r--r--Master/texmf-dist/doc/latex/gs1/GS_cut_EAN_control_digit.tex71
1 files changed, 71 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/gs1/GS_cut_EAN_control_digit.tex b/Master/texmf-dist/doc/latex/gs1/GS_cut_EAN_control_digit.tex
new file mode 100644
index 00000000000..d9de6d8852a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/gs1/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-2017 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{expl3}[2017/05/29]
+\GetIdInfo$Id: GS1.dtx 23 2021-06-17 07:00:36Z 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_sys_jobname_str.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'.