-
Notifications
You must be signed in to change notification settings - Fork 362
a11y - add support for tagpdf #13124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
We're still going to be missing math support: https://theaccessibilityguy.com/how-to-use-latex-for-accessible-math-in-pdfs/ |
\DocumentMetadata{% | ||
lang = en-us, | ||
pdfversion = 2.0, | ||
pdfstandard = ua-2, | ||
tagging = on, | ||
tagging-setup = {math/setup=mathml-SE} | ||
} | ||
\tagpdfsetup{activate, tabsorder=structure} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should be configurable for users who desire to configure the \DocumentMetadata
. There are a few options with different values like lang
or pdfstandard
Documented at https://mirrors.ctan.org/macros/latex/required/latex-lab/documentmetadata-support-code.pdf
I guess this is how Pandoc would add it in its template.
Otherwise, if we put it in its own partials (taggedpdf.tex
for example), then this would be really easy for a user to pass its own version with modified options. Could be worth it if we are not sure yet what to expose as config
pdf:
tagpdf:
pdfstandard: ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like having a taggedpdf.tex partial.
The docs suggest to use |
Yes it should, but is lualatex-dev ship with TeX Live ? On my installation I don't see it
|
I found an old Dockerfile from last year that I had written to experiment with tagging. This is what I used: FROM pandoc/latex
RUN tlmgr install \
l3experimental \
latex-base-dev \
latex-bin-dev \
pdfmanagement-testphase \
tagpdf && \
mv /opt/texlive/texdir/bin/default/lualatex \
/opt/texlive/texdir/bin/default/lualatex-original && \
ln -s /opt/texlive/texdir/bin/default/lualatex-dev \
/opt/texlive/texdir/bin/default/lualatex I think the linking was necessary because pandoc doesn't accept a program named |
For what's worth, I didn't need to call |
This won't work until we pull Pandoc 3.7.0.2 as a binary dependency. But when we do, the test
tests/docs/smoke-all/latex/tagpdf.qmd
should pass.