Re: [NTG-context] imposition for a pdf file

2005-03-17 Thread Albrecht Kauffmann
Multivalent has a pdf-tool for arranging some pages at one printing page.

Greetings
Albrecht


On Wed, 16 Mar 2005, luigi.scarso wrote:

 Ciro A. Soto wrote:

  I have a pdf file with 660 letter-size pages.
 I would like to save toner in my printer by
 printing 2 or 4 pages in one single sheet of paper.

 Is it possible to do this with context?
 or any other alternative?

 Remember, I don't have the source file, only the pdf
 file.

 thank you

 Ciro


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



 As usually, not a direct answer...

 Play with these script
 %%
 %% 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,backgroundcolo
 r=green]{p.\tfd\recurselevel}\hss} \vss}
 \stopTEXpage}
 \stoptext

 %%
 %% save as my-imp.tex
 %%
 %% \setuplayout here
 \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

 (you can create my-imp.tex by a script and choosing the appropriate
 number
 for page=, also use \setuplayout etc..)

 Also look forĀ  \setuparranging.

 luigi




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


Re: [NTG-context] imposition for a pdf file

2005-03-17 Thread luigi.scarso
Hans Hagen wrote:
in page-imp are some additional inclusion macros -)
Yes, i have seen some of them.
I have a problem about stickers and imposition;
i try to use/modify some of this macros for pagearrangement, but i 
consume all
tex memory.
Actually i have found a dirty solution using perl and sort; as soon as 
possible
i will post some code.

shorter
\centerline
  {\dostepwiserecurse{1}{11}{2}
 {\expanded{\externalfigure[test][page=\recurselevel]}}}
Yes, syst-ext.  and others syst-.
I try to made a pdf-collection of useful module like syst-*, page-* 
core-box, supp-box, some module for fonts (open issue: turkish), etc.
(last entry: \startsetups in core-new..)

In my head, i call this collection
context-foundation: core macros for context programmers
If you have some suggestions. |)
Also, i know some books/resources for tex programmers:
(always The Book first :) )
texbytopic.pdf,
cseq.html,
The Advanced TEXBook (seem good; maybe i will buy it)
etex-man.pdf
Again, if you have some others...
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] imposition for a pdf file

2005-03-17 Thread Hans Hagen
luigi.scarso wrote:
I have a problem about stickers and imposition;
there's a special x/y one for stickers
Yes, syst-ext.  and others syst-.
I try to made a pdf-collection of useful module like syst-*, page-* 
core-box, supp-box, some module for fonts (open issue: turkish), etc.
(last entry: \startsetups in core-new..)

In my head, i call this collection
context-foundation: core macros for context programmers
this is what taco/patrick call the api (so ... how about joining the 
api-team)
If you have some suggestions. |)
Also, i know some books/resources for tex programmers:
(always The Book first :) )
indeed, the more you tex, the more you find in it
texbytopic.pdf,
those are the ones that i use (although i haven't touched them for a long time 
now which may be a bad sign)

cseq.html,
that's indeed a nice one
The Advanced TEXBook (seem good; maybe i will buy it)
this is a g ood book as well; (david gave a nice few days course for the ntg 
long ago so i also have the preprint somewhere)

etex-man.pdf
Again, if you have some others...
Beginner's Book of TEX
Seroul, Raymond, Levy, Silvio
1st ed. 1991. Corr. 3rd printing, 1995, XII, 284 pp., Softcover
ISBN: 0-387-97562-4
is a nice one (looking at the cover on the springer page it looks like i have an 
old copy);

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread luigi.scarso




Ciro A. Soto wrote:

  I have a pdf file with 660 letter-size pages.
I would like to save toner in my printer by
printing 2 or 4 pages in one single sheet of paper.

Is it possible to do this with context?
or any other alternative?

Remember, I don't have the source file, only the pdf
file.

thank you

Ciro


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

  

As usually, not a direct answer...

Play with these script
%%
%% 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=""
\vss}
\stopTEXpage}
\stoptext

%%
%% save as my-imp.tex
%%
%% \setuplayout here
\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

