From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Bug: Nested \caption and \label in LaTeX export [9.1.14 (9.1.14-1-g4931fc-elpaplus @ /home/simon/.emacs.d/elpa/26.1/develop/org-plus-contrib-20180910/)] Date: Thu, 13 Sep 2018 10:05:10 +0200 Message-ID: <87va79stzd.fsf@delle7240.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Mco-0000w6-Gx for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 04:05:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0Mcl-0000um-BN for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 04:05:18 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:37592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g0Mcl-0000uH-4G for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 04:05:15 -0400 Received: by mail-wr1-x431.google.com with SMTP id u12-v6so4597274wrr.4 for ; Thu, 13 Sep 2018 01:05:14 -0700 (PDT) In-Reply-To: ("Simon \=\?utf-8\?Q\?Bra\=C3\=9F\=22's\?\= message of "Tue, 11 Sep 2018 09:31:26 +0200") 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: Simon =?utf-8?Q?Bra=C3=9F?= Cc: emacs-orgmode@gnu.org On Tuesday, 11 Sep 2018 at 09:31, Simon Bra=C3=9F wrote: > Exporting a table (or figure) with a CAPTION and NAME tag leads to > following result: > \caption{\label{whatever-tag} I am a caption.} > Any LaTeX compiler won't understand this line correctly and won't be able > to reference to the assigned label. Simon, In my experience, LaTeX has no problem with this. I have always (when writing LaTeX directly) put the label inside the caption as it's the caption that defines the numbering of the table/figure. Have you actually tried this? What happens when you do? --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-753-g2ec5d3