From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: Re: example filter for code blocks? Date: Thu, 26 Sep 2013 18:31:52 +0000 Message-ID: References: <874n97srm5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPGM7-0007li-KS for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 14:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPGM2-0004o5-90 for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 14:32:03 -0400 Received: from smtp01.stowers.org ([12.201.176.61]:44764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPGM2-0004nu-27 for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 14:31:58 -0400 In-Reply-To: <874n97srm5.fsf@gmail.com> Content-Language: en-US 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: 'Eric Schulte' , 'John Kitchin' Cc: "'emacs-orgmode@gnu.org'" >Check out `org-export-filter-src-block-functions'. It shouldn't be too >hard to add a custom filter to that list which may be used to process >all code block bodies during latex export. Somewhat off-topic, but, thanks for pointing out this variable Eric.... I'= ve been wanting an approach that would wrap all exported code in some kind = of folded mode (maybe a jquery accordion). Initially the html document by = default would display only exported 'results'. The user could choose to di= splay the code behind any result with a single click (keyboard interactivit= y would be even better). Do you think that this is the right 'hook' to app= ly such? Have you seen this already done better somewhere? ~ Malcolm Cook > >Best, > >-- >Eric Schulte >https://cs.unm.edu/~eschulte >PGP: 0x614CA05D