From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug, ox-latex] footnotes with math in narrowed buffer Date: Sat, 25 Apr 2015 12:22:43 +0200 Message-ID: <87bnicbj7w.fsf@nicolasgoaziou.fr> References: <87y4lhzf63.fsf@gmx.us> <87tww5ze22.fsf@gmx.us> <87oamdco8r.fsf@nicolasgoaziou.fr> <878udhz2bt.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlxD9-0000de-1o for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 06:21:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlxD8-00017o-95 for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 06:21:23 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:37102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlxD8-00017g-3S for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 06:21:22 -0400 In-Reply-To: <878udhz2bt.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 24 Apr 2015 22:41:26 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Nicolas Goaziou 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,