emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@supelec.fr>
To: emacs-orgmode@gnu.org
Subject: Re: org-e-beamer-exporter and frame level
Date: Thu, 30 Aug 2012 13:51:26 +0200	[thread overview]
Message-ID: <CAFgFV9P5kpp4t=PsM0kvR55zi6Bq3_KH1_vddVUKVQ=3hU0V8A@mail.gmail.com> (raw)
In-Reply-To: <CAFgFV9P6cUR9cbAMPL7zFzaxKsw6iDwOTOU3XboyZ_hGYF+_oA@mail.gmail.com>

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

      parent reply	other threads:[~2012-08-30 11:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [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='CAFgFV9P5kpp4t=PsM0kvR55zi6Bq3_KH1_vddVUKVQ=3hU0V8A@mail.gmail.com' \
    --to=fabrice.popineau@supelec.fr \
    --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).