4

I have a latex document on Overleaf that contains equations and mathematical symbols and I want to convert my document to the Word version, I transformed my .tex document to .pdf then I used an online converter for pdf to Word, but all the equations get ruined.

Is there a way to do the conversion without damaging the equations?

walid
  • 207
  • 1
  • 2
  • 7

2 Answers2

6

You could use Pandoc the simples usage is like this pandoc -o file.docx file.tex

pml
  • 462
3

Equations are where you are going to experience your biggest problem. (One could also ask WHY you want to do this, as you will have a much richer experience with LaTeX, but I won't ask).

Since Word supposedly understands MathML, perhaps your best option would be to first use tex4ht or LaTeXML to convert to HTML with MathML and then import that file into Word.

  • 2
    you can convert to word directly with TeX4ht, using make4ht -f odt filename.tex command. This has advantages over the HTML export, like support for footnotes and similar features that are supported by Word, but not by HTML. – michal.h21 Jul 27 '20 at 16:47
  • How can I use tex4ht? – walid Jul 27 '20 at 20:28
  • @walid it is installed automatically when you have a local TeX installation. You can then use make4ht on the command line. – michal.h21 Jul 28 '20 at 08:52
  • @michal.h21 I am using Overleaf. Is it possible to install a Tex in my laptop (which one)? – walid Jul 28 '20 at 12:38
  • @walid it is possible to use make4ht with Overleaf, but it is not that easy: https://www.kodymirus.cz/overleaf-html-sample/main.html It is best to use TeX Live, as it is most up to date. – michal.h21 Jul 28 '20 at 15:01