-
Notifications
You must be signed in to change notification settings - Fork 404
Closed
Labels
accessibilityenhancementNew feature or requestNew feature or requestmathany issue related to math support in specific formatsany issue related to math support in specific formatstypst
Description
PDF UA-1 accessibility standard requires math equations (cross-references) to have alternative text.
Typst (> 0.14) supports this with alt of math.equation() but currently cannot be set.
quarto-cli/src/resources/filters/crossref/equations.lua
Lines 56 to 63 in c7b25ea
elseif _quarto.format.isTypstOutput() then local is_block = eq.mathtype == "DisplayMath" and "true" or "false" targetInlines:insert(pandoc.RawInline("typst", "#math.equation(block: " .. is_block .. ", numbering: \"(1)\", " .. "[ ")) targetInlines:insert(eq) targetInlines:insert(pandoc.RawInline("typst", " ])<" .. label .. ">")) else
Expected:
---
format:
typst:
keep-typ: true
---
$$
E = mc^2
$$
$$
E = mc^2
$$ {#eq-einstein alt="Einstein's mass-energy equivalence formula"}...
$ E = m c^2 $
#math.equation(block: true, alt: "Einstein's mass-energy equivalence formula", numbering: "(1)", [ $ E = m c^2 $ ])<eq-einstein>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
accessibilityenhancementNew feature or requestNew feature or requestmathany issue related to math support in specific formatsany issue related to math support in specific formatstypst