From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: adding attributes to tables in results Date: Sat, 21 Nov 2015 12:04:56 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0EPM-0000AZ-Js for emacs-orgmode@gnu.org; Sat, 21 Nov 2015 15:05:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0EPJ-0003Nj-Cs for emacs-orgmode@gnu.org; Sat, 21 Nov 2015 15:05:16 -0500 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:55728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0EPJ-0003N2-4c for emacs-orgmode@gnu.org; Sat, 21 Nov 2015 15:05:13 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: org-mode mailing list , Vikas Rawal 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! [snip] > > 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") "example")) #+END_SRC #+BEGIN_SRC emacs-lisp :exports results :wrap (ex-aware-wrap) (list (+ 1 2) 3 4) #+END_SRC HTH, Chuck