[texhax] Booklet A6 format
Pavel Minev Penev
pavpen at berkeley.edu
Mon Feb 23 21:07:23 CET 2004
On Mon, Feb 23, 2004 at 09:51:44AM +0100, Sorin Marti wrote:
> Hi all,
>
> I need some hints:
>
> I want to create a booklet with format DIN A6. That means that I want to
> write my file on DIN A5 landscape and put 2 pages (A6) on it.
>
> like this (the whole page is A5 in landscape orientation):
>
> +--------+--------+
> | | |
> | | |
> | A6 | A6 |
> | | |
> | | |
> +--------+--------+
>
> So:
>
> - Is there a documentclass option for A5 (like a4paper)?
> - How to divide a page in two columns?
>
> And:
> - How to print it like a book?
> That means first page and last page on the same sheet.
>
> Lets say my document had 8 pages:
>
> sheet 1: first side sheet 1: second side
> +--------+--------+ +--------+--------+
> | | | | | |
> | | | | | |
> | p. 1 | p. 8 | | p. 2 | p. 7 |
> | | | | | |
> | | | | | |
> +--------+--------+ +--------+--------+
>
>
> sheet 2: first side sheet 2: second side
> +--------+--------+ +--------+--------+
> | | | | | |
> | | | | | |
> | p. 3 | p. 6 | | p. 4 | p. 5 |
> | | | | | |
> | | | | | |
> +--------+--------+ +--------+--------+
>
> Is this a TeX-problem or should I solve this with
> a ps tool (like ps2ps or ps2pdf)?
Back at the time when I was writing a script having a similiar setup to
yours (A5 pages on A4 sheets), I tried a number of options. Package
geometry will probably be useful to you, but I didn't find a way to
distribute the pages as needed from within LaTeX. I tried tried using
`psnup`, `pstops`, `mpage`, `psbook` and `psresize`. There appeared to
be a number of bugs regarding the paper size that ends up in the PS
document. What I ended up using was:
[In the LaTeX file:]
\documentclass[twoside,10pt]{book}
[A6 paper is supported by geometry:]
\usepackage[dvips,a5paper,twoside,includemp]{geometry}
[To your taste:]
\geometry{ marginparwidth=0.7cm,
lmargin=1.5cm, rmargin=1.5cm,
tmargin=2cm, bmargin=2cm}
[In a script that prepares the paper for printing:]
#!/bin/sh
psbook tex_outp.ps with_pages_reordered.ps
export PAPERSIZE=a5
mpage -m0 -2 with_pages_reordered.ps > with_pages_grouped.ps
psresize -Pa5 -pa4 -q with_pages_grouped.ps ready_for_pringing.ps
echo "NOTE: You probably need not rotate the pages when re-inserting them!"
Luck good,
--
Pav
The fight for humanity NOW:
,.,
http://larouchein2004.net/ ,``:'', http://www.againsttcpa.com/
{o ! o}
Gain your human right of ] -+- [ My GPG/PGP key is now available at
privacy: use cryptography! \ ! / x-hkp://search.keyserver.net:11371.
`-'
`shell$ gpg --keyserver x-hkp://search.keyserver.net:11371 --recv-key 164C028F`
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://tug.org/pipermail/texhax/attachments/20040223/55baabd5/attachment.bin
More information about the texhax
mailing list