Document Classes ⇒ Merging two pages
-
- Posts: 4
- Joined: Tue Aug 12, 2008 10:57 am
Merging two pages
is there a LaTeX package that can merge pair of pages into one? For example, I have [a5paper,portrait]document with 10 pages, I apply thesf wrdq ewhis package and get [a4paper,landscape]document with 5 pages.
This could be accomplished by using documentclass option "twocolumn", unfortunately both columns are considered to be on one page, they should be considered two different pages (for page numbering).
There are also external tools, that can combine the pages together in this fashion, but they destroy internal links.
Any ideas?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Merging two pages
Here is solution with pdfpages:
Code: Select all
\documentclass[a4paper]{minimal}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages-,nup=1x2,landscape]{a5document.pdf}
\end{document}
Tomek
-
- Posts: 4
- Joined: Tue Aug 12, 2008 10:57 am
Merging two pages
http://www.svenhartenstein.de/latex-booklets.php
Although it is ugly solution and doesn't do what I need

Code: Select all
psbook $1.ps tmp1.ps
Code: Select all
cp $1.ps tmp1.ps

Merging two pages
Merging two pages
Right, I missed that part about hyperlinks when I was skimming through your post. I've just checked pgfpages and the documentation says:Tranzistors wrote:Thanks for advice, alas pdfpages package did destroy the links and booklets wasn't exactly what was needed.
So you can cross that one out as well.A word of warning: using pgfpages will destroy hyperlinks.
I use this booklet stuff for printing only, so breaking hyperlinks doesn't matter for me. I think, that it might be quite difficult to achieve your goal. The way those packages usually work is to hook into TeX's shipout routine and at that point it's probably too late to fix hyperlinks. Your best bet then is probably something that works with two column setup. Skimming through source code of 2in1 package suggested by gmedina it looks like it might be what you're after.
Cheers,
Tomek