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