Re: [tip] Insert arbitrary LaTeX code at the beginning of any float environment

2022-05-09 Thread Eric S Fraga
On Monday, 9 May 2022 at 14:01, Juan Manuel Macías wrote: > Although ---as Eric says--- we can always use special blocks, a :wrap > attribute would drastically lighten the readability of the document, One advantage of special blocks is that they work across all (some/most/?) export backends and a

Re: [tip] Insert arbitrary LaTeX code at the beginning of any float environment

2022-05-09 Thread Juan Manuel Macías
Ihor Radchenko writes: > I'd be happy to see a built-in solution for this. > I feel that the ability to insert arbitrary LaTeX code near the > begin/end of environment would be generally a useful feature to have in > ox-latex. It could be done via #+attr_latex: :pre/:post > > Moreover, it would be

Re: [tip] Insert arbitrary LaTeX code at the beginning of any float environment

2022-05-09 Thread Ihor Radchenko
Eric S Fraga writes: > On Monday, 9 May 2022 at 20:47, Ihor Radchenko wrote: >> Moreover, it would be useful to be able to wrap the whole chunk into >> custom environment: >> #+attr_latex: :wrap [options]environmant > > This is already possible using special blocks? I.e. > > #+begin_environment

Re: [tip] Insert arbitrary LaTeX code at the beginning of any float environment

2022-05-09 Thread Eric S Fraga
On Monday, 9 May 2022 at 20:47, Ihor Radchenko wrote: > Moreover, it would be useful to be able to wrap the whole chunk into > custom environment: > #+attr_latex: :wrap [options]environmant This is already possible using special blocks? I.e. #+begin_environment ... figure stuff #+end_environmen

Re: [tip] Insert arbitrary LaTeX code at the beginning of any float environment

2022-05-09 Thread Ihor Radchenko
Juan Manuel Macías writes: > If we want to introduce arbitrary LaTeX code at the very beginning of a > float environment, apart from the usual tricks of putting the code in > :caption or :placement, this solution I describe here is more from the > LaTeX side. I thik its advantages are more contro