emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Export LaTeX command inside figure environment


From: Thomas S. Dye
Subject: Re: Export LaTeX command inside figure environment
Date: Sat, 07 May 2022 14:57:55 -1000
User-agent: mu4e 1.4.15; emacs 27.1

Aloha Juan Manuel,

Juan Manuel Macías <maciaschain@posteo.net> writes:

Hi, Thomas,

Thomas S. Dye writes:

Is there a way to add an arbitrary LaTeX command between
\begin{figure} ... \end{figure} during LaTeX export? I want to end up
with the following snippet, but can't figure out how to slip in
\setfloatalignment{b}.  \begin{figure}[htb]
\centering
\includegraphics[width=.9\linewidth]{hilbertcurves.pdf}
\caption[Hilbert curves]{\label{fig:orgparagraph1} Hilbert curves of
various degrees \emph{n}.}
\setfloatalignment{b}
\end{figure}

I think the :caption attribute could do the trick (of course everything
must be on one line):

#+ATTR_LaTeX: :caption \caption[Hilbert
curves]{\label{fig:orgparagraph1} Hilbert curves of various degrees
 \emph{n}.}\setfloatalignment{b}


That works.  Thanks!

All the best,
Tom

--
Thomas S. Dye
https://tsdye.online/tsdye



reply via email to

[Prev in Thread] Current Thread [Next in Thread]