ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: imposition for a pdf file
@ 2005-03-16 12:48 Ciro A. Soto
  2005-03-16 13:22 ` luigi.scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Ciro A. Soto @ 2005-03-16 12:48 UTC (permalink / raw)


Thank you Luigi,
but where is the pdf file input in your instructions?
remember, i don't have the tex file, only the pdf
file.
ciro


--- "luigi.scarso" <luigi.scarso@logosrl.it> wrote:

---------------------------------
    Ciro A. Soto wrote:  
I have a pdf file with 660 letter-size pages.I would
like to save toner in my printer byprinting 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 pdffile.thank
youCiro_______________________________________________ntg-context
mailing
listntg-context@ntg.nlhttp://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
theappropriate number
for page=...., also use \setuplayoutetc..)

Also look for  \setuparranging.

luigi


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imposition for a pdf file
  2005-03-16 12:48 imposition for a pdf file Ciro A. Soto
@ 2005-03-16 13:22 ` luigi.scarso
  2005-03-16 13:45   ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: luigi.scarso @ 2005-03-16 13:22 UTC (permalink / raw)


[-- Attachment #1: Type: text/html, Size: 2156 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imposition for a pdf file
  2005-03-16 13:22 ` luigi.scarso
@ 2005-03-16 13:45   ` Hans Hagen
  2005-03-17 10:44     ` luigi.scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2005-03-16 13:45 UTC (permalink / raw)


luigi.scarso wrote:
> Sorry ciro, but i like write tex code.
> 
>    1. save following code as test.tex

in page-imp are some additional inclusion macros -)

> \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]
> }

shorter

\centerline
   {\dostepwiserecurse{1}{11}{2}
      {\expanded{\externalfigure[test][page=\recurselevel]}}}

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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imposition for a pdf file
  2005-03-16 13:45   ` Hans Hagen
@ 2005-03-17 10:44     ` luigi.scarso
  2005-03-17 13:15       ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: luigi.scarso @ 2005-03-17 10:44 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: imposition for a pdf file
  2005-03-17 10:44     ` luigi.scarso
@ 2005-03-17 13:15       ` Hans Hagen
  2005-03-17 14:28         ` stickers luigi.scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2005-03-17 13:15 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: stickers
  2005-03-17 13:15       ` Hans Hagen
@ 2005-03-17 14:28         ` luigi.scarso
  0 siblings, 0 replies; 6+ messages in thread
From: luigi.scarso @ 2005-03-17 14:28 UTC (permalink / raw)


Hans Hagen wrote:

> luigi.scarso wrote:
>
>> I have a problem about stickers and imposition;
>
>
> there's a special x/y one for stickers


Ok, no code, only an example of the problem.

Let S a pdf  with 17 pages;
let S(0) the first page, and S(16) the last page.

Let T the "target pdf" with 8 box which each will cointain an S(j), j=0..16

I draw now  a simple schema for  an empty pages of T
T(.)
[] [] [] [] [] [] [] []        

After 'imposing' , T should be
T(0)
[S(0)] [S(3)] [S(6)] [S(9) ]  [S(12)] [S(15)] [] []

T(1)
[S(1)] [S(4)] [S(7)] [S(10)]  [S(13)] [S(16)] [] []

T(2)
[S(2)] [S(5)] [S(8)] [S(11)]  [S(14)] []      [] []


I call it 'make a pile' .
Now, once we have fixed the number of the box (8 in this examples), give S
we want to make T.

I'have some solutions that use perl/sort, but they are not nice.

> indeed, the more you tex, the more you find in it

yes, but every time i touch it i think "i'm not ready now, maybe 
tomorrow....".
Really.
(and i don' want touch Metafont)

luigi

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-03-17 14:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-16 12:48 imposition for a pdf file Ciro A. Soto
2005-03-16 13:22 ` luigi.scarso
2005-03-16 13:45   ` Hans Hagen
2005-03-17 10:44     ` luigi.scarso
2005-03-17 13:15       ` Hans Hagen
2005-03-17 14:28         ` stickers luigi.scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).