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.

I want to write my thesis in latex but I need to include doc and pdf file on a CD. Is it possible to generate doc file from latex?

share|improve this question

migrated from stackoverflow.com Apr 7 '14 at 15:00

This question came from our site for professional and enthusiast programmers.

Give pandoc a quick look. I think it only handles new Word (docx) rather than old (doc), but LibreOffice can be used headless. –  John C Apr 5 '14 at 11:42
@JohnC it work. It don't preserve the font (all is in arial) but you can add this as an answer. –  jcubic Apr 5 '14 at 19:04

1 Answer 1

up vote 4 down vote accepted

Pandoc will convert most major formats to both PDF and old Microsoft Word (doc). LibreOffice can then be used headless.

For the font issue, there is the --reference-docx=FILE option.

Use the specified file as a style reference in producing a docx file. For best results, the reference docx should be a modified version of a docx file produced using pandoc. The contents of the reference docx are ignored, but its stylesheets are used in the new docx.

Emphasis added.

share|improve this answer

Your Answer


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.