Is it possible to import two tex files with \input and to have the content of the one file be always on the left page facing the content of the other file being always on the right? The page numbers should go on continuously 1, 2, 3, 4, ...

(Actually I guess that this is not so easy to be achieved.)

I imagine something like this:

%!TEX TS-program = lualatexmk



Both files would just consist of simple data such as

Text. ...

Nonetheless both files will be long and contain several pages worth of text. In other words, I would have two long files file_A.tex and file_B.tex and latex fills me the left page consecutively with the contents of A and the right pages consecutively with the contents of B.

This being said, I don't mind (and in fact would prefer!) to cut the contents of the two files in page-size chunks by manually using \pagebreak several times at appropriate places within each file.

  • I guess you could typeset them both on their own and increment the page counter by 2 on each page, then splice the pdfs together? – Juri Robl Jan 27 '15 at 7:52
  • Yes, I thought of this. This is one -- potentially laborious -- way to do it. – ClintEastwood Jan 27 '15 at 7:54
  • why not using eledpar? – Maïeul Jan 28 '15 at 16:42
  • actually, because I am looking for an alternative to eledmac/eledpar, as I have been unable to overcome my problems with these packages for three years. – ClintEastwood Jan 28 '15 at 19:11
  • 1
    it's work like explained in this handbook. See this MWE pastebin.fr/38373 – Maïeul Jan 31 '15 at 10:20

You can probably arrange to store each page in a box instead of shipping it out, and then sorting the boxes at the end, something like this:

enter image description here


\edef\x{\noexpand\typeout{page \thepage\space is box \the\zzz}}\x
\global\advance\zzz1 %





  \let \protect \noexpand
    \zzshipout\vbox{\hbox{blank A}}%
    \zzshipout\vbox{\hbox{blank B}}%
\global\advance\c@page1 %

| improve this answer | |
  • sorry acrobat has done the usual thing and shown the spreads reversed with odd side to the left. – David Carlisle Feb 6 '16 at 13:53

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.