TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a straight TeX document, and I'd like to produce from it a Texinfo document. Does there exist a tool that does this, or a set of guidelines? TeX and Texinfo seem to be closely related, so it feels like it should be possible, but I can't seem to find anything that does this conversion in particular.

If there is no general tool for that, how much information am I likely to lose in going from TeX to XML to Texinfo?

The document in question is the TeX source of the Mongrel2 manual, for reference - so it's a non-trivial chunk of TeX, but also guaranteed not to be a malformed or perverse chunk of TeX.

share|improve this question

migrated from stackoverflow.com Nov 16 '11 at 1:37

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

Yeah, if there's no answer in a few days, I'm going to flag this for moderator attention and request a move. Thank you. – Brighid McDonnell Nov 15 '11 at 20:14
There is this at tug.org. – Peter Grill Nov 16 '11 at 2:01
Usually the sequence is in the reverse direction ;-) – Andrey Vihrov Nov 16 '11 at 6:29
up vote 5 down vote accepted

You might consider pandoc. Pandoc uses "templates" to convert an input format into pandoc's markdown format, which can then be converted into any other format with a supported template. The official templates repository lists both texinfo and latex templates, so that's where I'd start.

share|improve this answer
Awesome! Pandoc worked. Pandoc also exposed the fact that this TeX document lacks a bunch of stuff I'm used to finding in Texinfo documents. So I'm getting an education in how to construct those. I hope Zed doesn't make enough changes to the manual that I have to do this again soon. – Brighid McDonnell Nov 21 '11 at 17:11
Glad to help, and good luck. – jrhorn424 Nov 25 '11 at 2:31

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.