1

I`m trying to insert LaTex into Word 2010.

I`m following the method that the user David Carlisle described here in an answer:

Embed LaTeX math equations into Microsoft Word

I`m trying 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>
$$\left \lfloor{\frac{S}{2}}\right \rfloor \times 4  + \frac{N \times 4}{2} +4  $$
</body>
</html>

It works on the browser

formula

Then i get the MathMl code as described in his post and i added the line at the beginning as he said in his post and i have this code:

Math ML

But when i post it to word, it appears like this:

bad formula

What can i do to make the formula appear the same in word as in the browser?

Thanks in advance

Edit:

These are the equation options in my word, they are written in spanish.

Options

Well, i finally made it work, i pasted the equation in a word that was completely empty and it appeared well

picture 2

Then i copied the formula and pasted it in the other word that wasn`t empty and it worked

picture 3

I seems that you have to paste the html file on an empty word to make it work. And then you can paste the formula to another word that isn`t empty. Seems that you cant paste it to a word with things written on it directly

rotia
  • 113
  • Welcome to TeX.SX! This rather looks like a MathJaX question than a true LaTeX question –  Nov 21 '14 at 21:14
  • @ChristianHupfer in the referenced question I just suggested mathjax as being a convenient latex-math to mathml convertor so I think it's as on topic as tex4ht or latexml questions, it isn't asking about specific mathjax features. – David Carlisle Nov 21 '14 at 22:00

1 Answers1

1

I have word2010 and it worked for me:

enter image description here

In case it makes any difference these are the settings in my math tools settings thing (I think they are the default, I never use Word)

enter image description here

David Carlisle
  • 757,742
  • where are the equation options?, i dont find them in my word – rotia Nov 21 '14 at 21:26
  • @rotia not surprising: word's "ribbon" interface is not exactly intuitive:-) if you type alt= it wil start a new math zone click on there and the equation bar thing appears then under the big Pi sign it says tools and next to that is a tiny button with a diagonal arrow click on that and the above menu appears. – David Carlisle Nov 21 '14 at 21:42
  • I found the options, seem to be the same than yours – rotia Nov 21 '14 at 21:54
  • @rotia looks like it. I really never use Word so it is hard for me to guess. I have windows 8 64 (English) and Word 2010 and pretty much default settings for both, for me it "just worked" (and checking that it works when a new version comes out is all I ever use word for, apart from the occasional document I get sent) sorry I can't help more. You could try some other editor than notepad (anything) to see if it puts the information on the clipboard in a different format that word does recognise. – David Carlisle Nov 21 '14 at 22:05
  • @rotia wow that's weird. but then Word is strange. Anyway glad you got it working, even if the route is even longer than I described. – David Carlisle Nov 21 '14 at 22:57