From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Latex strikethrough or cancel? Date: Thu, 08 Oct 2015 11:12:27 -0400 Message-ID: <87h9m1l7hg.fsf@alphaville.usersys.redhat.com> References: <87lhbdlsth.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkCs7-0006uX-4e for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 11:12:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkCs3-0002Lj-Tz for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 11:12:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:53742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkCs3-0002Le-Mu for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 11:12:39 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZkCrx-0007fn-Sg for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 17:12:34 +0200 Received: from pool-108-20-41-232.bstnma.fios.verizon.net ([108.20.41.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Oct 2015 17:12:33 +0200 Received: from ndokos by pool-108-20-41-232.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Oct 2015 17:12:33 +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: emacs-orgmode@gnu.org Nick Dokos writes: > ... > You must mean HTML export - MathJax apparently does not know about > \cancel. There is an extension mechanism: > > https://docs.mathjax.org/en/latest/extension-writing.html > > but that's as far as my knowledge extends. If you make it work, please > share. > It's actually simple - the documentation tells you exactly how to do it using the cancel package as an example :-) - see the section "TeX and LaTeX extensions" in https://docs.mathjax.org/en/v2.5-latest/tex.html All you need to do to incorporate that into org is to make it add the script when you export. That is done by appending it to org-html-mathjax-template: --8<---------------cut here---------------start------------->8--- (setq org-html-mathjax-template (concat org-html-mathjax-template " ")) --8<---------------cut here---------------end--------------->8--- -- Nick