emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] Add margin option to float for figure in ox-latex.el


From: Thomas S. Dye
Subject: Re: [PATCH] Add margin option to float for figure in ox-latex.el
Date: Sun, 17 May 2020 06:48:00 -1000
User-agent: mu4e 1.2.0; emacs 26.3

Aloha Kyle,

Barring a guru's user-end customization, Rasmus's figure :environment attribute idea is a good one.

The LaTeX float package has a facility to create and name environments that are handled like figures. A figure :environment attribute in Org mode would provide a straightforward and flexible path to transcode them.

Thanks for looking into this.

Let me know if you have questions.

All the best,
Tom

Kyle Meyer writes:

Thomas S. Dye writes:

This patch produces a LaTeX environment, marginfigure, that isn't
part of the standard.  AFAIK, marginfigure is defined in the
sidenotes package and separately in the tufte-latex class, neither of which Org mode loads by default. If the patch is applied, then one of these packages should be added to the list of default LaTeX packages so ox-latex doesn't export code it is unable to compile.

My takeaway from the discussion surrounding ox-tufte-latex several years ago is that support for non-standard LaTeX constructs should not be part of Org mode core because they complicate maintenance
unduly.

Thanks for your input and the helpful summary. The stance in the second
paragraph sounds like a sensible one.

Given the desire to use the marginfigure environment has popped up a few times, I wonder if an ox-latex guru can suggest a user-end customization that would enable the use of that environment. I suppose an alternative is Rasmus's proposal of an :environment attribute for figures [*] that I
mentioned in a sibling thread.

[*]: https://yhetil.org/orgmode/address@hidden/


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



reply via email to

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