Hi again & sorry for the confusion.

I was just trying to make you aware that ox-latex.el will
translate

#+ATTR_LATEX: :alt This is what a screen reader will read
[[image.png]]

to the following LaTeX.

\includegraphics[alt={This is what a screen reader will read}]{image.png}

Best, /PA

On 25/09/2026 07:58, Karthik Chikmagalur wrote:
Hi Pedro,

just to avoid confusion:

ox-latex is using :alt for the descriptive text added to images in
accessible PDF documents:

#+ATTR_LATEX: :alt This is what a screen reader will read
[[image.png]]

It maps 1:1 to the HTML <img alt="blah blah"> and the (newer)
LaTeX \includegraphics[alt={Blah blah}]{image.png} notations.

I just tried this from the main branch, with "make repro", and this is
not what I see in HTML export.

--8<---------------cut here---------------start------------->8---
#+title: Some title
#+options: tex:dvipng

This is a test.

#+attr_latex: :alt This is alt text
\begin{equation}
x = y + 2
\end{equation}
--8<---------------cut here---------------end--------------->8---
The alt-text of the generated png image is the text of the LaTeX
environment itself.

I also tried

#+attr_latex: :alt "This is alt text"

with the same result.  Actually I cannot find where in ox-html.el or
org.el this processing from "#+attr_latex: :alt ..." to the HTML image
alt text is supposed to occur.

Karthik

--
Pedro A. Aranda
ox-latex & ox-beamer maintainer

Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE!
IA: onomatopeya del rebuzno
2nd year of the New Koprocracy


Reply via email to