\newpage
. Someone out there to know a solution?Page Layout ⇒ Separate Text Parts for odd and even Pages
Separate Text Parts for odd and even Pages
I have the task to have two separate texts, say "L.tex", "R.tex" to be combined in one book, with "L.tex" always on the left page, and "R.tex" always on a right page. Each is to have its own
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Separate Text Parts for odd and even Pages
Hi,
welcome to the board!
You could create a new document, which reads in the other documents and combines them, using the
pdfpages package and its
Stefan
welcome to the board!
You could create a new document, which reads in the other documents and combines them, using the

\includepdf
command.Stefan
LaTeX.org admin
Separate Text Parts for odd and even Pages
dear Stefan, great to have your professional advice. Below is the realization. It works! Thanks
Of course, a dream remains to have the two .tex files as input, and teach latex to pick the stream of characters from the left.tex file for the left pages and from the right.tex file for the right side pages.
#test.tex
#test-left.tex
#test-right.tex
Of course, a dream remains to have the two .tex files as input, and teach latex to pick the stream of characters from the left.tex file for the left pages and from the right.tex file for the right side pages.
#test.tex
Code: Select all
Code, edit and compile here:
\documentclass[12pt]{book}\usepackage[final]{pdfpages}\begin{document}\includepdf[pages={1}]{test-right.pdf}\includepdf[pages={2}]{test-left.pdf}\includepdf[pages={3}]{test-right.pdf}\includepdf[pages={4}]{test-left.pdf}\includepdf[pages={5}]{test-right.pdf}% and so forth\end{document}
Code: Select all
...\begin{document}\newpagethis is page 1 left\newpage\newpagethis is page 2 left\newpage\newpagethis is page 3 left..
Code: Select all
Code, edit and compile here:
\begin{document}this is page 1 right\newpage\newpagethis is page 2 right\newpage\newpagethis is page 3 right\newpage..
Last edited by Stefan Kottwitz on Sat Jun 16, 2012 12:59 pm, edited 1 time in total.