From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: BIND org-html-style-include-*
Date: Fri, 15 Feb 2013 15:18:29 +0100 [thread overview]
Message-ID: <87txpd64p6.fsf@gmail.com> (raw)
In-Reply-To: <874nhdfyxt.fsf@bzg.ath.cx> (Bastien's message of "Fri, 15 Feb 2013 15:12:46 +0100")
Bastien <bzg@altern.org> writes:
> We need to make `org-html--build-mathjax-config' depends on whether
> there is an latex-fragment element in the parse tree. Otherwise,
> including the MathJAX config is useless.
>
> I've been looking at this this morning.
>
> Is there an org-element function to test whether an element/object
> of a certain type is present in the parse tree?
On course, it is `org-element-map' (you can have a look at its
docstring, there is one such example). So, assuming you have access to
communication channel (a.k.a. info argument):
(org-element-map (plist-get info :parse-tree)
'(latex-fragment latex-environment) 'identity info t)
will be non-nil when either an exportable `latex-fragment' object or
a `latex-environment' element is found within the parse tree.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2013-02-15 14:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 10:16 BIND org-html-style-include-* T.F. Torrey
2013-02-12 19:27 ` Nicolas Goaziou
2013-02-12 21:19 ` T.F. Torrey
2013-02-15 12:29 ` Nicolas Goaziou
2013-02-15 14:12 ` Bastien
2013-02-15 14:18 ` Nicolas Goaziou [this message]
2013-02-15 14:53 ` Bastien
2013-02-15 15:13 ` Nicolas Goaziou
2013-02-15 15:42 ` Bastien
2013-02-15 21:10 ` T.F. Torrey
2013-02-15 21:12 ` Sebastien Vauban
2013-02-15 21:21 ` Bastien
2013-02-15 21:35 ` Bastien
2013-02-15 23:22 ` T.F. Torrey
2013-02-18 17:07 ` Bastien
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=87txpd64p6.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/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).