Debian Codegraph @

texmf-dist/source/latex/latex-lab/latex-lab-mathintent.dtx

raw
1 % \iffalse meta-comment
2 %
3 %% File: latex-lab-mathintent.dtx
4 %
5 % Copyright (C) 2025 The LaTeX Project
6 %
7 % It may be distributed and/or modified under the conditions of the
8 % LaTeX Project Public License (LPPL), either version 1.3c of this
9 % license or (at your option) any later version. The latest version
10 % of this license is in the file
11 %
12 % https://www.latex-project.org/lppl.txt
13 %
14 %
15 % The development version of the bundle can be found below
16 %
17 % https://github.com/latex3/latex2e/required/latex-lab
18 %
19 % for those people who are interested or want to report an issue.
20 %
21 %<*driver>
22 \DocumentMetadata{tagging=on,pdfstandard=ua-2}
23 \documentclass[kernel]{l3doc}
24 \usepackage{latex-lab-testphase-l3doc}
25 \EnableCrossrefs
26 \CodelineIndex
27 \begin{document}
28 \DocInput{latex-lab-mathintent.dtx}
29 \end{document}
30 %</driver>
31 %
32 % \fi
33 %
34 %
35 % \title{The \texttt{latex-lab-mathintent} code\thanks{}}
36 % \author{\LaTeX{} Project}
37 %
38 % \maketitle
39 %
40 % \newcommand\fmi[1]{\begin{quote} TODO: \itshape #1\end{quote}}
41 % \newcommand\NEW[1]{\marginpar{\mbox{}\hfill\fbox{New: #1}}}
42 % \providecommand\class[1]{\texttt{#1.cls}}
43 % \providecommand\pkg[1]{\texttt{#1}}
44 % \providecommand\hook[1]{\texttt{#1}}
45 %
46 % \begin{abstract}
47 % \end{abstract}
48 %
49 % \tableofcontents
50 %
51 % \section{Introduction}
52 %
53 % This file implements Experiments with the MathML4 \texttt{intent} feature.
54 % Initially to give readings for invisible times and function application.
55 %
56 % \MaybeStop{\setlength\IndexMin{200pt} \PrintIndex }
57 %
58 % \section{The Implementation}
59 %
60 % \begin{macrocode}
61 %<@@=math>
62 % \end{macrocode}
63 %
64 % \begin{macrocode}
65 %<*kernel>
66 % \end{macrocode}
67 %
68 % \subsection{File declaration}
69 % \begin{macrocode}
70 \ProvidesFile{latex-lab-mathintent.ltx}
71 [2025-08-03 v0.1c MathML intent attributes]
72 % \end{macrocode}
73 %
74 % \subsection{Invisible ops}
75 % \begin{macrocode}
76 \ExplSyntaxOn
77 % \end{macrocode}
78 %
79 % \begin{macrocode}
80 \protected\def\invisibletimes{
81 \if_cs_exist:N\luamml_annotate:en
82 \luamml_annotate:en {
83 core = {[0] = 'mo', intent="times","^^^^2062"},
84 }{
85 \latelua{}
86 }
87 \fi:
88 }
89 % \end{macrocode}
90 %
91 % \begin{macrocode}
92 \protected\def\functionapplication{
93 \if_cs_exist:N\luamml_annotate:en
94 \luamml_annotate:en {
95 core = {[0] = 'mo', intent="applied_to","^^^^2061"},
96 }{
97 \latelua{}
98 }
99 \fi:
100 }
101 % \end{macrocode}
102 %
103 % \subsection{MathML intent and arg}
104 % These commands have stub definitions in the Kernel
105 % Here we enable their active definition.
106 % \begin{macrocode}
107 \AtBeginDocument{
108 \if_cs_exist:N \luamml_attribute:een
109 \let\MathMLintent\relax
110 \NewDocumentCommand \MathMLintent {} {
111 \luamml_attribute:een { intent }
112 }
113 % \end{macrocode}
114 %
115 % \begin{macrocode}
116 \let\MathMLarg\relax
117 \NewDocumentCommand \MathMLarg {} {
118 \luamml_attribute:een { arg }
119 }
120 \fi:
121 }
122 % \end{macrocode}
123 %
124 % \begin{macrocode}
125 \ExplSyntaxOff
126 % \end{macrocode}
127 % \begin{macrocode}
128 %</kernel>
129 % \end{macrocode}
130 % \subsection{Wrapper files for testphase key}
131 % \Finale
132 %