all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* adding attributes to tables in results
@ 2015-11-21 13:55 John Kitchin
  2015-11-21 17:40 ` Charles C. Berry
  0 siblings, 1 reply; 7+ messages in thread
From: John Kitchin @ 2015-11-21 13:55 UTC (permalink / raw)
  To: Org Mode

Hi everyone,

I am trying to figure out a way to automatically add some attributes to
tables generated from code blocks.

These aren't the same all the time, but some typical things I would want
to do is specify some tables to be longtable, or set the placements,
alignments, etc...

I know of http://orgmode.org/manual/post.html#post which works for
non-table output well, but with tables, adding the text makes the output
not render as a table anymore.

For example:

#+name: attr_wrap
#+begin_src sh :var data=""  :results output
echo "#+ATTR_LATEX: :environment longtable"
echo $data
#+end_src

#+BEGIN_SRC emacs-lisp  :post attr_wrap(*this*)
(list (+ 2 4) 4 5)
#+END_SRC

#+RESULTS:
: #+ATTR_LATEX: :environment longtable
: 6 4 5


Does anyone know a way to have a code block output a table with
attributes (besides printing them as strings with raw output)?

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-11-21 21:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-21 13:55 adding attributes to tables in results John Kitchin
2015-11-21 17:40 ` Charles C. Berry
2015-11-21 18:04   ` John Kitchin
2015-11-21 18:09     ` Vikas Rawal
2015-11-21 18:52       ` John Kitchin
2015-11-21 20:04         ` Charles C. Berry
2015-11-21 21:45           ` John Kitchin

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.