From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: MathJax beyond org-html-mathjax-options? Date: Fri, 03 Nov 2017 18:40:05 +0100 Message-ID: <87o9ojuuq2.fsf@gmx.us> References: <87fu9w7rk7.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAfx0-0004PI-6s for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 13:40:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAfww-00020r-Tx for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 13:40:14 -0400 Received: from mout.gmx.net ([212.227.17.21]:50172) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAfww-0001x5-KX for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 13:40:10 -0400 In-Reply-To: (Lawrence Bottorff's message of "Fri, 3 Nov 2017 13:29:53 -0400") 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" To: borgauf@gmail.com Cc: emacs-orgmode@gnu.org Lawrence Bottorff writes: > Bottom line: we can't expand org-html-mathjax-options to add in MathJax's > cancel.js, etc. I did not say that. With the current version, you could do it yourself by adding (extensions "ext1.js, ..., extn.js") to org-html-mathjax-options and changing org-html-mathjax-template to load the extensions at the right place. Once extensions is added to org-html-mathjax-options you should also be able to set it in files via the #+html_mathjax keyword, but you might have to be careful how you write it (I=E2=80=99m not sure space would= go). I hope this is clear enough. > Yes, your first "quick-and-dirty" worked just fine. > Q: How did you know how to format #+html: \(\require{cancel}\) ? it=E2=80=99s in the mathjax manual, http://docs.mathjax.org/en/latest/tex.html?highlight=3Dcancel#tex-and-l= atex-extensions > Also, how does the org world know that we're talking about loading >MathJax's cancel.js? It doesn=E2=80=99t really. But content after "#+html:" is only added to ht= ml output. From there mathjax takes over. > As you all know I'm not a "developer-class" poster here, so my questions > often look dull-witted. This is a community for all Org users. There=E2=80=99s mostly no numb ques= tions. This one certainly wasn=E2=80=99t. I=E2=80=99d no knowledge about mathjax = extensions before reading your mail. > Will try the patch once I learn a bit more diff in Emacs lore. . . . Thanks. Rasmus --=20 And when I=E2=80=99m finished thinking, I have to die a lot