emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Putting LaTeX inside a figure environment on export


From: Jason Ross
Subject: Re: Putting LaTeX inside a figure environment on export
Date: Sat, 9 Apr 2022 12:46:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0



On 4/9/22 12:36, William Denton wrote:
Is there a way to get a line of LaTeX inside a figure environment when exporting from Org?

For example, let's say I have:

     #+caption: This is a large tree
     [[file:large_tree.jpg]]


I want to use this to generate an entry in an index:

    \index[photos]{Tree}

Is there a way to get that *inside* the figure environment?  If it is, then the page number is correct.



Does the following work?

    #+caption: This is a large tree @@latex:\index[photos]{Tree}@@
    [[file:large_tree.jpg]]

Resulting LaTeX:

    \begin{figure}[htbp]
    \centering
    \includegraphics[width=.9\linewidth]{large_tree.jpg}
    \caption{This is a large tree \index[photos]{Tree}}
    \end{figure}
    \end{document}



reply via email to

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