Debian Codegraph @

texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty

raw
1 %%
2 %% This is file `tagpdf-debug-lua.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% tagpdf-mc-luacode.dtx (with options: `debug')
8 %%
9 %% Copyright (C) 2019-2025 Ulrike Fischer
10 %%
11 %% It may be distributed and/or modified under the conditions of
12 %% the LaTeX Project Public License (LPPL), either version 1.3c of
13 %% this license or (at your option) any later version. The latest
14 %% version of this license is in the file:
15 %%
16 %% https://www.latex-project.org/lppl.txt
17 %%
18 %% This file is part of the "tagpdf bundle" (The Work in LPPL)
19 %% and all files in that bundle must be distributed together.
20 %%
21 %% File: tagpdf-mc-luacode.dtx
22 \ProvidesExplPackage {tagpdf-debug-lua} {2026-05-17} {1.0c}
23 {part of tagpdf - debugging code related to marking chunks - lua mode}
24 \cs_set_protected:Npn \__tag_mc_handle_stash:n #1 %1 mcidnum
25 {
26 \__tag_check_mc_used:n { #1 }
27 \seq_gput_right:cn % Don't fill a lua table due to the command in the item,
28 % so use the kernel command
29 { g__tag_struct_kids_\g__tag_struct_stack_current_tl _seq }
30 {
31 \__tag_mc_insert_mcid_kids:n {#1}%
32 }
33 \seq_gput_right:cn % Don't fill a lua table due to the command in the item,
34 % so use the kernel command
35 { g__tag_struct_debug_kids_\g__tag_struct_stack_current_tl _seq }
36 {
37 MC~#1%
38 }
39 \lua_now:e
40 {
41 ltx.__tag.func.store_struct_mcabs
42 (
43 \g__tag_struct_stack_current_tl,#1
44 )
45 }
46 }
47 %%
48 %%
49 %% End of file `tagpdf-debug-lua.sty'.