From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Issue with org-mode latex export captions Date: Thu, 27 Jul 2017 18:48:00 +0100 Message-ID: <87lgn922lr.fsf@delle7240.chemeng.ucl.ac.uk> References: Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1damtR-0007s8-Iz for emacs-orgmode@gnu.org; Thu, 27 Jul 2017 13:48:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1damtL-00031o-6U for emacs-orgmode@gnu.org; Thu, 27 Jul 2017 13:48:12 -0400 Received: from mail-eopbgr50095.outbound.protection.outlook.com ([40.107.5.95]:43317 helo=EUR03-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1damtK-00030s-Px for emacs-orgmode@gnu.org; Thu, 27 Jul 2017 13:48:07 -0400 In-Reply-To: (Tyler Morgan's message of "Thu, 27 Jul 2017 16:16:36 +0000") 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=E2=80=99m 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 =2D-=20 : Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-573-g09e612 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWXonUAAKCRDIkZPY//z2 feoFAJwKO7ZPKtX21cGFEuPI28adqi0bLwCgkOAYxgOpDW+SLzYDgXIFgcHu9QM= =U666 -----END PGP SIGNATURE----- --=-=-=--