On Sat, Jul 25, 2026 at 02:08:47PM +0100, David Carlisle wrote:
> Not sure if you want to document this, or perhaps only for your own
> information, if alt was passed through the following would be enough to
> generate tagged pdf usable for a screen reader
>
> texi2any --latex -I . -o asymptote.tex asymptote.texi
>
> to get asymptote.tex then run lualatex through a file say
> asymptote-tagged.tex that contains just
>
>
> \DocumentMetadata{tagging=on,
> pdfstandard=UA-2
> }
> \AtBeginDocument{\hypersetup{pdftitle=asymptote manual}}
> \RequirePackage{unicode-math}
> \input{asymptote}
We could output that kind of code based on a customization variable too.
Should \usepackage{unicode-math} replace \usepackage{amsmath} or should
it be there in addition? And is \usepackage{amsfonts} needed/useful if
\usepackage{unicode-math} is in the header?
> If texinfo has the document title to hand it could probably add that by
> default as well but as you see if it doesn't it's not too bad I just need
> AtBeginDocument here so the setting is delayed until hyperref package is
> loaded.
We should add it by default, as we have ways to get a title that should
make sense, using @settitle or other possibilities as we do for HTML
output.
We cannot know if there are characters that would be problematic, both
in alt= for images and in the pdftitle=. Which characters should be
escaped and how? Is that described somewhere that could be used for all
the graphicx/hyperref options?
--
Pat