emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Greg Minshall <minshall@umich.edu>
To: Sebastien Vauban
	<public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: selecting columns to export
Date: Wed, 01 May 2013 21:07:43 -0400	[thread overview]
Message-ID: <21441.1367456863@greg-minshalls-mbp.local> (raw)



Sebastien,

> Put a partial echo code block (one where you select in the var header
> argument which columns interest you), and output the results of that
> code block?

thanks!  below is the final result of your suggestion.  (my table was
long, so i had to use longtable; i also used a "landscape" documentclass
variant in order to hold more columns for printing.)

cheers, Greg
----
#+LATEX_CLASS_OPTIONS: [letter, landscape]

** the main table :noexport:

#+name: full-table :exports none
| a                    | b                                              |     c |      d |     e |      f |     g |      h |     i |      j |     k |      l |     m |      n |     o |      p |     q |     r |     s |      t |    u |     v |    w |    x |    y | z   |
|----------------------+------------------------------------------------+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+-------+-------+--------+------+-------+------+------+------+-----|
<your data here>
|----------------------+------------------------------------------------+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+--------+-------+-------+-------+--------+------+-------+------+------+------+-----|...

** the partial table, suitable for printing

# uncommented, the following produces a table! (search for src_ in the manual)
# src_emacs-lisp[:var tbl=full-table[,0:5]]{tbl}

#+name: fubar
#+begin_src emacs-lisp :var x=full-table[,0:5] :results silent :exports none
x
#+end_src

#+call: fubar()

# named results, and the importance of w.r.t. attr_latex, courtesy of
# http://lists.gnu.org/archive/html/emacs-orgmode/2012-08/msg00864.html
# http://lists.gnu.org/archive/html/emacs-orgmode/2012-08/msg00868.html

#+ATTR_LATEX: :environment longtable :align l|l|r|r|r|r
#+RESULTS: fubar()

             reply	other threads:[~2013-05-02  1:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-02  1:07 Greg Minshall [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-05-01 11:16 selecting columns to export Greg Minshall
2013-05-01 11:26 ` Sebastien Vauban

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=21441.1367456863@greg-minshalls-mbp.local \
    --to=minshall@umich.edu \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.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).