[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] BIND org-html-style-include-*
From: |
Nicolas Goaziou |
Subject: |
Re: [O] BIND org-html-style-include-* |
Date: |
Fri, 15 Feb 2013 15:18:29 +0100 |
Bastien <address@hidden> 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
- [O] BIND org-html-style-include-*, T.F. Torrey, 2013/02/12
- Re: [O] BIND org-html-style-include-*, Nicolas Goaziou, 2013/02/12
- Re: [O] BIND org-html-style-include-*, T.F. Torrey, 2013/02/15
- Re: [O] BIND org-html-style-include-*, Nicolas Goaziou, 2013/02/15
- Re: [O] BIND org-html-style-include-*, Bastien, 2013/02/15
- Re: [O] BIND org-html-style-include-*,
Nicolas Goaziou <=
- Re: [O] BIND org-html-style-include-*, Bastien, 2013/02/15
- Re: [O] BIND org-html-style-include-*, Nicolas Goaziou, 2013/02/15
- Re: [O] BIND org-html-style-include-*, Bastien, 2013/02/15
- Re: [O] BIND org-html-style-include-*, T.F. Torrey, 2013/02/15
- Re: [O] BIND org-html-style-include-*, Sebastien Vauban, 2013/02/15
- Re: [O] BIND org-html-style-include-*, Bastien, 2013/02/15
- Re: [O] BIND org-html-style-include-*, Bastien, 2013/02/15
- Re: [O] BIND org-html-style-include-*, T.F. Torrey, 2013/02/15
- Re: [O] BIND org-html-style-include-*, Bastien, 2013/02/18