Hi Christer
good that you brought this email back to live.
A small analysis with an MWE:
#+BEGIN_SRC org
,#+OPTIONS: toc:nil latex-use-sans:t
* Prueba
,#+ATTR_LATEX: :caption Una \verb@Prueba@ =terminal=
[[/home/paag/Documents/emacs-conf/2026/rebelde/DEC_VT220.jpg]]
#+END_SRC
will produce the following {document} block in LaTeX:
#+BEGIN_SRC latex
\begin{document}
\section{Prueba}
\label{sec:org8bfe269}
\begin{figure}[htbp]
\centering
\includegraphics[width=.9\linewidth]{/home/paag/Documents/emacs-conf/2026/rebelde/DEC_VT220.jpg}
Una \verb@Prueba@ =terminal=
\end{figure}
\end{document}
#+END_SRC
I observe
1.- There is no \caption{} there, the text just follows the image (needs 2
be fixed)
2.- There is no translation from Org markup, everything is copied as is
Best ,/PA
On Mon, 4 May 2026 at 22:14, Christer Enfors <[email protected]>
wrote:
> Nicolas Goaziou <[email protected]> writes:
>
> > Timothy <[email protected]> writes:
> >
> >> In exactly the same vein as
> >> https://orgmode.org/list/[email protected]/, verbatim text in
> >> captions is very problematic with LaTeX (breaks compilation).
> >>
> >> I'd like to be submitting a patch instead of a bug, but I'm not sure
> >> what the best method of addressing this within ox-latex.el is.
> >> Do share if you have any ideas :)
> >
> > I guess the solution is like the problem you mentioned above. You can
> > create a temporary back-end that exports code and verbatim objects
> > as \textt, using `org-latex--protect-texttt' function.
> >
> > The calls to `org-export-data' at the end of
> > `org-latex--caption/label-string' can use this back-end instead.
> >
> > I think it would be better to derive current back-end instead of `latex'
> > like we did in `org-latex-headline'. You can get current back-end with
> > (plist-get info :back-end).
>
> Cancelled, because this wasn't a proper bug report - not enough info to
> reproduce the issue, and the reporter expressed wanting to submit a
> patch to fix it rather than an actual bug report.
>
> --
> Christer Enfors
> Org contributor liaison
> GPG Fingerprint: 9CF7 3292 83BC D643 DF01 992C 1C3B 434F 2AC2 B1E6
> Public Key available at: keys.openpgp.org
>
>
--
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