From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Simon_Bra=c3=9f?= 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 09:26:21 +0000 Message-ID: References: <87va79stzd.fsf@delle7240.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0NtS-0006Mg-JC for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 05:26:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0NtO-0003Jl-Hg for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 05:26:34 -0400 Received: from esa-public.zimt.uni-siegen.de ([141.99.10.65]:31038) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g0NtO-0003Gx-5y for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 05:26:30 -0400 In-Reply-To: <87va79stzd.fsf@delle7240.chemeng.ucl.ac.uk> Content-Language: de-LU 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 Dear Eric, thanks for the fast reply! Indeed, I had a look at the lshort documentation. It actually never states that \label must come after the full \caption{} command - nesting works - good to know. I'm sorry for the inconvenience. Cheers, Simon On 9/13/18 8:05 AM, Eric S Fraga wrote: > On Tuesday, 11 Sep 2018 at 09:31, Simon Braß 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? >