* selecting columns to export
@ 2013-05-01 11:16 Greg Minshall
2013-05-01 11:26 ` Sebastien Vauban
0 siblings, 1 reply; 3+ messages in thread
From: Greg Minshall @ 2013-05-01 11:16 UTC (permalink / raw)
To: emacs-orgmode
hi. i have an org-mode table with a large number of columns, but would
like to export only a small number of them. is there an obvious way of
doing this?
cheers, Greg
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: selecting columns to export
2013-05-01 11:16 Greg Minshall
@ 2013-05-01 11:26 ` Sebastien Vauban
0 siblings, 0 replies; 3+ messages in thread
From: Sebastien Vauban @ 2013-05-01 11:26 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hi Greg,
Greg Minshall wrote:
> hi. i have an org-mode table with a large number of columns, but would
> like to export only a small number of them. is there an obvious way of
> doing this?
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?
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: selecting columns to export
@ 2013-05-02 1:07 Greg Minshall
0 siblings, 0 replies; 3+ messages in thread
From: Greg Minshall @ 2013-05-02 1:07 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ
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()
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-02 1:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 1:07 selecting columns to export Greg Minshall
-- strict thread matches above, loose matches on Subject: below --
2013-05-01 11:16 Greg Minshall
2013-05-01 11:26 ` Sebastien Vauban
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.