From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Latex strikethrough or cancel? Date: Thu, 08 Oct 2015 03:31:38 -0400 Message-ID: <87lhbdlsth.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk5g7-0001GL-QS for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 03:31:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zk5g4-0001Mt-JO for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 03:31:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:44746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk5g4-0001Mf-Cw for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 03:31:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zk5g2-0005Wv-89 for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 09:31:46 +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 09:31:46 +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 09:31:46 +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 Lawrence Bottorff writes: > I've got a fraction done this way in an org file: > > \[ >  \frac{1}{(2^3)(5)} >  \] > > and I'd like to strike though or cancel the (5) part. The Latex method I've found says do it this way: > > ... > \usepackage[makeroom]{cancel} > ... > > \[ >  \frac{1}{(2^3)\cancel{(5)}} >  \] > > But it's ignored and comes back verbatim. Of course +(5)+ doesn't work either, again, coming back verbatim with the pluses. How can I do this? > Not sure what you tried, but it all works fine here for PDF export. The following latex file works: --8<---------------cut here---------------start------------->8--- \documentclass{article} \usepackage[makeroom]{cancel} \begin{document} \[ \frac{1}{(2^3)\cancel{(5)}} \] \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: --8<---------------cut here---------------end--------------->8--- and the following org file works as well: --8<---------------cut here---------------start------------->8--- #+LATEX_HEADER: \usepackage[makeroom]{cancel} * Some math \[ \frac{1}{(2^3)\cancel{(5)}} \] --8<---------------cut here---------------end--------------->8--- 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. Alternatively, you can use the (generally inferior) method of exporting math as images - adding #+OPTIONS: tex:imagemagick works OK (assuming you have imagemagick installed of course). There is also #+OPTIONS: tex:dvipng if you have dvipng instead. -- Nick