Hi Max, 

Thanks for the missing context. We may need to get back to this in the future… 
I‘ll add it to my MAYBEs….

Enviado desde mi iPhone

> El 7 may 2026, a las 4:34, Max Nikulin <[email protected]> escribió:
> 
> On 05/05/2026 12:42 pm, Pedro Andres Aranda Gutierrez wrote:
>> ,#+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:
> [...]
>> \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
> Isn't it expected? Instead of the "#+caption:" keyword you are using low 
> level LaTeX-specific attribute. I believe, it is to override default 
> caption-related LaTeX code, so it is your responsibility to use complete and 
> safe commands. See
> 
> (info "(org) Tables-in-LaTeX-export")
> <https://orgmode.org/manual/Tables-in-LaTeX-export.html>
> 
> My guess it that Timothy faced an issue with something like
> 
>    #+caption: Image caption with =verbatim $\= and ~code $\~
>    [[file:test.png]]
> 
> However, it seems, protectedtexttt instead of \verb has been used since 
> beginning. I see a recent Ihor's fix for \verb headings in git history, but 
> nothing related to captions. I have not tried to run old Org versions. To 
> break current one, I need to run
> 
>    # (setf (cdr (assq 'verbatim org-latex-text-markup-alist)) 'verb)
> 
> Timothy was trying to make more flexible and granular usage of LaTeX packages 
> added by ox-latex. The issue might be related to rather extensive custom 
> configuration or to a work-in-progress branch.

Reply via email to