Re: caption width in LateX export

2021-12-28 Thread Eric S Fraga
On Tuesday, 28 Dec 2021 at 09:59, Seb wrote: > That is strange, as it actually should not work (it still doesn't for me > with your code). Well, it won't work if the figure is to float but will if you ask org to not float the figure. > However, I had made a mistake in my original post as I

Re: caption width in LateX export

2021-12-28 Thread Seb
On Tue, 28 Dec 2021 14:58:35 +, Eric S Fraga wrote: > On Sunday, 26 Dec 2021 at 19:22, Seb wrote: >> Using a special block, as in: > [...] >> fails, as it seems impossible to pass arguments to the special block. > Not true. The following seems to create the LaTeX code you wanted: >

Re: caption width in LateX export

2021-12-28 Thread Eric S Fraga
On Sunday, 26 Dec 2021 at 19:22, Seb wrote: > Using a special block, as in: [...] > fails, as it seems impossible to pass arguments to the special block. Not true. The following seems to create the LaTeX code you wanted: --8<---cut here---start->8---

Re: caption width in LateX export

2021-12-27 Thread Juan Manuel Macías
Sebastian P. Luque writes: > This is great, and very interesting to learn about the BIND keyword. > > Thank you, You're welcome. Of course, if you use the filter very often, it is not necessary to include it in a document or use the bind keyword. It would be enough to add the function to your

Re: caption width in LateX export

2021-12-27 Thread Sebastian P . Luque
On Mon, 27 Dec 2021 13:28:08 +, Juan Manuel Macías wrote: > Sebastian P. Luque writes: >> Thank you, Juan. Unfortunately, there is a price for this solution >> as it is now impossible to name and refer to this segment as usual: > I see. Have you tried the option with LuaTeX that I put in

Re: caption width in LateX export

2021-12-27 Thread Juan Manuel Macías
Sebastian P. Luque writes: > Thank you, Juan. Unfortunately, there is a price for this solution as > it is now impossible to name and refer to this segment as usual: I see. Have you tried the option with LuaTeX that I put in my other message? You can compile with LuaTeX also using latexmk:

Re: caption width in LateX export

2021-12-27 Thread Sebastian P . Luque
On Mon, 27 Dec 2021 07:41:59 +, Juan Manuel Macías wrote: [...] > If you use the caption package (https://www.ctan.org/pkg/caption), you > can indicate in each figure the width of the caption. In this case, > you would have to introduce the code using raw latex via the > `:caption'

Re: caption width in LateX export

2021-12-27 Thread Juan Manuel Macías
P.S.: I have come up with another possibility, more automatic, on the LaTeX side, if you compile with LuaTeX. This thread (https://tex.stackexchange.com/questions/202046/width-of-the-caption-of-a-figure), where someone proposes to use a \savebox for concrete images, gave me the idea. We can

Re: caption width in LateX export

2021-12-26 Thread Juan Manuel Macías
Hi Seb Seb writes: > When exporting to LaTeX, is there a mechanism to make the figure > captions as wide as the figure? In pure LaTeX, this can be easily > accomplished by placing the figure inside a minipage environment. > Using a special block, as in: > > \begin{minipage}{0.7\textwidth} > >

caption width in LateX export

2021-12-26 Thread Seb
Hello, When exporting to LaTeX, is there a mechanism to make the figure captions as wide as the figure? In pure LaTeX, this can be easily accomplished by placing the figure inside a minipage environment. Using a special block, as in: \begin{minipage}{0.7\textwidth} #+CAPTION: looong