From: Carsten Dominik <dominik@science.uva.nl>
To: Jason Riedy <jason@acm.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: One table, multiple radio targets?
Date: Fri, 29 Feb 2008 11:09:34 +0100 [thread overview]
Message-ID: <27C4F608-C27A-4E97-B20F-907F7134CDC6@science.uva.nl> (raw)
In-Reply-To: <87prugs4jy.fsf@sparse.yi.org>
On Feb 29, 2008, at 6:41 AM, Jason Riedy wrote:
> Anyone have a clever way to generate multiple outputs from one
> table? It's pretty clear that orgtbl-send-table doesn't handle
> multiple ORGTBL lines, and I'm not clever enough to hack in a
> loop over multiple clauses on one ORGTBL line.
>
> The context is a probably too clever mechanism to generate both
> code and documentation at once. I'm using noweb to document a
> SQL schema, and a few tables are pre-loaded with data. I'd like
> to send one orgtbl-mode table to LaTeX and SQL insert statements.
I think the easiest would be to write a little lisp program
that switches the SEND lines above the table through a number of states
and then calls the exporter. The different lines could all be in the
buffer, all
above the table. So it is basically
#+ORGTBL: SEND LATEXCAPTURETAG orgtbl-to-latex
#+ORGTBL: SEND HTMLCAPTURETAG orgtbl-to-html
| here | is | the | table |
then call orgtbl-ctrl-c-ctrl-c, then transpose-lines on the
two send lines, then call orgtbl-ctrl-c-ctrl-c again....
- Carsten
next prev parent reply other threads:[~2008-02-29 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-29 5:41 One table, multiple radio targets? Jason Riedy
2008-02-29 10:09 ` Carsten Dominik [this message]
2008-03-03 1:46 ` [PATCH] Support multiple destinations for each radio table Jason Riedy
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=27C4F608-C27A-4E97-B20F-907F7134CDC6@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=jason@acm.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).