From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: [dev] About a beamer back-end Date: Fri, 15 Jun 2012 17:08:11 +0200 Message-ID: <87ehpg8vfo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfYBM-0008L9-M6 for emacs-orgmode@gnu.org; Fri, 15 Jun 2012 11:11:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfYBG-00066N-9S for emacs-orgmode@gnu.org; Fri, 15 Jun 2012 11:11:28 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:60769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfYBG-00065d-08 for emacs-orgmode@gnu.org; Fri, 15 Jun 2012 11:11:22 -0400 Received: by wgbds1 with SMTP id ds1so2151178wgb.30 for ; Fri, 15 Jun 2012 08:11:20 -0700 (PDT) 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: Org Mode List Hello, As I announced in another thread, I'm starting a Beamer back-end for the new export engine. Though, before I start hacking, I have a question about environments. I'm wondering if it is really interesting to have every environment set up from headlines. I understand it allows to use column view but, from my experience, I've used previous Beamer exporter without ever resorting to this view. Also, it introduces some hacks (like the "normal" block) when you want to insert some text after a block. On the other hand, I think special blocks could be used for environments. For example: #+begin_src org * Vocabulary #+ATTR_BEAMER: :title "Definition" #+BEGIN_BLOCK A *set* consists of elements. #+END_BLOCK Some text. #+ATTR_BEAMER: :title "Question." :action "<2->" #+BEGIN_ALERTBLOCK Let R be the set of all sets that are not members of themselves. Is R a member of itself? #+END_ALERTBLOCK #+end_src would result in: #+begin_src latex \begin{frame} \frametitle{Vocabulary} \begin{block}{Definition} A \alert{set} consists of elements. \end{block} Some text. \begin{alertblock}<2->{Question} \end{alertblock} \end{frame} #+end_src Beamer minor mode would provide templates for blocks instead of shortcuts for property API. Frames would still be defined from headlines. I do not mind keeping previous implementation, but it can be clunky at times. What do you think? Regards, -- Nicolas Goaziou