2

I would like to cross-out a term in equation inside the equation editor in word 2016.

This the effect I would like to achieve in equation editor in MS Word 2016. enter image description here

Can tex commands be made compatible for word?

Jedi
  • 900
Anonymous
  • 161

1 Answers1

5

My solution is kind of a disparate one, but it is a solution. The idea is to use latex and MathJax to form a cancel term, then copy it to MS Word, and save it as a building block. This is my recipe, and this is how we bake it:

  1. Create Html File and paste on it the following code:

    <!DOCTYPE html>
    <html>
        <head>
           <script type="text/javascript"
            src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
           </script>
           <title>tex texample</title>
        </head>
        <body>
          $$\require{cancel}$$
          $$x\cancel{+5}+y+\cancel{-5}=0$$
        </body>
    </html>
    

    Notice the \require{cancel}. It is an important line.

  2. Open this file using a browser. You should have an Internet connection, or you have to download MathJax lib, and rewrite the value of src attribute of script tag to reference it (not recommended). Now you see the following equation:

    enter image description here

  3. Right click on the equation and select Show Math As > MathML Code, Copy MathML code to MS Word document, and choose Keep text only, or simply press: Ctrl+v, Ctrl, T. Or let me just give you a docx file that contains cancel term inside an equation (https://drive.google.com/open?id=1joQgDibWU5HVa-T6NcNzrW2etSfsw8C1).

  4. Now you have the equation as a MS Word Equation. Strip the cancel term and save it to the Equation Building Blocks, as shown: enter image description here

  5. Now you have it. Whenever you need to insert cancel term, just go to

    Equation -> Tools design -> Equation

    as illustrated:
    enter image description here

Sorry for the images. I'm not allowed to post 'em, because it seems that I have a bad reputation.

zx485
  • 2,337
Esau
  • 51