emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Beutelspacher <max.beutelspacher@mailbox.org>
To: emacs-orgmode@gnu.org
Subject: Latex export of figure with multiline caption and label results in additional space
Date: Wed, 22 Aug 2018 13:31:19 +0200	[thread overview]
Message-ID: <871saqtz7c.fsf@mailbox.org> (raw)

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	other threads:[~2018-08-22 11:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-22 11:31 Max Beutelspacher [this message]
2018-09-06 14:39 ` Latex export of figure with multiline caption and label results in additional space Nicolas Goaziou
2018-09-06 16:08   ` Max Beutelspacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871saqtz7c.fsf@mailbox.org \
    --to=max.beutelspacher@mailbox.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).