I have a LaTeX 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 LaTeX to XML to Texinfo?

The document in question is the LaTeX 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.

  • 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

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.

  • 2
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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