Hello,
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?
Document Classes ⇒ Merging two pages
NEW: TikZ book now 40% off at Amazon.com for a short time.

Merging two pages
There are several packages that can be used depending on your needs: pdfpages, pgfpages (part of PGF package), booklet, quire (part of midnight package).
Here is solution with pdfpages:
Cheers,
Tomek
Here is solution with pdfpages:
Code: Select all
Code, edit and compile here:
\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
Thanks for advice, alas pdfpages package did destroy the links and booklets wasn't exactly what was needed. However, booklets were close enough to investigate bit further and I found this:
http://www.svenhartenstein.de/latex-booklets.php
Although it is ugly solution and doesn't do what I need
I modified it by replacing page ordering command
with essentially 'do nothing' command
I am not sure all links are working correctly, still, this is a good start 
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
Perhaps the 2in1 package could be an option.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
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