From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Beutelspacher Subject: Latex export of figure with multiline caption and label results in additional space Date: Wed, 22 Aug 2018 13:31:19 +0200 Message-ID: <871saqtz7c.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsRMM-0000tg-LH for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 07:31:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsRMJ-0000gQ-Tg for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 07:31:34 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:15966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fsRMJ-0000VG-Ix for emacs-orgmode@gnu.org; Wed, 22 Aug 2018 07:31:31 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 939C1416C9 for ; Wed, 22 Aug 2018 13:31:21 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id T0OvWs-OPsbA for ; Wed, 22 Aug 2018 13:31:20 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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?