Rasmus <ras...@gmx.us> writes: > Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: >> >> `org-html--build-mathjax-config' needs to check, in addition to parse >> tree, cdr of all associations in (plist-get >> info :footnote-definition-alist), and values of all parsed keywords. > > It seems you did not do this. I will add this over the weekend.
Actually, it isn't a very good idea because we cannot assume all parsed keywords and all footnote definitions will actually be used to create the document. This can introduce false positives. What about inserting a :with-mathjax option (default value `org-html-with-mathjax'). If nil, no template, if t, template, if `auto', current behaviour (i.e. template if some math snippet /in body/)? `auto' is a decent default value for `org-html-with-mathjax' and it can be overridden per document with :with-mathjax. Regards,