emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: user labels in beamer export
Date: Mon, 12 Dec 2016 13:47:29 +0000	[thread overview]
Message-ID: <87inqpz2by.fsf@ucl.ac.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

I am having problems trying to use user defined labels in org export to
LaTeX (beamer specifically).

If I have the following org,

#+begin_src org
  ,#+TITLE: LaTeX export minimal test
  ,* Intro
  :PROPERTIES:
  :CUSTOM_ID: introduction
  :END:
  This is the first slide.
  ,* Summary
  As we saw on slide [[#introduction]], ...
#+end_src

I get the following LaTeX generated:

#+begin_src latex
  \begin{frame}[label=introduction]{Intro}
  This is the first slide.
  \end{frame}

  \begin{frame}[label={sec:orgdc0a2c3}]{Summary}
  As we saw on slide \ref{sec-1}, \ldots{}
  \end{frame}
#+end_src

(elided for size).  Note that internally generated labels of the form
orgXXXXXX are not generated but instead org generates "sec-1" instead of
using \ref{introduction}.

I have org-latex-prefer-user-labels set to t.

Am I doing something wrong or is this a bug in org?  I'm up to date with
git version as of a few minutes ago.

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.1-125-g93b43e

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 162 bytes --]

             reply	other threads:[~2016-12-12 14:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12 13:47 Eric S Fraga [this message]
2016-12-12 20:04 ` user labels in beamer export Nicolas Goaziou
     [not found] ` <605a3360101d412aa4dcf2b0e76f47f0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-12-13 10:03   ` Eric S Fraga
2016-12-13 21:15     ` Nicolas Goaziou
     [not found]     ` <61aec4fe163c49adbbb2ea2830e52b3f@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-12-14 10:23       ` Eric S Fraga
2016-12-14 12:17         ` Nicolas Goaziou
     [not found]         ` <0f200b5f27ff4761a441e233197e9685@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-12-14 14:29           ` Eric S Fraga

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=87inqpz2by.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --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).