### Encode code line using MathML mtable Source: https://latex3.github.io/tagging-project/documentation/wtpdf/verbatim Example of encoding a line of code within an mtable element with a literal intent. ```xml main( ) { ``` -------------------------------- ### Configure LaTeX for Tagged PDF Output Source: https://latex3.github.io/tagging-project/documentation/wtpdf/small-example Use the \DocumentMetadata command before \documentclass to define document language, PDF version, and standards compliance. The tagging-setup key allows for specific MathML integration configurations. ```latex % Using the \DocumentMetadata command results in a tagged and accessible PDF file. % Use ‘pdfversion’ and ‘pdfstandard’ keys to select the output file type. \DocumentMetadata{ lang = en, pdfversion = 2.0, % or 1.7 if desired pdfstandard = UA-1 pdfstandard = UA-2, % or UA-1 if pdfversion = 1.7 pdfstandard = A-4f, % 4f allows embedd CSS files. tagging-setup = {math/setup=mathml-SE} % Or mathml-AF (see below) } % The above declaration results in a tagged PDF with MathML included via structure elements (tags). % Remove the `tagging-setup` line, or change to `mathml-AF` to generate a tagged PDF with % MathML Associated Files. MathML files may be embedded while conforming to % PDF/A-4, however as LaTeX embeds additional CSS PDF/A-4f is required, \documentclass{article} % Using Unicode math fonts improves the tagging of math. \usepackage{unicode-math} % Classic LaTeX document markup from here. \begin{document} \section{A small example} Some inline mathematics involving $x\in\symbb{R}$. A list of items \begin{enumerate} \item a first item; \item a second item; \item a third item. \end{enumerate} Display math \[ c=\sqrt{a^2+b^2} \] \end{document} ``` -------------------------------- ### Configure MathML via associated files Source: https://latex3.github.io/tagging-project/documentation/wtpdf/larger-example Use this configuration to represent formulas as embedded Associated Files (AF) within the PDF. ```latex \DocumentMetadata{ lang = en, pdfversion = 2.0, pdfstandard = UA-2, pdfstandard = A-4f, tagging-setup = {math/setup=mathml-AF, extra-modules={verbatim-af}} } \AtBeginDocument{ \AssignTaggingSocketPlug{math/display/tag/begin}{noop} \AssignTaggingSocketPlug{math/display/tag/end}{noop} } \input{stem-article-2col} ``` -------------------------------- ### Configure MathML via structure elements Source: https://latex3.github.io/tagging-project/documentation/wtpdf/larger-example Use this configuration to embed MathML directly into the PDF's tags tree as structure elements. ```latex \DocumentMetadata{ lang = en, pdfversion = 2.0, pdfstandard = UA-2, pdfstandard = A-4f, % even with SE this requires 4f because of embedded CSS tagging-setup = {math/setup=mathml-SE, extra-modules={verbatim-mo}} } \input{stem-article-2col} ``` -------------------------------- ### Display Braille for original source code Source: https://latex3.github.io/tagging-project/documentation/wtpdf/verbatim Shows the Braille representation of the first line of source code using default NVDA settings. ```text main( ) { ⠍ ⠁ ⠊ ⠝ ⠐ ⠣   ⠐ ⠜   ⠸ ⠣                                                         ``` -------------------------------- ### Display Braille for Alt-tagged code Source: https://latex3.github.io/tagging-project/documentation/wtpdf/verbatim Shows how the code is rendered into two lines when using Alt attributes for accessibility. ```text new line main open paren close p   ⠝ ⠑ ⠺   ⠇ ⠊ ⠝ ⠑     ⠍ ⠁ ⠊ ⠝   ⠕ ⠏ ⠑ ⠝   ⠏ ⠁ ⠗ ⠑ ⠝       ⠉ ⠇ ⠕ ⠎ ⠑             paren open brace ⠏ ⠁ ⠗ ⠑ ⠝       ⠕ ⠏ ⠑ ⠝   ⠃ ⠗ ⠁ ⠉ ⠑                                             ``` -------------------------------- ### Display Braille for MathML-tagged code Source: https://latex3.github.io/tagging-project/documentation/wtpdf/verbatim Shows the Braille output when using MathML to tag symbols in the code. ```text main ( ) {   ⠍ ⠁ ⠊ ⠝   ⠷         ⠾         ⠨ ⠷                                             ``` -------------------------------- ### Two-column LaTeX document structure Source: https://latex3.github.io/tagging-project/documentation/wtpdf/larger-example A template for a two-column article with basic tagging support and standard document packages. ```latex \documentclass[a4paper,twocolumn]{article} \usepackage{unicode-math} \usepackage{graphicx} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \usepackage[colorlinks]{hyperref} \addtolength\marginparwidth{1.3cm} \addtolength\textheight{-5\baselineskip} \addtolength\paperheight{-5\baselineskip} \counterwithin{equation}{section} % stub if not tagging \providecommand\tagpdfsetup[1]{} \begin{document} \title{A Two Column Example} \date{2025-06-18} \author{The \LaTeX\ Team} \pagestyle{headings} \maketitle \begin{abstract} An example document showing automatic tagging of typical structures found in a \LaTeX\ document, including titles, sections, theorems, lists, citation lists and mathematics. A two column layout is used, the tagging enables the reading order to correctly follow the flow of text through the columns. \end{abstract} \tableofcontents \section{Introduction} This document shows a typical two-column document incorporating tables, figures and mathematics. Apart from two commands at the start to enable tagging, and a small amount of additional markup to give alternative texts for graphics inclusion, and to specify the heading rows of tables.% \footnote{The current tagging markup for tables is temporary and a new interface ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.