[NTG-context] print many cards (pages) on one A4 paper

2010-10-31 Thread Jonas Stein
Hi,

i want to print many (lets say 2 x 4) file cards on one DIN A4 paper.
I played around with the BusinessCard[1] example. Thats close to
what i need, but all cards are cloned there. 

How can i gain the same with 2x4 or 2x5 different cards on one side?

(Sorry for the stupid question its my first context document)
Kind regards,

-- 
Jonas Stein n...@jonasstein.de

___
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] print many cards (pages) on one A4 paper

2010-10-31 Thread Mojca Miklavec
On Sun, Oct 31, 2010 at 16:45, Jonas Stein wrote:
 Hi,

 i want to print many (lets say 2 x 4) file cards on one DIN A4 paper.
 I played around with the BusinessCard[1] example. Thats close to
 what i need, but all cards are cloned there.

 How can i gain the same with 2x4 or 2x5 different cards on one side?

Here is one option from one of my recent documents ...

Document A (badges.tex) creates badges:

\definepapersize
[badge]
[width=8.5cm,height=5cm]
\setuppapersize
[badge][badge]
\setuplayout
[backspace=1cm,width=middle,topspace=1cm,height=middle,
 header=0pt,headerdistance=0pt,footer=0pt,footerdistance=0pt]
\setuppagenumbering
[location=]

And then document B puts them together into table:

\setuppapersize
[A4,landscape][A4,landscape]
\setuplayout

[backspace=2cm,width=25.5cm,topspace=2cm,header=0pt,headerdistance=0pt,height=20cm]
\setuppagenumbering
[location=]

\def\b#1{\bTD\externalfigure[badges.pdf][page=#1]\eTD}
\starttext
\setupTABLE[strut=no,offset=0pt,split=yes]
\setupTABLE[c][each][width=8.5cm,height=5cm]
\bTABLE
\bTR\b{1}\b{2}\b{3}\eTR
\bTR\b{4}\b{5}\b{6}\eTR
\bTR\b{7}\b{8}\b{9}\eTR
% to get multiple badges of the same kind
\bTR\b{62}\b{62}\b{62}\eTR
\eTABLE
\stoptext

But of course you may just as well do both steps at the same time.

Mojca
___
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] print many cards (pages) on one A4 paper

2010-10-31 Thread Wolfgang Schuster

Am 31.10.2010 um 16:45 schrieb Jonas Stein:

 Hi,
 
 i want to print many (lets say 2 x 4) file cards on one DIN A4 paper.
 I played around with the BusinessCard[1] example. Thats close to
 what i need, but all cards are cloned there. 
 
 How can i gain the same with 2x4 or 2x5 different cards on one side?



\setuppapersize [XY][A4]
\setuppaper [topspace=5mm,backspace=5mm,dx=1mm,dy=1mm,nx=2,ny=6]
\setuplayout[page] [topspace=5mm,backspace=5mm]
\setuplayout[page]
\setuplayout[location=middle]
\setuparranging [XY]
\showframe

\starttext \dorecurse{30}{test \recurselevel \page} \stoptext

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
___


Re: [NTG-context] print many cards (pages) on one A4 paper

2010-10-31 Thread Jonas Stein

 \setuppapersize [XY][A4]
 \setuppaper [topspace=5mm,backspace=5mm,dx=1mm,dy=1mm,nx=2,ny=6]
 \setuplayout[page] [topspace=5mm,backspace=5mm]
 \setuplayout[page]
 \setuplayout[location=middle]
 \setuparranging [XY]
 \showframe

 \starttext \dorecurse{30}{test \recurselevel \page} \stoptext


Thanks a lot that worked fine!
The dorecurse loop was impressive too.

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

Should i copy it to examples where i found the BusinessCards?

-- 
Jonas Stein n...@jonasstein.de

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