From: Erik Iverson <eriki@ccbr.umn.edu>
To: Jianing Yang <jianingy.yang@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Babel] How to find out export format in a babel plugin
Date: Thu, 24 Mar 2011 23:17:10 -0500 [thread overview]
Message-ID: <4D8C1746.1040601@ccbr.umn.edu> (raw)
In-Reply-To: <AANLkTimZkxZMsrf7rAdhs2KWrAYLo0fy_JxwZ8XHMjZy@mail.gmail.com>
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
prev parent reply other threads:[~2011-03-25 4:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 3:09 [Babel] How to find out export format in a babel plugin Jianing Yang
2011-03-25 4:17 ` Erik Iverson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D8C1746.1040601@ccbr.umn.edu \
--to=eriki@ccbr.umn.edu \
--cc=emacs-orgmode@gnu.org \
--cc=jianingy.yang@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).