emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* user labels in beamer export
@ 2016-12-12 13:47 Eric S Fraga
  2016-12-12 20:04 ` Nicolas Goaziou
       [not found] ` <605a3360101d412aa4dcf2b0e76f47f0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  0 siblings, 2 replies; 7+ messages in thread
From: Eric S Fraga @ 2016-12-12 13:47 UTC (permalink / raw)
  To: Emacs Org mode mailing list

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: user labels in beamer export
  2016-12-12 13:47 user labels in beamer export Eric S Fraga
@ 2016-12-12 20:04 ` Nicolas Goaziou
       [not found] ` <605a3360101d412aa4dcf2b0e76f47f0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2016-12-12 20:04 UTC (permalink / raw)
  To: Emacs Org mode mailing list

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

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

The latter. I fixed it on maint. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: user labels in beamer export
       [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>
  0 siblings, 2 replies; 7+ messages in thread
From: Eric S Fraga @ 2016-12-13 10:03 UTC (permalink / raw)
  To: Emacs Org mode mailing list

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

On Monday, 12 Dec 2016 at 20:04, Nicolas Goaziou wrote:

[...]

>> I have org-latex-prefer-user-labels set to t.
>>
>> Am I doing something wrong or is this a bug in org?
>
> The latter. I fixed it on maint. Thank you.

Thank you!  This now works (using CUSTOM_ID).

Now for another related question.  Should the following work?

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

I get this LaTeX code in this case, again with
org-latex-prefer-user-labels set to t.

#+begin_src latex
  \begin{frame}[label={sec:org3f12c9c}]{\label{org9590917} Intro}
  This is the first slide.
  \end{frame}
  \begin{frame}[label={sec:orgfd595e1}]{Summary}
  As we saw on slide \ref{introduction}, \ldots{}
  \end{frame}
#+end_src

Should probably have asked both questions at the same time but did not
want to confuse the issue!

Thanks again,
eric

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

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: user labels in beamer export
  2016-12-13 10:03   ` Eric S Fraga
@ 2016-12-13 21:15     ` Nicolas Goaziou
       [not found]     ` <61aec4fe163c49adbbb2ea2830e52b3f@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2016-12-13 21:15 UTC (permalink / raw)
  To: Emacs Org mode mailing list

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Now for another related question.  Should the following work?
>
> #+begin_src org
>   ,#+TITLE: LaTeX export minimal test
>   ,* <<introduction>> Intro
>   This is the first slide.
>   ,* Summary
>   As we saw on slide [[introduction]], ...
> #+end_src

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: user labels in beamer export
       [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>
  0 siblings, 2 replies; 7+ messages in thread
From: Eric S Fraga @ 2016-12-14 10:23 UTC (permalink / raw)
  To: emacs-orgmode

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

On Tuesday, 13 Dec 2016 at 21:15, Nicolas Goaziou wrote:
> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> Now for another related question.  Should the following work?
>>
>> #+begin_src org
>>   ,#+TITLE: LaTeX export minimal test
>>   ,* <<introduction>> Intro
>>   This is the first slide.
>>   ,* Summary
>>   As we saw on slide [[introduction]], ...
>> #+end_src
>
> Fixed. Thank you.

Hi Nicolas,

this doesn't seem to work still.  I've updated my copy of org and I get
the following on beamer export:

#+begin_src latex
  \begin{frame}[label={sec:orgb78d808}]{\label{org5b96364} Intro}
  This is the first slide.
  \end{frame}
  \begin{frame}[label={sec:org07fd86c}]{Summary}
  As we saw on slide \ref{introduction}, \ldots{}
  \end{frame}
#+end_src

Thanks,
eric

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

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: user labels in beamer export
  2016-12-14 10:23       ` Eric S Fraga
@ 2016-12-14 12:17         ` Nicolas Goaziou
       [not found]         ` <0f200b5f27ff4761a441e233197e9685@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2016-12-14 12:17 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> this doesn't seem to work still.  I've updated my copy of org and I get
> the following on beamer export:
>
> #+begin_src latex
>   \begin{frame}[label={sec:orgb78d808}]{\label{org5b96364} Intro}
>   This is the first slide.
>   \end{frame}
>   \begin{frame}[label={sec:org07fd86c}]{Summary}
>   As we saw on slide \ref{introduction}, \ldots{}
>   \end{frame}
> #+end_src

This is also fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: user labels in beamer export
       [not found]         ` <0f200b5f27ff4761a441e233197e9685@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2016-12-14 14:29           ` Eric S Fraga
  0 siblings, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2016-12-14 14:29 UTC (permalink / raw)
  To: emacs-orgmode

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

On Wednesday, 14 Dec 2016 at 12:17, Nicolas Goaziou wrote:
> This is also fixed. Thank you.

Thanks!  Hopefully that's it for now.  Or, at least, with respect to
links and targets.  :-)

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.2-99-g2b93ce

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-12-14 14:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-12 13:47 user labels in beamer export Eric S Fraga
2016-12-12 20:04 ` 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

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).