From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: org-e-beamer-exporter and frame level Date: Thu, 30 Aug 2012 13:51:26 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04428066c1199404c87a4c65 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T73Hr-0001sH-P2 for emacs-orgmode@gnu.org; Thu, 30 Aug 2012 07:51:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T73Hn-0000xR-Hj for emacs-orgmode@gnu.org; Thu, 30 Aug 2012 07:51:51 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:46730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T73Hn-0000wZ-73 for emacs-orgmode@gnu.org; Thu, 30 Aug 2012 07:51:47 -0400 Received: by wibhq4 with SMTP id hq4so118626wib.12 for ; Thu, 30 Aug 2012 04:51:46 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --f46d04428066c1199404c87a4c65 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=3D2 and numberedp=3Dt 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 > 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-lev= el > to something else than 1. > The variable BEAMER_FRAME_LEVEL seems not to be honoured anymore. If I se= t > 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 > --=20 Fabrice Popineau ----------------------------- SUPELEC D=E9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --f46d04428066c1199404c87a4c65 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable And the problem comes from this.

In org-e-beamer.el:1325=
(defun org-e-latex-headline (headline contents info)
=A0 "Transcode an HEADLINE element from Org to LaTeX.
CONT= ENTS holds the contents of the headline. =A0INFO is a plist
holding contextual information."
=A0 (let* ((class (pli= st-get info :latex-class))
(level (org-export-get-relative-level headlin= e info))
(num= beredp (org-export-numbered-headline-p headline info))
(class-sectionning = (assoc class org-e-latex-classes))
;; S= ection formatting will set two placeholders: one for the
;; title and the = other for the contents.
(sec= tion-fmt
=A0(let ((sec (if (and (symbolp (nth 2 class-sectionning))
<= div> =A0= =A0 =A0(fboundp (nth 2 class-sectionning)))
(f= uncall (nth 2 class-sectionning) level numberedp)
=A0 =A0 =A0 (nth (1+ le= vel) class-sectionning))))

The funcall occurs on #'org-beamer-sectioning with argum= ent level=3D2 and numberedp=3Dt
but the function #'org-beamer= -sectioning (org-beamer:232) takes 'level' and 'text' as ar= guments, 'text'
being the contents of the headline.

Fabrice


2012/8/30 Fabrice Po= pineau <fabrice.popineau@supelec.fr>
Hi,

It seems to me that i= n 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(En= v) %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 :ET= C


* First section
[2012-0= 8-30 jeu. 13:32]
** First frame
[2012-08-30 jeu. 13:32]=
** Second frame
[2012-08-30 jeu. 13:32]
* Second s= ection
[2012-08-30 jeu. 13:32]
** Third frame
[2012-08-30 jeu. 13:32]

--
Fabrice



--
Fabrice Popi= neau
-----------------------------
SUPELEC
D=E9part= ement Informatique
3, rue Joliot Curie
91192 Gif/Yvette= Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212<= /div>
------------------------------


--f46d04428066c1199404c87a4c65--