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?


Reply via email to