Debian Codegraph @

texmf-dist/tex/latex/latex-lab/latex-lab-testphase-text.sty

raw
1 %%
2 %% This is file `latex-lab-testphase-text.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% latex-lab-text.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright 2021-2025 LaTeX Project
12 %%
13 %% This file was generated from file(s) of the `LaTeX-lab Bundle'.
14 %% ------------------------------------------------------------------------------------
15 %%
16 %% It may be distributed and/or modified under the
17 %% conditions of the LaTeX Project Public License, either version 1.3c
18 %% of this license or (at your option) any later version.
19 %% The latest version of this license is in
20 %% http://www.latex-project.org/lppl.txt
21 %% and version 1.3c or later is part of all distributions of LaTeX
22 %% version 2008 or later.
23 %%
24 %% This file may only be distributed together with a copy of the LaTeX
25 %% `LaTeX-lab Bundle'. You may however distribute the `LaTeX-lab Bundle'
26 %% without such generated files.
27 %%
28 %% The newest sources can be found below
29 %%
30 %% https://github.com/latex3/latex2e/required/latex-lab
31 %%
32 %% where one can also log issues in case there are any.
33 %%
34 %%
35 %% File: latex-lab-text.dtx (C) Copyright 2023-2025 LaTeX Project
36 \def\ltlabtextdate{2025-05-10}
37 \def\ltlabtextversion{0.85f}
38
39 \ProvidesExplPackage {latex-lab-testphase-text} {\ltlabtextdate} {\ltlabtextversion}
40 {Code related to the tagging of various small text commands}
41
42 \AddToHook{cmd/LaTeX/before}
43 {
44 \mode_leave_vertical:
45 \tag_mc_end_push:
46 \tag_struct_begin:n{tag=Span,actualtext=LaTeX,phoneme=[ˈlaːtɛx]}
47 \tag_mc_begin:n{}
48 \tag_suspend:n{LaTeX}
49 }
50 \AddToHook{cmd/LaTeX/after}
51 {
52 \tag_resume:n{LaTeX}
53 \tag_mc_end:
54 \tag_struct_end:
55 \tag_mc_begin_pop:n{}
56 }
57 \AddToHook{cmd/TeX/before}
58 {
59 \mode_leave_vertical:
60 \tag_mc_end_push:
61 \tag_struct_begin:n{tag=Span,actualtext=TeX}
62 \tag_mc_begin:n{}
63 }
64 \AddToHook{cmd/TeX/after}
65 {
66 \tag_mc_end:
67 \tag_struct_end:
68 \tag_mc_begin_pop:n{}
69 }
70 \AddToHook{cmd/emph/before}
71 {
72 \mode_leave_vertical:
73 \tag_mc_end_push:
74 \tag_struct_begin:n{tag=Em}
75 \tag_mc_begin:n{}
76 }
77
78 \AddToHook{cmd/emph/after}
79 {
80 \tag_mc_end:
81 \tag_struct_end:
82 \tag_mc_begin_pop:n{}
83 }
84 \DeclareRobustCommand\mbox[1]
85 {
86 \leavevmode
87 \tag_socket_use:nnn {math/luamml/hbox}
88 {}{ \hbox{#1} }
89 }
90 \long\def\@imakebox[#1][#2]#3{%
91 \tag_socket_use:nnn {math/luamml/hbox}{}
92 {
93 \@begin@tempboxa\hbox{#3}%
94 \setlength\@tempdima{#1}% support calc
95 \hb@xt@\@tempdima{%
96 \expandafter\ifx\csname bm@#2\endcsname\relax
97 \bm@c
98 \@latex@warning{Unexpected~alignment~#2}%
99 \else
100 \csname bm@#2\endcsname
101 \fi}%
102 \@end@tempboxa
103 }}
104 \def\makeph@nt#1{%
105 \setbox\z@\hbox
106 {\SuspendTagging{\makeph@nt}%
107 \color@begingroup#1\color@endgroup\ResumeTagging{\makeph@nt}}\finph@nt}
108 \def\@kernel@mathph@nt#1#2{%
109 \setbox\z@\hbox{\SuspendTagging{\mathph@nt}$\m@th#1{#2}$\ResumeTagging{\mathph@nt}}\finph@nt}
110 \def\mathph@nt#1#2
111 {
112 \setbox \z@ = \hbox {
113 $
114 \m@th
115 #1
116 {
117 \let\mathph@nt\@kernel@mathph@nt
118 #2
119 }
120 \UseTaggingSocket{math/luamml/save/nNn}{{mathphant} #1 {mphantom}}
121 $
122 }
123 \UseTaggingSocket{math/luamml/finph@nt}{}{\finph@nt}
124 }
125 \endinput
126 %%
127 %% End of file `latex-lab-testphase-text.sty'.