[Top][All Lists]

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

Re: [O] adding attributes to tables in results

From: Charles C. Berry
Subject: Re: [O] adding attributes to tables in results
Date: Sat, 21 Nov 2015 12:04:56 -0800
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

On Sat, 21 Nov 2015, John Kitchin wrote:

I am running a search committee of 5 people. As applications come in, an
org heading is created for each application, and I run a command to send
one of the committee an email with a review rubric in it, and this
command creates a subheading to put their review. We have 275
applications so far, so I am using code to aggregate results into tables.

Ouch! That is serious work!


The tip Charles gave works for export, but the tables do not look too
good for me in the org-document unless I run C-c ' on them to get them
in org, and I also want them functional in the org-buffer too.

Use a different wrapper for executing src block outside of exports.

Something like this (with suitable tuning) should work:

#+BEGIN_SRC emacs-lisp
  (defun ex-aware-wrap ()
      (if org-export-current-backend
          (concat "src org :exports results "
                  ":results  replace "
                  "\n#+ATTR_LATEX: "
                  ":environment longtable")

#+BEGIN_SRC emacs-lisp :exports results :wrap (ex-aware-wrap)
(list (+ 1 2) 3 4)



reply via email to

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