Hi Arkadiusz,

thanks for contacting. As Ihor said, this feature is just "out of the oven".

In your case and since you will need it in all documents, you can customise
variable
org-latex-doc-metadata
in your .emacs to make it best fit your setup. You could, for example, add:

(setq-default org-latex-doc-metadata "lang=pl-PL,
  pdfversion=2.0,
  pdfstandard=ua-2,
  tagging=on
")

And that will include:

\DocumentMetadata { lang=pl-PL,
  pdfversion=2.0,
  pdfstandard=ua-2,
  tagging=on
}

In all your generated LaTeX which shoud activate tagging in all your
documents.
I'm not an expert, but I'd really love to learn to improve the output in
this field, since I anticipate I'll need it sooner than later.
If you can help us understand, for example the tagpdf package, that will
surely make all our lives easier.

best wishes,
/Pedro A. Aranda
ox-latex & ox-beamer maintainer


On Mon, 6 Jul 2026 at 06:55, Ihor Radchenko <[email protected]> wrote:

> Arkadiusz Świętnicki <[email protected]> writes:
>
> > I am a blind accessibility specialist trying to create PDF files
> > compatible with the UA2 standard. I use LaTeX as my language, and
> > Lualatex as my compiler, as pdflatex does not support creating tagged
> > PDF. From what I understand, the Org's default PDF template does not
> > include the necessary directives to make a tagged PDF. So I have added
> > them like so
> >
> > #+latex_compiler: lualatex
> > #+latex_class: report
> > #+latex_class_options: [a4paper,11pt,oneside]
> >
> > #+latex_class_pre: \DocumentMetadata{
> > #+latex_class_pre:   lang=pl-PL,
> > #+latex_class_pre:   pdfversion=2.0,
> > #+latex_class_pre:   pdfstandard=ua-2,
> > #+latex_class_pre:   tagging=on
> > #+latex_class_pre: }
>
> Note that we just added a couple of new features in this area on the
> latest main:
>
> 1. There is a new #+latex_doc_metadata keyword
>
> https://cgit.git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fd5d3b1a599aad17ff67a2625a1725df520976ce
> 2. There is ltx-talk support
>
> https://cgit.git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=13a25caeb2f71b2ddf19a8fae3316195302e8959
>
> > This kinda works (the PDF is tagged) however the standard is not fully
> > #followed, e.g. lists are considered to be manually numbered.
>
> Could you please explain a bit more about this. What is "manually
> numbered"? How does a more appropriate list look in the LaTeX?
> Maybe you can provide an example of correct/incorrect LaTeX documents -
> one generated by Org, and another written in pure LaTeX.
>
> > Is there #any way that Org can create tagged PDFs by default? I see no
> > #disadvantage for adding such a feature, however I am pretty new in
> > the #world of Org and Tex, so how do I know?  I hope to read your
> > input soon.
>
> Doing tagging=on might be a safe default. Not so much about
> pdfversion/pdfstandard, and lang. For example, language is not always
> specified in the Org documents. If we use the default English, I am not
> sure if the result will be useful.
>
> --
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

"Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE!
Year 2 of the New Koprocracy

This was produced by a human (implied virtues and weaknesses acknowledged)
I'd hate this being fed to any form of AS (sorry AI)...

Reply via email to