emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Issue with org-mode latex export captions


From: Eric S Fraga
Subject: Re: [O] Issue with org-mode latex export captions
Date: Thu, 27 Jul 2017 18:48:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]