[NTG-context] pdf arrange

2011-12-17 Thread Hans van der Meer
I think I saw in the recent past here something about rearranging the pages of 
a pdf. However, I cannot find it, therefore I take the liberty to place this 
question.
The idea is to change the pages from 1,2,3,4,etc, into 1,3,2,4,etc.
Can it be done with one of the tools in the ConTeXt distribution, or else..?
Thanks in advance

Hans van der Meer



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pdf arrange

2011-12-17 Thread Marco Pessotto
Hans van der Meer havdm...@xs4all.nl writes:

 I think I saw in the recent past here something about rearranging the pages 
 of a pdf. However, I cannot find it, therefore I take the liberty to place 
 this question.
 The idea is to change the pages from 1,2,3,4,etc, into 1,3,2,4,etc.
 Can it be done with one of the tools in the ConTeXt distribution, or else..?
 Thanks in advance

It's described in Layouts in context. There are plenty of schemas for
the imposition.

For example:

\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]
% or \setuparranging[2*2*2]

\setuppagenumbering[alternative=doublesided]

\starttext

\dorecurse{20}{\input knuth}

\stoptext

Then compile with context --arrange source.tex

Bests.


-- 
Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pdf arrange

2011-12-17 Thread Meer, H. van der
I am afraid I did not phrase my question clear enough. The problem is producing 
a rearranged pdf from an existing one.

Hans van der Meer



On 17 dec. 2011, at 17:50, Marco Pessotto wrote:

 Hans van der Meer havdm...@xs4all.nl writes:
 
 I think I saw in the recent past here something about rearranging the pages 
 of a pdf. However, I cannot find it, therefore I take the liberty to place 
 this question.
 The idea is to change the pages from 1,2,3,4,etc, into 1,3,2,4,etc.
 Can it be done with one of the tools in the ConTeXt distribution, or else..?
 Thanks in advance
 
 It's described in Layouts in context. There are plenty of schemas for
 the imposition.
 
 For example:
 
 \setuppapersize[A5][A4,landscape]
 \setuparranging[2UP]
 % or \setuparranging[2*2*2]
 
 \setuppagenumbering[alternative=doublesided]
 
 \starttext
 
 \dorecurse{20}{\input knuth}
 
 \stoptext
 
 Then compile with context --arrange source.tex
 
 Bests.
 
 
 -- 
 Marco
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pdf arrange

2011-12-17 Thread Marco Pessotto
Meer, H. van der h.vanderm...@uva.nl writes:

 I am afraid I did not phrase my question clear enough. The problem is 
 producing a rearranged pdf from an existing one.

 Hans van der Meer


AFAIK, nothing bundled. But you can create a new PDF selecting and
rearranging the pages.

You could use pdfjam, which is LaTeX and Bourne shell based. Some time
ago I wrote a perl script for this purpose, emulating pdfjam but
without LaTeX (using only ConTeXt). 

https://gitorious.org/the-anarchist-library-tools/the-anarchist-library-tools/blobs/master/context-imposition/imposer.pl

I hope this helps. 

Cheers


-- 
Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pdf arrange

2011-12-17 Thread Wolfgang Schuster

Am 17.12.2011 um 18:22 schrieb Meer, H. van der:

 I am afraid I did not phrase my question clear enough. The problem is 
 producing a rearranged pdf from an existing one.

http://wiki.contextgarden.net/Imposition#Rearranging_existing_PDFs

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___