emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-e-beamer-exporter and frame level
@ 2012-08-30 11:34 Fabrice Popineau
  2012-08-30 11:46 ` Nicolas Goaziou
  2012-08-30 11:51 ` Fabrice Popineau
  0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Popineau @ 2012-08-30 11:34 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

It seems to me that in the 7.9 release and the current git version,
org-e-beamer exporter breaks whenever I change the org-e-beamer-frame-level
to something else than 1.
The variable BEAMER_FRAME_LEVEL seems not to be honoured anymore. If I set
H:2 in OPTIONS, parsing breaks. If I set org-e-beamer-frame-level to 2,
parsing breaks too.
Can anyone confirm ?


#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col)
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC


* First section
[2012-08-30 jeu. 13:32]
** First frame
[2012-08-30 jeu. 13:32]
** Second frame
[2012-08-30 jeu. 13:32]
* Second section
[2012-08-30 jeu. 13:32]
** Third frame
[2012-08-30 jeu. 13:32]

-- 
Fabrice

[-- Attachment #2: Type: text/html, Size: 1135 bytes --]

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

* Re: org-e-beamer-exporter and frame level
  2012-08-30 11:34 org-e-beamer-exporter and frame level Fabrice Popineau
@ 2012-08-30 11:46 ` Nicolas Goaziou
  2012-08-30 11:56   ` Fabrice Popineau
  2012-08-30 11:51 ` Fabrice Popineau
  1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2012-08-30 11:46 UTC (permalink / raw)
  To: Fabrice Popineau; +Cc: emacs-orgmode

Hello,

Fabrice Popineau <fabrice.popineau@supelec.fr> writes:

> The variable BEAMER_FRAME_LEVEL seems not to be honoured anymore. 

Correct. It has been replaced by H:2 in #+OPTIONS: or
`org-e-beamer-frame-level'.

> If I set H:2 in OPTIONS, parsing breaks. If I set
> org-e-beamer-frame-level to 2, parsing breaks too. Can anyone
> confirm ?

I get no error when using `org-e-beamer-export-to-pdf' on the following
code:

--8<---------------cut here---------------start------------->8---
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) %8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+OPTIONS: H:2


* First section
[2012-08-30 jeu. 13:32]
** First frame
[2012-08-30 jeu. 13:32]
** Second frame
[2012-08-30 jeu. 13:32]
* Second section
[2012-08-30 jeu. 13:32]
** Third frame
[2012-08-30 jeu. 13:32]
--8<---------------cut here---------------end--------------->8---

Do you have an appropriate "beamer" entry in `org-e-latex-classes' ?

Mine is:

--8<---------------cut here---------------start------------->8---
(add-to-list 'org-e-latex-classes
             '("beamer"
               "\\documentclass\[presentation\]\{beamer\}
\[DEFAULT-PACKAGES]
\[PACKAGES]
\[EXTRA]"
               ("\\section\{%s\}" . "\\section*\{%s\}")
               ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
               ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
--8<---------------cut here---------------end--------------->8---


Regards,

-- 
Nicolas Goaziou

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

* Re: org-e-beamer-exporter and frame level
  2012-08-30 11:34 org-e-beamer-exporter and frame level Fabrice Popineau
  2012-08-30 11:46 ` Nicolas Goaziou
@ 2012-08-30 11:51 ` Fabrice Popineau
  1 sibling, 0 replies; 4+ messages in thread
From: Fabrice Popineau @ 2012-08-30 11:51 UTC (permalink / raw)
  To: emacs-orgmode

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

And the problem comes from this.

In org-e-beamer.el:1325
(defun org-e-latex-headline (headline contents info)
  "Transcode an HEADLINE element from Org to LaTeX.
CONTENTS holds the contents of the headline.  INFO is a plist
holding contextual information."
  (let* ((class (plist-get info :latex-class))
 (level (org-export-get-relative-level headline info))
 (numberedp (org-export-numbered-headline-p headline info))
 (class-sectionning (assoc class org-e-latex-classes))
 ;; Section formatting will set two placeholders: one for the
 ;; title and the other for the contents.
 (section-fmt
  (let ((sec (if (and (symbolp (nth 2 class-sectionning))
      (fboundp (nth 2 class-sectionning)))
 (funcall (nth 2 class-sectionning) level numberedp)
       (nth (1+ level) class-sectionning))))

The funcall occurs on #'org-beamer-sectioning with argument level=2 and
numberedp=t
but the function #'org-beamer-sectioning (org-beamer:232) takes 'level' and
'text' as arguments, 'text'
being the contents of the headline.

Fabrice


2012/8/30 Fabrice Popineau <fabrice.popineau@supelec.fr>

> Hi,
>
> It seems to me that in the 7.9 release and the current git version,
> org-e-beamer exporter breaks whenever I change the org-e-beamer-frame-level
> to something else than 1.
> The variable BEAMER_FRAME_LEVEL seems not to be honoured anymore. If I set
> H:2 in OPTIONS, parsing breaks. If I set org-e-beamer-frame-level to 2,
> parsing breaks too.
> Can anyone confirm ?
>
>
> #+LaTeX_CLASS: beamer
> #+LaTeX_CLASS_OPTIONS: [presentation]
> #+BEAMER_THEME: default
> #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col)
> %8BEAMER_opt(Opt)
> #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
>
>
> * First section
> [2012-08-30 jeu. 13:32]
> ** First frame
> [2012-08-30 jeu. 13:32]
> ** Second frame
> [2012-08-30 jeu. 13:32]
> * Second section
> [2012-08-30 jeu. 13:32]
> ** Third frame
> [2012-08-30 jeu. 13:32]
>
> --
> Fabrice
>



-- 
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

[-- Attachment #2: Type: text/html, Size: 3854 bytes --]

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

* Re: org-e-beamer-exporter and frame level
  2012-08-30 11:46 ` Nicolas Goaziou
@ 2012-08-30 11:56   ` Fabrice Popineau
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrice Popineau @ 2012-08-30 11:56 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

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

2012/8/30 Nicolas Goaziou <n.goaziou@gmail.com>

> (add-to-list 'org-e-latex-classes
>              '("beamer"
>                "\\documentclass\[presentation\]\{beamer\}
> \[DEFAULT-PACKAGES]
> \[PACKAGES]
> \[EXTRA]"
>                ("\\section\{%s\}" . "\\section*\{%s\}")
>                ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
>                ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
>

Ok ... I used this :

(add-to-list 'org-e-latex-classes
    '("beamer" "\\documentclass{beamer}
                     [NO-DEFAULT-PACKAGES]
                     [NO-PACKAGES]"
        org-beamer-sectioning))

And thought it would work, but obviously, org-beamer-sectioning doesn't
behave the right way.

Thanks for the explanation.

-- 
Fabrice

[-- Attachment #2: Type: text/html, Size: 1323 bytes --]

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

end of thread, other threads:[~2012-08-30 11:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-30 11:34 org-e-beamer-exporter and frame level Fabrice Popineau
2012-08-30 11:46 ` Nicolas Goaziou
2012-08-30 11:56   ` Fabrice Popineau
2012-08-30 11:51 ` Fabrice Popineau

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