From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: Issue with org-mode latex export captions
Date: Thu, 27 Jul 2017 18:48:00 +0100 [thread overview]
Message-ID: <87lgn922lr.fsf@delle7240.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <d2ba61442562443a818ce701b4668570@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Tyler Morgan's message of "Thu, 27 Jul 2017 16:16:36 +0000")
[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]
On Thursday, 27 Jul 2017 at 16:16, Tyler Morgan wrote:
[...]
> The resulting LaTeX no longer includes a label attribute, which means
> that all of the references I have made to this figure in the text are
> now undefined. I know that defining a LaTeX caption overwrites the
> org-mode caption field, but I’m not sure why it also removes the
> #+NAME (or #+LABEL, which I have also tried) from the figure.
Because the label is intrinsically associated with the caption (this is
a LaTeX feature and nothing to do with org), not the figure itself. It
is the caption that creates the number for the reference. A figure may
contain more than one image, for instance.
Either simply add \label{fig:figure1} to the caption you are specifying
or, if it is that you want to have the table of contents entry, use this
format for the caption:
#+caption[short title]: long caption
which should work, according to the manual (untested).
HTH,
eric
--
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-573-g09e612
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
next parent reply other threads:[~2017-07-27 17:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d2ba61442562443a818ce701b4668570@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-07-27 17:48 ` Eric S Fraga [this message]
2017-07-27 16:16 Issue with org-mode latex export captions Tyler Morgan
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=87lgn922lr.fsf@delle7240.chemeng.ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--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).