emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [Babel] How to find out export format in a babel plugin


From: Erik Iverson
Subject: Re: [O] [Babel] How to find out export format in a babel plugin
Date: Thu, 24 Mar 2011 23:17:10 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8

On 03/24/2011 10:09 PM, Jianing Yang wrote:
Hi, all

I've recently written a babel plugin which does syntax highlighting
using pygment.
However, I have to specify a '-f html' option every time I use it. It looks like


#+begin_src pygment :cmdline -l bash -O linenos -f html
exec 3<&0 # copies STDIN, it prevents 'read' stealing STDIN from '$command'
while read FN; do
   test -e "$FN" || rm -iv "$FN"<&3
done<  <(find . $level -type l)
#+end_src

Therefore, my question is that is there a way that a babel plugin can
be aware about the export
format? If there is, not only I can omit the '-f html' but it could
also support for other export format,
like latex, transparently.

In git pulls from within the last few weeks, see the variable:
org-export-current-backend

Does your pygment idea have any overlap with:
http://comments.gmane.org/gmane.emacs.orgmode/28420



reply via email to

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