|
From: | Max Nikulin |
Subject: | Re: Export LaTeX command inside figure environment |
Date: | Sun, 8 May 2022 23:35:42 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 |
On 08/05/2022 13:06, Thomas S. Dye wrote:
It would be better to have a LaTeX attribute, say :commands, that places commands within \begin{figure} ... \end{figure}.
Look at the code of `org-latex--inline-image' and variants of markup it may generate. There are too may places where :commands may be inserted to add an attribute for each place, e.g. before or after \includegraphics. It may be better to allow users to define a function that either generates markup or delegates it to the default function. I am unsure concerning convenient API that should be provided to generate a label, to get caption that may be specified as an attribute or as #+caption:, etc. There is a quite similar problem with source blocks (another thread). 10 arguments functions emerged during attempt split into maintainable pieces a huge function handling all cases.
[Prev in Thread] | Current Thread | [Next in Thread] |