emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Simon Braß" <brass@physik.uni-siegen.de>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <b5f26f7c-f36d-aad9-a886-cc215b3b73cb@physik.uni-siegen.de> (raw)
In-Reply-To: <87va79stzd.fsf@delle7240.chemeng.ucl.ac.uk>

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?
>

      reply	other threads:[~2018-09-13  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11  7:31 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/)] Simon Braß
2018-09-13  8:05 ` Eric S Fraga
2018-09-13  9:26   ` Simon Braß [this message]

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=b5f26f7c-f36d-aad9-a886-cc215b3b73cb@physik.uni-siegen.de \
    --to=brass@physik.uni-siegen.de \
    --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).