(you can create my-imp.tex by a script and choosing the
appropriate number
for page=, also use \setuplayout
etc..)

Also look for \setuparranging.

luigi




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


Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread Hans Hagen
luigi.scarso wrote:
Ciro A. Soto wrote:
I have a pdf file with 660 letter-size pages.
I would like to save toner in my printer by
printing 2 or 4 pages in one single sheet of paper.
Is it possible to do this with context?
or any other alternative?
Remember, I don't have the source file, only the pdf
file.
thank you
Ciro
texexec --pdf --pdfcomb --comb=2*2 manypages.pdf
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 

As usually, not a direct answer...
Play with these script
%%
%% 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

%%
%% save as my-imp.tex
%%
%% \setuplayout here
\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
(you can create my-imp.tex by a script and choosing the appropriate number
for page=, also use \setuplayout etc..)
Also look for  \setuparranging.
luigi


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

--
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread Wolfgang Zillig
I think something link
 texexec --pdfarra --noduplex --paper=A5A4 --print=2SIDE yourdocument.pdf
should work. There is more information about in the the manual for texexec 
www.pragma-ade.com/general/manuals/mtexexec.pdf

Wolfgang

luigi.scarso schrieb:
Ciro A. Soto wrote:
I have a pdf file with 660 letter-size pages.
I would like to save toner in my printer by
printing 2 or 4 pages in one single sheet of paper.
Is it possible to do this with context?
or any other alternative?
Remember, I don't have the source file, only the pdf
file.
thank you
Ciro
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 

As usually, not a direct answer...
Play with these script
%%
%% 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

%%
%% save as my-imp.tex
%%
%% \setuplayout here
\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
(you can create my-imp.tex by a script and choosing the appropriate number
for page=, also use \setuplayout etc..)
Also look for  \setuparranging.
luigi


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


Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread Ciro A. Soto
Thank you. This should work.
Ciro
--- Hans Hagen [EMAIL PROTECTED] wrote:
 luigi.scarso wrote:
  Ciro A. Soto wrote:
  
 I have a pdf file with 660 letter-size pages.
 I would like to save toner in my printer by
 printing 2 or 4 pages in one single sheet of
 paper.
 
 Is it possible to do this with context?
 or any other alternative?
 
 Remember, I don't have the source file, only the
 pdf
 file.
 
 thank you
 
 Ciro
 
 texexec --pdf --pdfcomb --comb=2*2 manypages.pdf
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
   
 
  As usually, not a direct answer...
  
  Play with these script
  %%
  %% 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
  
  %%
  %% save as my-imp.tex
  %%
  %% \setuplayout here
  \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
  
  (you can create my-imp.tex by a script and
 choosing the appropriate number
  for page=, also use \setuplayout etc..)
  
  Also look for  \setuparranging.
  
  luigi
  
  
  
 


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

-
Hans
 Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt |
 The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 |
 www.pragma-ade.com
   |
 www.pragma-pod.nl

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


Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread luigi.scarso




Sorry ciro, but i like write tex code.

  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=""
\stopTEXpage}
\stoptext
  
  create the pdf
$texexec --pdf test.tex
  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
  
  
create the pdf
$ texexec --pdf my-imp



  
  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






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


Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread luigi.scarso
Ciro A. Soto wrote:
I tried Hans' approach. It works fine, but
 

My approach shows a (my) way to manipulate pages
from a source pdf; Hans gives you the exact solutions for your problem.
I hope you have found both useful.
somehow the pdf file with the 2*2 pages
is corrupted since it does not print well, mostly
garbage.
It looks good on screen though.
I printed one page of the original pdf
and it is fine. So the problem happens in
the imposition step.
any suggestion?
thank you
ciro
 

Yes, it's strange; without the pdf i can't give you more help.
luigi.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] imposition for a pdf file

2005-03-15 Thread Ciro A. Soto
I have a pdf file with 660 letter-size pages.
I would like to save toner in my printer by
printing 2 or 4 pages in one single sheet of paper.

Is it possible to do this with context?
or any other alternative?

Remember, I don't have the source file, only the pdf
file.

thank you

Ciro


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