From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19019 Path: news.gmane.org!not-for-mail From: "luigi.scarso" Newsgroups: gmane.comp.tex.context Subject: Re: imposition for a pdf file Date: Wed, 16 Mar 2005 14:22:35 +0100 Message-ID: <4238331B.6000206@logosrl.it> References: <20050316124800.89509.qmail@web80402.mail.yahoo.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0471731343==" X-Trace: sea.gmane.org 1110979429 29628 80.91.229.2 (16 Mar 2005 13:23:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2005 13:23:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 16 14:23:48 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DBYSj-0006Ou-Ie for gctc-ntg-context-518@m.gmane.org; Wed, 16 Mar 2005 14:21:25 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D18F91279C; Wed, 16 Mar 2005 14:22:45 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09564-10; Wed, 16 Mar 2005 14:22:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 741BC127DC; Wed, 16 Mar 2005 14:22:42 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2296C127DC for ; Wed, 16 Mar 2005 14:22:41 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09796-01 for ; Wed, 16 Mar 2005 14:22:40 +0100 (CET) Original-Received: from ServerNotes.logosrl.it (unknown [81.208.99.91]) by ronja.ntg.nl (Postfix) with ESMTP id 7D11A1279C for ; Wed, 16 Mar 2005 14:22:40 +0100 (CET) Original-Received: from [192.168.2.85] ([192.168.2.85]) by ServerNotes.logosrl.it (Lotus Domino Release 6.5.1) with ESMTP id 2005031614190644-3271 ; Wed, 16 Mar 2005 14:19:06 +0100 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: ciro@kavyata.com, mailing list for ConTeXt users In-Reply-To: <20050316124800.89509.qmail@web80402.mail.yahoo.com> X-MIMETrack: Itemize by SMTP Server on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 16/03/2005 14.19.06, Serialize by Router on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 16/03/2005 14.19.07, Serialize complete at 16/03/2005 14.19.07 X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:19019 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19019 --===============0471731343== Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=ISO-8859-1 Sorry ciro, but i like write tex code.
  1. save following code as test.tex
    %%
    %% save it as test.tex
    %%
    \setupcolors[state=start]
    \starttext
    \dorecurse{660}%
    {\startTEXpage[width=3cm,height=2cm]
    \vbox to \vsize{\vss
    \hbox
    to\hsize{\hss\framed[width=2cm,align={middle,lohi},background=color,backgroundcolor=green]{p.\tfd\recurselevel}\hss}\vss}
    \stopTEXpage}
    \stoptext
  2. create the pdf
    $>texexec --pdf test.tex
  3. Save the following into my-imp.tex
    %%
    %% save as my-imp.tex
    %%
    %% \setuplayout
    \starttext
    \centerline{%
    \externalfigure[test][page=1]
    \externalfigure[test][page=3]
    \externalfigure[test][page=5]
    \externalfigure[test][page=7]
    \externalfigure[test][page=9]
    \externalfigure[test][page=11]
    }
    \blank[1cm]
    \centerline{%
    \externalfigure[test][page=2]
    \externalfigure[test][page=4]
    \externalfigure[test][page=6]
    \externalfigure[test][page=8]
    \externalfigure[test][page=10]
    \externalfigure[test][page=12]
    }
    \stoptext
  4. create the pdf
    $> texexec --pdf my-imp
    
    
        
  5. the first page of my-imp.pdf now has  12 pages from test.pdf;
Now, if you have yourfile.pdf you can replace
\externalfigure[test][page=8]
with
\externalfigure[yourfile][page=8] etc.


\externalfigure has parameters page,width,height, etc...;
you can use it to scale to appropriate dimensions (they depends by size of paper);search on wiki for externalfigure


Usually i make simple scripts that create my-imp.tex with correct pagenumber (ie the pagenumber that i want to select); also i use \clip (search on wiki) to correct some page and pdfinfo to have some informations on pdf files.

But hans also replay with a quick and clean solution.....


luigi






--===============0471731343==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

--===============0471731343==--