From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremie Juste Subject: Re: mathjax macro in org-mode Date: Mon, 15 Oct 2018 17:24:46 +0200 Message-ID: <87tvlnnsg1.fsf@gmail.com> References: <8736t8p7hv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC4jo-0002J9-3w for emacs-orgmode@gnu.org; Mon, 15 Oct 2018 11:24:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC4jk-0001nR-90 for emacs-orgmode@gnu.org; Mon, 15 Oct 2018 11:24:55 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:44396) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gC4ji-0001lO-Qi for emacs-orgmode@gnu.org; Mon, 15 Oct 2018 11:24:52 -0400 Received: by mail-wr1-x430.google.com with SMTP id 63-v6so21801572wra.11 for ; Mon, 15 Oct 2018 08:24:50 -0700 (PDT) Received: from freegnu ([194.167.235.219]) by smtp.gmail.com with ESMTPSA id t77-v6sm9512636wme.18.2018.10.15.08.24.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 08:24:47 -0700 (PDT) In-Reply-To: <8736t8p7hv.fsf@gmail.com> (Jeremie Juste's message of "Sun, 14 Oct 2018 23:02:04 +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" To: emacs-orgmode@gnu.org Jeremie Juste writes: Hello, looking deeper into the docs I saw that we could modify the org-html-mathjax-template in the following way to add the macro. (setq (org-html-mathjax-template " ")) another quick option is just to define the latex macro directly in the main body as follows before exporting to html but this would generate an when exporting to latex $\newcommand{\R}{\mathbb{R}}$ Hope it helps, Jeremie > Hello, > > I was wondering how to set up mathjax macro in org-mode. For instance > would it be possible to use #+HTML_MATHJAX: to include the following macro? > > Macros: { > R: '{\\mathbb{R}}', > bold: ['{\\bf #1}',1] > } > > So far my attempts have been unsuccessful. > > Best regards, > > Jeremie