I am currently translating a book and typesetting the translation.
For reviewing purposes, I would find it very useful to display the original and translated texts side-by-side, without having to duplicate the text I have for the typesetted translation. My translation is stored in a
chapters/ directory, one file per chapter, beginning with a
\chapter command, and containing several
\section* commands each.
My idea would be to have a
chapters_orig/ directory with the chapters in the original language, and then automatically generate a document that contains the two languages side-by-side, paragraph by paragraph.
I have read about the
parallel package but I don't see how I could use it to automatically generate this document without altering my current document.
Although I've answered my question with a bash script, I'm still interested in a TeX-based solution, and I would be happy to make it a package.