Latex to InDesign

The ambition of the scripts described here and in the attached PDF is to convert Latex documents to InDesign. The scripts attempt to include as many Latex features as possible; see the feature list, below.

However, there are many Latex implementations and hundreds – if not thousands – of packages that add functionality to some or all Latex versions. Therefore it's unlikely that the scripts are able successfully to convert all Latex documents. But because of the way the main converter is set up it's not too complicated to add and/or change functionality. If you notice any glaring gaps you can write to me, see the link at the bottom of this page.

Downloads

Latex-to-InDesign.pdf (the manual)

Latex-to-InDesign-6.zip (the scripts) (revision history in the PDF and at the foot of this page)

Videos

I recorded some (YouTube) videos to illustrate a few features of the converter:

Installation

Convert a file

Equations

Citations and bibliography

Note: The script's behaviour can be different in some details from what is shown in the videos because the videos aren't always updated. The PDF manual is always up to date.


Donations

The scripts are free. However, donations will be appreciated.

Peter Kahrel's paypal account

Feature list

What is converted

And what is not (yet)

Some (maybe all) of the missing items listed here will be implemented later.

The to-do list

Sources

As reference I used Leslie Lamport's Latex: A document preparation system. I also consulted Mittelbach and Goossens's The Latex companion.

My main test bed is a 215-page PhD thesis entitled Terahertz Time-Domain Spectroscopy of Biological Macromolecules, which contains many equations, figures, tables, and other interesting material. The thesis was prepared in MikTeX. (Many thanks to its author (my step-daughter), Kasia Tych, for letting me use it.) I also used a number of (very) different Latex files kindly supplied by Laurent Tournier, which use a lot of equations, footnotes, and index entries.


Revision history

5. 9 Feb 2025

– Added a chapter on how to use the Latex2Ind script and added (a modified version of) it to the download. Updated the manual in various places. The converter itself didn't change.

– Added a tip: the converter has no progress bar, but when you open GREP tab of the Find/Change window you’ll see all the regular expression flash by that are used by the converter. Makes a good progress indicator because there are zillions of GREP searches and replacements.

– Added a section on InDesign pain points.

– Added a note on line endings.

– Added more elaborate paragraph numbering to section-heading styles and added a section outlining the numbering system.

– Improved the presentation of various lists.

– Added support for the tabbing environment.

– Some more document cleaning added.

– Bug fixes.

4. 22 Jan 2025

– Added \pageref to cross-reference processing.

– Added support for various types of box (mbox, makebox, framebox, fbox).

– Expanded table processing: added support for column spans; included inline tables; improved the processing of column properties such as width and alignment. There is still some work to do on tables.

– The chapter on tables was substantially rewritten.

3. 6 Jan 2025

– Bug fixes.

– Added support for column-spanning figures (figures containing more than one minipage environment).

– Added a script to apply a Math character style to all math symbols that can’t be displayed using the default font.

2. 2 Jan 2025

– Bug fixes.

– Added subscripts for log-like functions.

– Sum, integral, and product are now sensitive to whether they are in a display or an inline equation (position of the arguments).

– Added support for quotes and quotations.

1. 27 Dec. 2024 -- first drop.

27 Dec. 2024: Posted.


Back to script index

Questions, comments? Get in touch