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

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sun Oct 31 18:30:31 CET 2010


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


More information about the ntg-context mailing list