[Tugindia] Query... printing two pages (in book-sized format) onA4

Baskaran baskaran at brilliant-it.com
Thu Oct 9 12:38:02 CEST 2003



-----Original Message-----
From: tugindia-bounces at tug.org [mailto:tugindia-bounces at tug.org]On
Behalf Of Radhakrishnan CV
Sent: Thursday, October 09, 2003 9:43 AM
To: TUGIndia Mailing List
Subject: Re: [Tugindia] Query... printing two pages (in book-sized
format) onA4


>>>>> "Kapil" == Kapil Hari Paranjape <kapil at imsc.res.in> writes:

    Kapil> On Wed, Oct 08, 2003 at 11:27:07PM +0530, Frederick Noronha
    Kapil> (FN) wrote:

    Fred> I'm quite a newbie to Lyx, leave along TeX. Can someone help
    Fred> me with this: how to I print two book-sized pages on an A4
    Fred> page, so that a photo-copy of the e-book looks like a real
    Fred> book?  Also, this would allow us to take the required-size
    Fred> print outs, if the possibilities of printing arise.

    Kapil> If you are willing to go outside TeX to do this then you
    Kapil> can use "a2ps" which can convert most files into different
    Kapil> printable PS formats--book like printing being one of them.

Kapil, we can very well do this within TeX. Here are some options:

* LaTeX by making use of pdfpages.sty 

  Create a dummy document, say print.tex in the following manner:

  \documentclass[a4paper]{article}
  \usepackage[final]{pdfpages}
  \usepackage{times}
  \pdfcompresslevel=9
  
  \begin{document}

   \includepdf[landscape,nup=1x2,pages=1-7]{pdfpages.pdf}

  \end{document}

  '1-7' given as values for 'pages' may be replaced by the first page
  and last page of your document.  pdfpages.pdf may be replaced with
  your document name.

Run pdfLaTeX over this document and see the result.

* Still more elegant solution is available in ConTeXt, Hans Hagen's
  macro library that competes with LaTeX and more advanced than LaTeX
  in many ways.  ConTeXt is part of any web2c distribution.

   texexec --pdfarrange --paper=A5A4 --print=2up \
     -result=<outfile.pdf> <infile.pdf>

Best regards

Radhakrishnan
_______________________________________________
Home:        http://www.tug.org.in/
unsubscribe: http://tug.org/mailman/listinfo/tugindia



More information about the tugindia mailing list