Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there any way to produce doc/docx files from LaTeX?

share|improve this question
5  
I'm not a fan of Micro$oft, but in case this might be of any help: HOWTO convert LaTeX to OpenOffice .odt and MS Word .doc. –  chl Jan 12 '11 at 19:08
5  
Have a look at Workflow for converting LaTeX into Open Office / MS Word Format. I would use tex4ht to use html as intermediate format to produce odf and doc/docx files. –  Stefan Kottwitz Jan 12 '11 at 20:09

8 Answers 8

For my (word-loving) Thesis Advisor I always ran the .tex-Files through htlatex (as suggested by chl and Stefan). The resulting HTML-file can then be opened with Word and saved in the desired .doc or .docx Format. Since you've mentioned that you're on Linux, you might not have Word anyways, then you can also send the HTML file to the person doing the revisions, with instructions on how to open a .html and save as revised .doc.

For not too complicated files (not including figures and delicate macros) I also had great results using the awesome pandoc.

And just as a snickering remark: In the long run, it might be good to learn your revisor some LaTeX skills, have some kind of revision system (SVN, Git, etc.) and work on the same repository (but that didn't work out for me either :)

share|improve this answer
1  
+1 for pandoc, you can convert latex straight to odt and the new version has also support for simple latex tables and listings. –  Matti Pastell Feb 11 '11 at 18:46
3  
Note that you can change the extension of a .html file to .doc so that it opens in Word when you double-click it. –  Rabarberski Feb 14 '13 at 8:40
    
I, too, have a need to convert a Tex file to Doc (damned stupid submission rules for certain things); but when passing my Tex files through pandoc, the resultant file only contains section headers. Any ideas what I'm going wrong? –  Jamie Taylor Oct 8 '13 at 8:49
    
It's an excellent point, but also an extraordinarily optimistic idea to think that my advisor will ever use markup languages. Not to mention version control systems... –  vmassuchetto Nov 26 '13 at 23:58

GrindEq makes a wonderful job in many cases. It is a plug-in for MS Word and converts equations, figures, tables, etc.. The bad point is that it is paid, and not open source. Anyway, the evaluation version lets you execute 10 times, and so it requires registration.

share|improve this answer

Independently of the tool you perform the conversion, you can fix the non-satisfactory converted parts with TexSword. For example, I am happy with Latex2rtf + TexSword.

share|improve this answer

I've tried a number of them: latex2rtf, tex4ht, freepdf, AdobeExportPDF, and I used MS Word 2013 to convert from pdf to docx.

latex2rtf is only useful if you use standard math (no amsmath and similar package) and no tables. Basically, you are confined to converting a basic text document.

tex4ht does, in my experience, pretty much the same job as latex2rtf. As soon as you insert a little math and some tables, the result is hardly usable.

freepdf does the job well - but it only converts 2 pdf pages for free. The name is a little misleading.

AdobeExportPDF comes up with the best result but there is no free version.

MSWord2013 is not as polished as freepdf or Adobe's solution. Some tables will be converted to actual tables and others will be converted to png images. The same with equations - they are not converted to actual equations but to the closest symbols and sometimes to png images. Basically, all equations need to be rewritten in word.

After years of trying and frustration I gave up and got myself a yearly license for AdobeExportPDF - which is considerably cheaper compared to freepdf. I know, it's not directly out of latex but at some point that was not an issue for me any more. I simply needed something that does the job quickly and which minimizes my postprocessing. Which, btw., is needed in all of the solutions mentioned above.

share|improve this answer
    
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  texenthusiast Jul 16 '13 at 20:28

I would like to resurrect this question. There are actually two separate questions here. First is there a good way to produce .doc file from LaTeX? The answer is probably yes if you work for Microsoft and you can see the source code for the rest of us no because it is binary locked format. The second question is if there is a good way to produce .docx files from LaTeX? Actually I think that correct answer should be yes with little bit work. Namely .docx is just a zipped archive. If you unzip it you will see bunch of XML files. One of them keeps the content the others are essentially style files. My understanding is that most publisher at this time keep permanent documents in XML format. Professional quality converter LaTeX to XML do exist. The real question is how to extract enough information from LaTeX document to populate Microsoft XML style files. If I would have to put my bet that code probably can be written if it is not already written.

share|improve this answer
1  
See a long discussion on this at tex.stackexchange.com/questions/4145/…. –  Andy Clifton May 22 '13 at 21:08

I have not tried it, but according to Wikipedia Microsoft Office / Word 2013 provides full read, write, and edit support for ISO 32000 (PDF).

share|improve this answer

if it is not a secure document you can upload a pdf to freepdf and convert it online. It depends to your document if the result is useful or garbage.

If your document has not a complecated structure than you can also try to convert it with t4ht into html and then read it with word/OpenOffice and saving it as doc.

share|improve this answer
    
That is a good suggestion. The only problem is that it doesn't seem to be working :-) I tried it, and it generated an empty document! –  Promather Jan 12 '11 at 19:26
    
There maybe other online converters. An alternative maybe a temporary installation of nitro pdf or TeX2word (you can google the web addresses) but both work only under windows. –  Herbert Jan 12 '11 at 19:33
    
@Herbert: do you mean –  Stefan Kottwitz Jan 12 '11 at 20:07
    
@Stefan Kottwitz: what?? –  Herbert Jan 13 '11 at 15:29
2  
Stefan Kottwitz: sorry, should be t4ht which is a synonym for tex4ht and its home is http://tug.org/applications/tex4ht/mn.html. But Eitan Gurari died in 2009, the reason why it is now not really maintained. –  Herbert Jan 13 '11 at 19:08

Near acceptable quality conversions can be achieved by producing a "pdf" document via LaTeX and then using Adobe Professional Pro Extended (save as) to convert.

share|improve this answer
1  
Sounds good. Unfortunately, I am on Linux now, and this is why I want this tool (i.e. sending the docx to another person for reviewing and commenting). Anyway, so if you think you have a suggestion of how to exchange comments using LaTeX, then please let me know to open a new question and you could answer it. –  Promather Jan 12 '11 at 19:12
    
@Rafid If it is not a long document, why don't you use the minimum LaTeX commands possible and just post is as LaTeX code at latex.pastebin.com or as a google docs document. They are very good for sharing documents (your reviewer can just read the text portion). –  Yiannis Lazarides Jan 12 '11 at 19:38
1  
@Rafid: If all you want is someone to review and comment, why not just send them the PDF? What's gained by a conversion to Word? –  TH. Jan 12 '11 at 21:17
    
@Yiannis, I haven't tried latex.pastebin.com, but Google Docs doesn't have reviewing like word. –  Promather Jan 12 '11 at 22:25
3  
@TH, Word has good reviewing system. If I send a pdf, that means he (my supervisor) has to copy the line he wants to copy, then insert his comments, which is a tedious task. In word, we simply select a text, and add a comment to it, and word will take care of the remaining. –  Promather Jan 12 '11 at 22:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.