| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
%% File: latex-lab-namespace.dtx |
| 4 |
%% |
| 5 |
% Copyright (C) 2023-2025 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 |
%<*package> |
| 15 |
\def\ltlabnamesdate{2025-08-14} |
| 16 |
\def\ltlabnamesversion{0.8f} |
| 17 |
%</package> |
| 18 |
%<*driver> |
| 19 |
\DocumentMetadata{tagging=on,pdfstandard=ua-2} |
| 20 |
\documentclass[kernel]{l3doc} |
| 21 |
\usepackage{latex-lab-testphase-l3doc} |
| 22 |
\usepackage{amstext} |
| 23 |
\EnableCrossrefs |
| 24 |
\CodelineIndex |
| 25 |
|
| 26 |
\usepackage{todonotes} |
| 27 |
|
| 28 |
\begin{document} |
| 29 |
\DocInput{latex-lab-namespace.dtx} |
| 30 |
\end{document} |
| 31 |
%</driver> |
| 32 |
% \fi |
| 33 |
% \title{Prototype reimplementation of \LaTeXe{}'s role mapping} |
| 34 |
% \author{\LaTeX{} Project, initial implementation Ulrike Fischer} |
| 35 |
% \date{v\ltlabnamesversion\ \ltlabnamesdate} |
| 36 |
% |
| 37 |
% \maketitle |
| 38 |
% |
| 39 |
% \begin{documentation} |
| 40 |
% |
| 41 |
% |
| 42 |
% |
| 43 |
% \section{Introduction} |
| 44 |
% |
| 45 |
% This file provides support for tag names and symbolic structure names. |
| 46 |
% |
| 47 |
% At first, it creates tagpdf-ns-latex-lab.def which collects tag names |
| 48 |
% from the \LaTeX{} namespace and their role mapping. |
| 49 |
% The names and the roles are not necessarily the final ones! |
| 50 |
% |
| 51 |
% Later settings of the same tag overwrite previous settings. |
| 52 |
% The syntax of a line is a list of three strings ending with commas: |
| 53 |
% \begin{verbatim} |
| 54 |
% latex-tag, PDF-tag, name space, |
| 55 |
% \end{verbatim} |
| 56 |
% |
| 57 |
% The name space is normally pdf2 with the exception of the following PDF-tags |
| 58 |
% which are only in pdf namespace: |
| 59 |
% Art, BlockQuote, TOC, TOCI, Index, Private, Quote, Note, |
| 60 |
% Reference, BibEntry, Code. |
| 61 |
% |
| 62 |
% At second it provides an interface to use symbolic structure names |
| 63 |
% which can be used in the \texttt{tag} key of \cs{tagstructbegin}. |
| 64 |
% The symbolic names are strings |
| 65 |
% structured with slashes similar to the names of (tagging) sockets. |
| 66 |
% The list of such names used by \LaTeX{} is below in the implementation section. |
| 67 |
% |
| 68 |
% In PDF 2.0 there are namespaces, so theoretically it is possible to use the |
| 69 |
% same tag name for different purposes and with different role mapping. |
| 70 |
% But practically this is not an option as we build also a global RoleMap |
| 71 |
% dictionary for compatibility with applications that are not PDF 2.0 aware, |
| 72 |
% and this dictionary can only contain unique tag names. So we assume that tag |
| 73 |
% names are used only once across all namespaces. Documents that want to use |
| 74 |
% their own specialized tag names must take care not to clash with existing names, |
| 75 |
% e.g., by using a specific prefix on all their tag names. |
| 76 |
% |
| 77 |
% \begin{function}{\NewStructureName} |
| 78 |
% \begin{syntax} |
| 79 |
% \cs{NewStructureName}\Arg{symbolic name} |
| 80 |
% \end{syntax} |
| 81 |
% This declares a new symbolic |
| 82 |
% structure name \meta{symbolic name} which is initially |
| 83 |
% defined as \texttt{NonStruct}. To assign it another role use |
| 84 |
% \cs{AssignStructureRole} described below. |
| 85 |
% \end{function} |
| 86 |
% |
| 87 |
% \begin{function}[EXP]{\UseStructureName} |
| 88 |
% \begin{syntax} |
| 89 |
% \cs{UseStructureName}\Arg{symbolic name} |
| 90 |
% \end{syntax} |
| 91 |
% This uses the new symbolic structure name \meta{symbolic name}, e.g.\\ |
| 92 |
% \verb+tagstructbegin{tag=\UseStructureName{sec/section}}+ is the same as |
| 93 |
% \verb+tagstructbegin{tag=Sect}+ assuming that |
| 94 |
% \verb+\NewStructureName{sec/section}+ and \verb+\AssignStructureRole{sec/section}{Sect}+ |
| 95 |
% has been used before. |
| 96 |
% \end{function} |
| 97 |
% |
| 98 |
% \begin{function}{\AssignStructureRole} |
| 99 |
% \begin{syntax} |
| 100 |
% \cs{AssignStructureRole}\Arg{symbolic name}\Arg{role} |
| 101 |
% \end{syntax} |
| 102 |
% This assigns to the symbolic structure name \meta{symbolic name} the role \meta{role}. |
| 103 |
% \meta{symbolic name} must have been declared first with \verb+\NewStructureName+. |
| 104 |
% If \meta{role} is a known role it is simply used. If it is unknown, it is declared |
| 105 |
% first and rolemapped to the tag currently stored for \meta{name}. So |
| 106 |
% \begin{verbatim} |
| 107 |
% \NewStructureName{sec/section} |
| 108 |
% % structure with tag 'NonStruct' |
| 109 |
% \tagstructbegin{tag=\UseStructureName{sec/section}} |
| 110 |
% |
| 111 |
% \AssignStructureRole{sec/section}{Sect} |
| 112 |
% % structure with tag 'Sect' |
| 113 |
% \tagstructbegin{tag=\UseStructureName{sec/section}} |
| 114 |
% |
| 115 |
% \AssignStructureRole{sec/section}{Abschnitt} |
| 116 |
% % structure with tag 'Abschnitt' rolemapped to 'Sect' |
| 117 |
% \tagstructbegin{tag=\UseStructureName{sec/section}} |
| 118 |
% |
| 119 |
% \AssignStructureRole{sec/section}{Figure} |
| 120 |
% % structure with tag 'Figure' |
| 121 |
% \tagstructbegin{tag=\UseStructureName{sec/section}} |
| 122 |
% \end{verbatim} |
| 123 |
% |
| 124 |
% Assigning a symbolic structure name a role that is not suitable for the |
| 125 |
% structure element can lead to invalid tagging and parent-child warnings! |
| 126 |
% \end{function} |
| 127 |
% \end{documentation} |
| 128 |
% |
| 129 |
% \begin{implementation} |
| 130 |
% \changes{v0.8c}{2025/01/12}{changed mapping of verbatim to Code as Sub is now allowed inside Code} |
| 131 |
% \begin{macrocode} |
| 132 |
%<*ns-latex-lab> |
| 133 |
%% \ProvidesExplFile {tagpdf-ns-latex-lab.def} {2023-09-04} {0.8} |
| 134 |
%% {latex} {https://www.latex-project.org/ns/lab/2022}{} |
| 135 |
% \end{macrocode} |
| 136 |
% \subsection{Role from tagpdf} |
| 137 |
% The following tags are already set by tagpdf, so deleting here will not remove them. |
| 138 |
% \begin{macrocode} |
| 139 |
title, Title, pdf2, |
| 140 |
part, Title, pdf2, |
| 141 |
% \end{macrocode} |
| 142 |
% Headings differ in article and book class. This here is for article: |
| 143 |
% \begin{macrocode} |
| 144 |
section, H1, pdf2, |
| 145 |
subsection, H2, pdf2, |
| 146 |
subsubsection,H3, pdf2, |
| 147 |
paragraph, H4, pdf2, |
| 148 |
subparagraph, H5, pdf2, |
| 149 |
% \end{macrocode} |
| 150 |
% And this here is used in book: |
| 151 |
% \begin{macrocode} |
| 152 |
%chapter, H1, pdf2, |
| 153 |
%section, H2, pdf2, |
| 154 |
%subsection, H3, pdf2, |
| 155 |
%subsubsection, H4, pdf2, |
| 156 |
%paragraph, H5, pdf2, |
| 157 |
%subparagraph, H6, pdf2, |
| 158 |
% \end{macrocode} |
| 159 |
% |
| 160 |
% \begin{macrocode} |
| 161 |
list, L, pdf2, |
| 162 |
itemize, L, pdf2, |
| 163 |
enumerate, L, pdf2, |
| 164 |
description, L, pdf2, |
| 165 |
quote, BlockQuote,pdf, |
| 166 |
quotation, BlockQuote,pdf, |
| 167 |
verbatim, Code, pdf, % overwritten by block |
| 168 |
item, LI, pdf2, |
| 169 |
itemlabel, Lbl, pdf2, |
| 170 |
itembody, LBody, pdf2, |
| 171 |
footnote, FENote, pdf2, |
| 172 |
footnotemark, Lbl, pdf2, |
| 173 |
footnotelabel,Lbl, pdf2, |
| 174 |
text-unit, Part, pdf2, |
| 175 |
text, P, pdf2, |
| 176 |
% \end{macrocode} |
| 177 |
% \subsection{From sec code} |
| 178 |
% \begin{macrocode} |
| 179 |
section-number, Span, pdf2, |
| 180 |
% \end{macrocode} |
| 181 |
% \subsection{From block code} |
| 182 |
% \begin{macrocode} |
| 183 |
theorem-like, Sect, pdf2, |
| 184 |
verbatim, Code, pdf, |
| 185 |
codeline, Sub, pdf2, |
| 186 |
% \end{macrocode} |
| 187 |
% \subsection{From float code} |
| 188 |
% \begin{macrocode} |
| 189 |
float, Aside, pdf2, |
| 190 |
figures, Sect, pdf2, |
| 191 |
tables, Sect, pdf2, |
| 192 |
% \end{macrocode} |
| 193 |
% \begin{macrocode} |
| 194 |
%</ns-latex-lab> |
| 195 |
% \end{macrocode} |
| 196 |
% |
| 197 |
% \begin{macrocode} |
| 198 |
%<*package> |
| 199 |
\ProvidesExplPackage {latex-lab-testphase-names} {\ltlabnamesdate} {\ltlabnamesversion} |
| 200 |
{Code related to the names of tags} |
| 201 |
% \end{macrocode} |
| 202 |
% \begin{macrocode} |
| 203 |
%<@@=tag> |
| 204 |
% \end{macrocode} |
| 205 |
% |
| 206 |
% \begin{macro}{\AssignStructureRole} |
| 207 |
% We redefine \cs{AssignStructureRole} to setup that tagging rolemapping |
| 208 |
% \begin{macrocode} |
| 209 |
\cs_set_protected:Npn\AssignStructureRole#1#2 |
| 210 |
{ |
| 211 |
\prop_get:NnNF\g_@@_role_tags_NS_prop{#2}\l_@@_tmp_unused_tl |
| 212 |
{\exp_args:Ne\tagpdfsetup{role/new-tag=#2/\UseStructureName{#1}}} |
| 213 |
\tl_set:cn { l_@@_name_#1_tl }{#2} |
| 214 |
} |
| 215 |
% \end{macrocode} |
| 216 |
% \end{macro} |
| 217 |
% \begin{macrocode} |
| 218 |
%</package> |
| 219 |
% \end{macrocode} |
| 220 |
% |
| 221 |
% \subsection{Symbolic names} |
| 222 |
% These are the planned symbolic structure names. |
| 223 |
% Every commented name is not decided and not used yet and can change in future. |
| 224 |
% |
| 225 |
% \subsubsection{Paragraphs} |
| 226 |
% |
| 227 |
% \begin{macrocode} |
| 228 |
%<*package> |
| 229 |
\NewStructureName{para/textblock} |
| 230 |
\AssignStructureRole{para/textblock}{text} |
| 231 |
\NewStructureName{para/semantic} |
| 232 |
\AssignStructureRole{para/semantic}{text-unit} |
| 233 |
%</package> |
| 234 |
% \end{macrocode} |
| 235 |
% |
| 236 |
% \subsubsection{Sectioning commands} |
| 237 |
% \begin{macrocode} |
| 238 |
%<*package> |
| 239 |
%-1=part, 0=chapter, 1=section etc |
| 240 |
\NewStructureName{sec/-1} |
| 241 |
\AssignStructureRole{sec/-1}{Part} |
| 242 |
\NewStructureName{sec/-1/title} |
| 243 |
\AssignStructureRole{sec/-1/title}{part} |
| 244 |
\NewStructureName{sec/-1/titleline} |
| 245 |
% \end{macrocode} |
| 246 |
% Sub does not work as part is rolemapped to Title so we use Span |
| 247 |
% \begin{macrocode} |
| 248 |
\AssignStructureRole{sec/-1/titleline}{Span} |
| 249 |
\NewStructureName{sec/-1/number} |
| 250 |
\AssignStructureRole{sec/-1/number}{section-number} |
| 251 |
\NewStructureName{sec/0} |
| 252 |
\AssignStructureRole{sec/0}{Sect} |
| 253 |
\NewStructureName{sec/0/title} |
| 254 |
\AssignStructureRole{sec/0/title}{chapter} |
| 255 |
\NewStructureName{sec/0/titleline} |
| 256 |
\AssignStructureRole{sec/0/titleline}{Span} |
| 257 |
\NewStructureName{sec/0/number} |
| 258 |
\AssignStructureRole{sec/0/number}{section-number} |
| 259 |
\NewStructureName{sec/1} |
| 260 |
\AssignStructureRole{sec/1}{Sect} |
| 261 |
\NewStructureName{sec/1/title} |
| 262 |
\AssignStructureRole{sec/1/title}{section} |
| 263 |
\NewStructureName{sec/1/number} |
| 264 |
\AssignStructureRole{sec/1/number}{section-number} |
| 265 |
\NewStructureName{sec/2} |
| 266 |
\AssignStructureRole{sec/2}{Sect} |
| 267 |
\NewStructureName{sec/2/title} |
| 268 |
\AssignStructureRole{sec/2/title}{subsection} |
| 269 |
\NewStructureName{sec/2/number} |
| 270 |
\AssignStructureRole{sec/2/number}{section-number} |
| 271 |
\NewStructureName{sec/3} |
| 272 |
\AssignStructureRole{sec/3}{Sect} |
| 273 |
\NewStructureName{sec/3/title} |
| 274 |
\AssignStructureRole{sec/3/title}{subsubsection} |
| 275 |
\NewStructureName{sec/3/number} |
| 276 |
\AssignStructureRole{sec/3/number}{section-number} |
| 277 |
\NewStructureName{sec/4} |
| 278 |
\AssignStructureRole{sec/4}{Sect} |
| 279 |
\NewStructureName{sec/4/title} |
| 280 |
\AssignStructureRole{sec/4/title}{paragraph} |
| 281 |
\NewStructureName{sec/4/number} |
| 282 |
\AssignStructureRole{sec/4/number}{section-number} |
| 283 |
\NewStructureName{sec/5} |
| 284 |
\AssignStructureRole{sec/5}{Sect} |
| 285 |
\NewStructureName{sec/5/title} |
| 286 |
\AssignStructureRole{sec/5/title}{subparagraph} |
| 287 |
\NewStructureName{sec/5/number} |
| 288 |
\AssignStructureRole{sec/5/number}{section-number} |
| 289 |
%</package> |
| 290 |
% \end{macrocode} |
| 291 |
% |
| 292 |
% \subsubsection{Table of contents and similar} |
| 293 |
% \begin{macrocode} |
| 294 |
%\NewStructureName{toc} |
| 295 |
%\AssignStructureRole{toc}{TOC} |
| 296 |
%\NewStructureName{toc/item} |
| 297 |
%\AssignStructureRole{toc/item}{TOCI} |
| 298 |
%\NewStructureName{toc/item/label} |
| 299 |
%\AssignStructureRole{toc/item/label}{Lbl} |
| 300 |
%\NewStructureName{toc/item/text} |
| 301 |
%\AssignStructureRole{toc/item/text}{Reference} |
| 302 |
%\NewStructureName{toc/item/page} |
| 303 |
%\AssignStructureRole{toc/item/page}{Reference} |
| 304 |
% \end{macrocode} |
| 305 |
% |
| 306 |
% \subsubsection{Title} |
| 307 |
% The title code currently only actively sets the Title, the rest is through paragraph tagging. |
| 308 |
% \begin{macrocode} |
| 309 |
%\NewStructureName{title/env} |
| 310 |
%\AssignStructureRole{title/env}{Part} % e.g. around a titlepage |
| 311 |
%\NewStructureName{title/text} |
| 312 |
%\AssignStructureRole{title/text}{Title} |
| 313 |
% \end{macrocode} |
| 314 |
% |
| 315 |
% \subsubsection{Lists and blocks} |
| 316 |
% \begin{macrocode} |
| 317 |
%\NewStructureName{block/inner} |
| 318 |
%\AssignStructureRole{block/inner}{Div} %changeable |
| 319 |
%\NewStructureName{block/itemize} |
| 320 |
%\AssignStructureRole{block/itemize}{itemize} |
| 321 |
%\NewStructureName{block/itemize/item} |
| 322 |
%\AssignStructureRole{block/itemize/item}{LI} |
| 323 |
%\NewStructureName{block/itemize/label} |
| 324 |
%\AssignStructureRole{block/itemize/label}{Lbl} |
| 325 |
%\NewStructureName{block/itemize/body} |
| 326 |
%\AssignStructureRole{block/itemize/body}{LBody} |
| 327 |
%\NewStructureName{block/description} |
| 328 |
%\AssignStructureRole{block/description}{description} |
| 329 |
%\NewStructureName{block/description/item} |
| 330 |
%\AssignStructureRole{block/description/item}{LI} |
| 331 |
%\NewStructureName{block/description/label} |
| 332 |
%\AssignStructureRole{block/description/label}{Lbl} |
| 333 |
%\NewStructureName{block/description/body} |
| 334 |
%\AssignStructureRole{block/description/body}{LBody} |
| 335 |
%\NewStructureName{block/enumerate} |
| 336 |
%\AssignStructureRole{block/enumerate}{enumerate} |
| 337 |
%\NewStructureName{block/enumerate/item} |
| 338 |
%\AssignStructureRole{block/enumerate/item}{LI} |
| 339 |
%\NewStructureName{block/enumerate/label} |
| 340 |
%\AssignStructureRole{block/enumerate/label}{Lbl} |
| 341 |
%\NewStructureName{block/enumerate/body} |
| 342 |
%\AssignStructureRole{block/enumerate/body}{LBody} |
| 343 |
%\NewStructureName{block/list} |
| 344 |
%\AssignStructureRole{block/list}{L} |
| 345 |
%\NewStructureName{block/list/item} |
| 346 |
%\AssignStructureRole{block/list/item}{LI} |
| 347 |
%\NewStructureName{block/list/label} |
| 348 |
%\AssignStructureRole{block/list/label}{Lbl} |
| 349 |
%\NewStructureName{block/list/body} |
| 350 |
%\AssignStructureRole{block/list/body}{LBody} |
| 351 |
%\NewStructureName{block/quote} |
| 352 |
%\AssignStructureRole{block/quote}{quote} |
| 353 |
%\NewStructureName{block/quotation} |
| 354 |
%\AssignStructureRole{block/quotation}{quotation} |
| 355 |
%\NewStructureName{block/center} |
| 356 |
%\AssignStructureRole{block/center}{text-unit} |
| 357 |
%\NewStructureName{block/flushright} |
| 358 |
%\AssignStructureRole{block/flushright}{text-unit} |
| 359 |
%\NewStructureName{block/flushleft} |
| 360 |
%\AssignStructureRole{block/flushleft}{text-unit} |
| 361 |
% |
| 362 |
%\NewStructureName{block/verbatim} |
| 363 |
%\AssignStructureRole{block/verbatim}{verbatim} |
| 364 |
%\NewStructureName{block/verbatim/codeline} |
| 365 |
%\AssignStructureRole{block/verbatim/codeline}{codeline} |
| 366 |
%\NewStructureName{block/verbatim/linenumber} |
| 367 |
%\AssignStructureRole{block/verbatim/linenumber}{Lbl} |
| 368 |
% |
| 369 |
%\NewStructureName{block/theorem} |
| 370 |
%\AssignStructureRole{block/theorem}{theorem-like} |
| 371 |
%\NewStructureName{block/theorem/caption} |
| 372 |
%\AssignStructureRole{block/theorem/caption}{Caption} |
| 373 |
%\NewStructureName{block/theorem/label} |
| 374 |
%\AssignStructureRole{block/theorem/label}{Lbl} |
| 375 |
% |
| 376 |
%\NewStructureName{block/bib} |
| 377 |
%\AssignStructureRole{block/bib}{L} |
| 378 |
%\NewStructureName{block/bib/label} |
| 379 |
%\AssignStructureRole{block/bib/label}{Lbl} |
| 380 |
%\NewStructureName{block/bib/item} |
| 381 |
%\AssignStructureRole{block/bib/item}{LI} |
| 382 |
%\NewStructureName{block/bib/body} |
| 383 |
%\AssignStructureRole{block/bib/body}{LBody} |
| 384 |
% \end{macrocode} |
| 385 |
% |
| 386 |
%\subsubsection{References and Links} |
| 387 |
% |
| 388 |
% \begin{macrocode} |
| 389 |
%\NewStructureName{ref} |
| 390 |
%\AssignStructureRole{ref}{Reference} |
| 391 |
%\NewStructureName{link} |
| 392 |
%\AssignStructureRole{link}{Link} |
| 393 |
%\NewStructureName{ref/cite} |
| 394 |
%\AssignStructureRole{ref/cite}{Reference} |
| 395 |
% \end{macrocode} |
| 396 |
% |
| 397 |
% \subsubsection{Tables} |
| 398 |
% |
| 399 |
% \begin{macrocode} |
| 400 |
%\NewStructureName{tbl/table} |
| 401 |
%\AssignStructureRole{tbl/table}{Table} |
| 402 |
%\NewStructureName{tbl/table/row} |
| 403 |
%\AssignStructureRole{tbl/table/row}{TR} |
| 404 |
%\NewStructureName{tbl/table/cell} |
| 405 |
%\AssignStructureRole{tbl/table/cell}{TD} |
| 406 |
%\NewStructureName{tbl/table/pcell} |
| 407 |
%\AssignStructureRole{tbl/table/pcell}{TD} |
| 408 |
%\NewStructureName{tbl/table/hcell} |
| 409 |
%\AssignStructureRole{tbl/table/hcell}{TH} |
| 410 |
% \end{macrocode} |
| 411 |
% THead and TFoot are currently not used but are perhaps needed later |
| 412 |
% \begin{macrocode} |
| 413 |
%\NewStructureName{tbl/table/head} |
| 414 |
%\AssignStructureRole{tbl/table/head}{} |
| 415 |
%\NewStructureName{tbl/table/foot} |
| 416 |
%\AssignStructureRole{tbl/table/foot}{} |
| 417 |
% \end{macrocode} |
| 418 |
% |
| 419 |
% \subsubsection{Floats} |
| 420 |
% \begin{macrocode} |
| 421 |
%\NewStructureName{float/figures} |
| 422 |
%\AssignStructureRole{float/figures}{Sect} |
| 423 |
%\NewStructureName{float/tables} |
| 424 |
%\AssignStructureRole{float/tables}{Sect} |
| 425 |
%\NewStructureName{float/figure} |
| 426 |
%\AssignStructureRole{float/figure}{Aside} |
| 427 |
%\NewStructureName{float/table} |
| 428 |
%\AssignStructureRole{float/table}{Aside} |
| 429 |
%\NewStructureName{float/figure/caption} |
| 430 |
%\AssignStructureRole{float/figure/caption}{Caption} |
| 431 |
%\NewStructureName{float/table/caption} |
| 432 |
%\AssignStructureRole{float/table/caption}{Caption} |
| 433 |
%\NewStructureName{float/figure/label} |
| 434 |
%\AssignStructureRole{float/figure/label}{Lbl} |
| 435 |
%\NewStructureName{float/table/label} |
| 436 |
%\AssignStructureRole{float/table/label}{Lbl} |
| 437 |
% \end{macrocode} |
| 438 |
% |
| 439 |
% \subsubsection{Footnotes} |
| 440 |
% |
| 441 |
% \begin{macrocode} |
| 442 |
%\NewStructureName{fnote/mark} |
| 443 |
%\AssignStructureRole{fnote/mark}{footnotemark} |
| 444 |
%\NewStructureName{fnote/note} |
| 445 |
%\AssignStructureRole{fnote/note}{footnote} |
| 446 |
%\NewStructureName{fnote/note/label} |
| 447 |
%\AssignStructureRole{fnote/note/label}{footnotelabel} |
| 448 |
% \end{macrocode} |
| 449 |
% |
| 450 |
% \subsubsection{Graphics} |
| 451 |
% \begin{macrocode} |
| 452 |
%\NewStructureName{graphic} |
| 453 |
%\AssignStructureRole{graphic}{Figure} |
| 454 |
% \end{macrocode} |
| 455 |
% |
| 456 |
% \subsubsection{Marginnotes} |
| 457 |
% \begin{macrocode} |
| 458 |
%\NewStructureName{marginnote} |
| 459 |
%\AssignStructureRole{marginnote}{Aside} |
| 460 |
% \end{macrocode} |
| 461 |
% |
| 462 |
% \subsubsection{Minipages and parboxes} |
| 463 |
% \begin{macrocode} |
| 464 |
%\NewStructureName{vbox} |
| 465 |
%\AssignStructureRole{vbox}{Div} |
| 466 |
% \end{macrocode} |
| 467 |
% |
| 468 |
% \subsubsection{Text} |
| 469 |
% \begin{macrocode} |
| 470 |
%\NewStructureName{text/span} |
| 471 |
%\AssignStructureRole{text/span}{Span} |
| 472 |
%\NewStructureName{text/emph} |
| 473 |
%\AssignStructureRole{text/emph}{Em} |
| 474 |
% \end{macrocode} |
| 475 |
% |
| 476 |
% \subsubsection{Math} |
| 477 |
% Math uses internally MathML and this should not be remapped so we need only |
| 478 |
% names for the outer \texttt{Formula} tag and perhaps for a label: |
| 479 |
% \begin{macrocode} |
| 480 |
%\NewStructureName{math/inline} |
| 481 |
%\AssignStructureRole{math/inline}{Formula} |
| 482 |
%\NewStructureName{math/display} |
| 483 |
%\AssignStructureRole{math/display}{Formula} |
| 484 |
%\NewStructureName{math/label} |
| 485 |
%\AssignStructureRole{math/label}{Lbl} |
| 486 |
% \end{macrocode} |
| 487 |
% |
| 488 |
% \subsection{Index and glossaries} |
| 489 |
% Tagging not decided yet. |
| 490 |
% \end{implementation} |
| 491 |
\endinput |