ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Alternate text for figures that includes math
@ 2025-06-15 16:03 Matthias Weber
  0 siblings, 0 replies; only message in thread
From: Matthias Weber @ 2025-06-15 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear All, 

When tagging an image, it looks like the provided alternative text is used verbatim. That means no TeX commands are interpreted, nor any math is being interpreted. Is it possible to serialize the math in an alternate text (as the tracker does with the non-ALT math in the example below)? 
I can do this manually, but my figures contain quite a bit of math, and it would be nice if alternate text for math is provided consistently throughout the document.


Thanks,
Matthias

\usemodule[mathml]

\enabledirectives [backend.usetags=testing]
 \setuptagging[state=start]
 \setupstructure[state=start]
 \setupbackend
   [format=PDF/A-3a]
 \setupbackend[format=pdf/ua-1]
 \setupexternalfigures[location=default]

\setupnote[mathnote][location=page]
\enabletrackers[math.textblobs]


\starttext

\placefigure
[here]
[] % label
{}   % legend
{\externalfigure[cow][label={A cow, contemplating $e^{\pi i}+1=0$}]} % path

A human, contemplating $e^{\pi i}+1=0$.
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-06-15 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-15 16:03 [NTG-context] Alternate text for figures that includes math Matthias Weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).