[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Latex export of figure with multiline caption and label results in a
From: |
Max Beutelspacher |
Subject: |
[O] Latex export of figure with multiline caption and label results in additional space |
Date: |
Wed, 22 Aug 2018 13:31:19 +0200 |
Hi,
I have a problem when I'm exporting a figure with a multiline
caption and a label to pdf via latex.
Here is an example
#+BEGIN_SRC org +LATEX_HEADER: \usepackage{caption} +LATEX_HEADER:
#\captionsetup{format=hang} +NAME: test +CAPTION:Cras placerat
#accumsan nulla. Aliquam posuere. Etiam laoreet quam sed arcu.
#Phasellus purus. [[file:test.png]] +END_SRC
The headers are to ensure that the caption is indented.
Unfortunately now the latex export is
#+BEGIN_SRC latex \begin{figure}[htbp] \centering
\includegraphics[width=.9\linewidth]{test.png}
\caption{\label{test} Cras placerat accumsan nulla. Aliquam
posuere. Etiam laoreet quam sed arcu. Phasellus purus.}
\end{figure} #+END_SRC
so the label is inserted before the caption separated by a space.
In the resulting pdf the first line of the caption is then
indented by one additional space compared to the other lines of
the caption.
This does not happen if I omit the label/name.
Is this a bug? Is there any way around this behavior?
- [O] Latex export of figure with multiline caption and label results in additional space,
Max Beutelspacher <=