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: Fri, 24 Apr 2015 21:36:36 +0200 Message-ID: <87oamdco8r.fsf@nicolasgoaziou.fr> References: <87y4lhzf63.fsf@gmx.us> <87tww5ze22.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljNc-0008Pe-D4 for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 15:35:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YljNb-0001Ex-9Q for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 15:35:16 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:42376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljNb-0001Ej-3Y for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 15:35:15 -0400 In-Reply-To: <87tww5ze22.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 24 Apr 2015 18:28:05 +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 Hello, Rasmus writes: > Rasmus writes: > >> * h1 >> foo[fn:1] >> >> * Footnotes >> [fn:1] if \alpha $\beta$ \(\gamma\) >> >> Narrow it to h1 and export the buffer. Something like this is exported: > > This also does not seem to work correctly when exporting with ox-html. > But there the problem is that the parse-tree does not recognize any > latex-fragments. So org-html--build-mathjax-config returns nil rather > than the appropriate mathjax setup. `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. > BTW: While it's nice to try to make a sensible decision on whether to load > mathjax, this rest of pretty fragile assumptions. I could INCLUDE a html > file with math. What do you suggest instead? Load mathjax every time? Regards, -- Nicolas Goaziou