From: "Eric Schulte" <schulte.eric@gmail.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Beamer presentation in the document
Date: Wed, 09 Jun 2010 10:18:25 -0700 [thread overview]
Message-ID: <87sk4w2kgu.fsf@gmail.com> (raw)
In-Reply-To: <871vcg1rs0.fsf@mundaneum.com> ("Sébastien Vauban"'s message of "Wed, 09 Jun 2010 11:25:51 +0200")
Hi Sébastien,
Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:
[...]
>
> 1. How could I use the same table in the slides as in the document, without
> 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ébastien 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='(("echo")) :exports none
tab
#+end_src
* Document
** results
#+ATTR_LaTeX: align=lr
#+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=rate-&-interests) :exports results
#+ATTR_LaTeX: align=lr
#+results: echo(tab=rate-&-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
next prev parent reply other threads:[~2010-06-09 17:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-09 9:25 Beamer presentation in the document Sébastien Vauban
2010-06-09 17:18 ` Eric Schulte [this message]
2010-06-10 8:03 ` Sébastien Vauban
2010-06-10 17:11 ` Eric Schulte
2010-06-10 21:36 ` Sébastien Vauban
2010-06-10 21:55 ` Eric Schulte
2010-06-21 9:34 ` Sébastien Vauban
2010-06-10 8:36 ` Sébastien Vauban
2010-06-11 7:29 ` Sébastien Vauban
2010-06-21 9:46 ` Sébastien Vauban
2010-06-21 20:03 ` Eric S Fraga
2010-06-24 6:39 ` Carsten Dominik
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=87sk4w2kgu.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.com \
/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).