[Top][All Lists]

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

Re: caption width in LateX export

From: Juan Manuel Macías
Subject: Re: caption width in LateX export
Date: Mon, 27 Dec 2021 07:41:59 +0000

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: looooooong caption.
> [[file_path]]
> \end{minipage}
> fails, as it seems impossible to pass arguments to the special block.
> Any tips welcome.

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'

#+LaTeX_Header: \usepackage{caption}

#+ATTR_LaTeX: :caption \captionsetup{width=.3\linewidth}\caption{Lorem ipsum 
dolor sit amet, consectetuer adipiscing elit}
#+ATTR_LaTeX: :width .3\linewidth

Best regards,

Juan Manuel 

reply via email to

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