I have an interesting project here and, while I could do it manually, it seems to me to be an interesting puzzle to automate it.
I have the following structure:
./
+- main.tex
|
+- originals/
| |
| +- poem1.tex
| |
| +- poem2.tex
|
+- translations/
|
+- poem1.tex
|
+- poem2.tex
I'd like to leverage the parallel package (or imitate its functionality) and set these poems side-by-side. How can I read in these files paragraph-by-paragraph as aiming to insert a \ParallelPar after each one to align the paragraphs?
Please let me know if there are any more details I can provide.
Since this MWE is rather complicated, a mock-up of the scenario is provided as a gist:
git clone https://gist.github.com/11165565.git
Be sure to compile with XeLaTeX.