From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ANN] Beamer back-end for org-export in contrib/ Date: Mon, 02 Jul 2012 14:22:12 +0200 Message-ID: <87d34egxor.fsf@gmail.com> References: <877guo26c9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Slfh6-0007zm-VU for emacs-orgmode@gnu.org; Mon, 02 Jul 2012 08:25:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Slfh4-0006kq-HO for emacs-orgmode@gnu.org; Mon, 02 Jul 2012 08:25:32 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:47829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Slfh4-0006jw-4j for emacs-orgmode@gnu.org; Mon, 02 Jul 2012 08:25:30 -0400 Received: by wgbds1 with SMTP id ds1so3669752wgb.30 for ; Mon, 02 Jul 2012 05:25:28 -0700 (PDT) In-Reply-To: (suvayu ali's message of "Sat, 30 Jun 2012 20:46:41 +0200") 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: suvayu ali Cc: Org Mode List Hello, suvayu ali writes: > I recall you saying you would add more overlay support gradually; > I would like to say it would be nice if there is support for > replace-like overlays (e.g. \only or \onslide). It would be great if > I can wrap blocks in these. To illustrate what I mean, I can produce > the above effect with the following ugly hack: > > #+OPTIONS: H:2 > > * Section=20 > ** Frame title Some more text > > #+LATEX: \only<1>{% > *** Example block :B_exampleblock: > :PROPERTIES: > :BEAMER_env: exampleblock > :END: > Some example text > > *** ignore :B_ignoreheading: > :PROPERTIES: > :BEAMER_env: ignoreheading > :END: > #+LATEX: } > > #+LATEX: \only<2>{% > *** Theorem block :B_theorem: > :PROPERTIES: > :BEAMER_env: theorem > :END: > Some bla bla =E2=88=80 \mathcal{R} > > *** ignore :B_ignoreheading: > :PROPERTIES: > :BEAMER_env: ignoreheading > :END: > #+LATEX: } This should be possible with `org-e-beamer-environments-extra', i.e. (add-to-list 'org-e-beamer-environments-extra '("onlyenv" "O" "\\begin{onlyenv}%a" "\\end{onlyenv}")) Then you set headline's BEAMER_env property to onlyenv and modify BEAMER_act accordingly. >> Every plain list has support for `:overlay' attribute (through >> ATTR_BEAMER affiliated keyword). =C2=A0Also, ordered (resp. description) >> lists make use of `:template' (resp. `:long-text') attribute. >> > > I wasn't clear what you meant here. Could you give an example? Did you > mean I can specify overlay specification for list items with the above > mechanism? I'm not clear on the syntax here. These attributes modify the whole list. To set overlays for individual items, use export snippets. Examples follow: #+ATTR_BEAMER: :template "i)" :overlay "<+->" 1. First item 2. Second item=20 will become \begin{enumerate}[<+->][i)] \item First item \item Second item \end{enumerate} whereas 1. @@e-beamer:<1>@@ First item 2. @@e-beamer:<2>@@ Second item will become \begin{enumerate} \item<1> First item \item<2> Second item \end{enumerate} > I have another feature request (for the distant future) with regards to > lists; I would like to put tikz nodes in list items. I have tried that > in the past with very limited success. For an example, you can look > here: > > Again, export snippets should allow this. To obtain: \begin{itemize} \item Anode \tikz[na] \coordinate (s-anode); \item Cathode \tikz[na] \coordinate (s-cathode); \item Saline bridge \tikz[na] \coordinate (s-bridge); \end{itemize} You can write: - Anode @@e-beamer:\tikz[na] \coordinate (s-anode);@@ - Cathode @@e-beamer:\tikz[na] \coordinate (s-cathode);@@ - Anode @@e-beamer:\tikz[na] \coordinate (s-bridge);@@ > I presume the beamer options go like the following? > > #+LATEX_CLASS_OPTIONS: [smaller,presentation] Yes. > I have a question; are subtree exports supported yet? I think so. Have you tested them? Thank you for testing the back-end. Regards, --=20 Nicolas Goaziou