[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] adding attributes to tables in results

From: John Kitchin
Subject: [O] adding attributes to tables in results
Date: Sat, 21 Nov 2015 08:55:13 -0500

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

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

: #+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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]