From mboxrd@z Thu Jan 1 00:00:00 1970 From: tftorrey@tftorrey.com (T.F. Torrey) Subject: Re: BIND org-html-style-include-* Date: Fri, 15 Feb 2013 14:10:09 -0700 Message-ID: <87liapi8r2.fsf@lapcat.tftorrey.com> References: <87r4kh7oc2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6SY4-0007M6-JE for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 16:10:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6SY2-0004y4-A9 for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 16:10:24 -0500 Received: from mail-pb0-f43.google.com ([209.85.160.43]:57398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6SY2-0004xD-4Q for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 16:10:22 -0500 Received: by mail-pb0-f43.google.com with SMTP id md12so756662pbc.2 for ; Fri, 15 Feb 2013 13:10:18 -0800 (PST) In-Reply-To: <87r4kh7oc2.fsf@gmail.com> (message from Nicolas Goaziou on Fri, 15 Feb 2013 13:29:01 +0100) 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hello, Nicolas Goaziou writes: > tftorrey@tftorrey.com (T.F. Torrey) writes: > >> I still don't see any similar options regarding MathJax. Perhaps >> everyone else uses MathJax, or the functionality simply hasn't been >> implemented yet. If only the HTML export backend maintainer were still >> on the list... > > Would you mind describing what is missing? It shouldn't be hard to > implement it. By default, the HTML export engine includes some CSS for basic presentation, some JavaScript for interacting with code in the HTML, and some JavaScript for the MathJax functionality (among many other things, of course). The CSS can be not included by setting org-html-style-include-default to nil. The non-MathJax JavaScript can be not included by setting org-html-style-include-scripts to nil. However, the new HTML exporter includes the MathJax JavaScript every time, and I don't see any variable to set to suppress it. The old exporter did not export it. IIRC, it was off by default, and there was a setting to turn it on (don't quote me, I never used it). Recent posts by Bastien suggest that maybe it is supposed to be included only if LaTeX is used in the buffer, but I'm not sure he was talking about this issue. With the new exporter on my Org, even the most minimal Org file exported to HTML includes MathJax. My Org version is 7.9.3e-1032-g791a8d. The most recent pulls fail testing (which people must already know). (By the way, though it may be too late to change them now, the variables would be better named "org-html-include-style-default" and "org-html-include-scripts-default" and possibly "org-html-include-scripts-mathjax". The HTML exporter has many things that might be included in the output, and having the variables all starting with "org-html-include-" would make them easier for everyone to find, understand, and modify.) (Similarly, as someone else wrote, #+HTML_STYLE would be much better named #+HTML_HEAD, given that style is just one of the many things this directive might put into the head element of the html.) All the best, Terry -- T.F. Torrey