From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Beamer presentation in the document Date: Wed, 09 Jun 2010 10:18:25 -0700 Message-ID: <87sk4w2kgu.fsf@gmail.com> References: <871vcg1rs0.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34856 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMOvS-0001en-UX for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 13:18:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMOvO-0005OI-6U for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 13:18:50 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:60382) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMOvN-0005NR-Tn for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 13:18:46 -0400 Received: by wwb34 with SMTP id 34so1117541wwb.0 for ; Wed, 09 Jun 2010 10:18:39 -0700 (PDT) In-Reply-To: <871vcg1rs0.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Wed, 09 Jun 2010 11:25:51 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org Hi S=C3=A9bastien, S=C3=A9bastien Vauban writes: [...] > > 1. How could I use the same table in the slides as in the document, witho= ut > copy/pasting it? > > Is there, maybe, some Babel black magic at hand? Export/import? > The following babel solution should work. It uses a code block to copy the contents of the table into the presentation on export. I think I'll add the "echo" code block in the below example to the library of babel, so in the future this should work w/o having to include the code block in the file. --8<---------------cut here---------------start------------->8--- #+TITLE: Complete Minimal Example #+AUTHOR: S=C3=A9bastien Vauban #+EMAIL: wxhgmqzgwmuf@spammotel.com #+DATE: 2010-06-09 #+LANGUAGE: en_US # This code block won't show in any export #+source: echo #+begin_src emacs-lisp :var tab=3D'(("echo")) :exports none tab #+end_src * Document ** results #+ATTR_LaTeX: align=3Dlr #+tblname: rate-&-interests | Rate (%) | Interests | |----------+------------| | 3.50 | 2564935.21 | | 4.00 | 2931354.52 | | 4.50 | 3297773.83 | | 5.00 | 3664193.15 | | 5.50 | 4030612.46 | * presentation Amounts -- here is the table #+call: echo(tab=3Drate-&-interests) :exports results #+ATTR_LaTeX: align=3Dlr #+results: echo(tab=3Drate-&-interests) | Rate (%) | Interests | |----------+------------| | 3.5 | 2564935.21 | | 4.0 | 2931354.52 | | 4.5 | 3297773.83 | | 5.0 | 3664193.15 | | 5.5 | 4030612.46 | --8<---------------cut here---------------end--------------->8--- Best -- Eric