ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* print many cards (pages) on one A4 paper
@ 2010-10-31 15:45 Jonas Stein
  2010-10-31 17:30 ` Mojca Miklavec
  2010-10-31 17:55 ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Jonas Stein @ 2010-10-31 15:45 UTC (permalink / raw)
  To: ntg-context

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 <news@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
___________________________________________________________________________________


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

* Re: print many cards (pages) on one A4 paper
  2010-10-31 15:45 print many cards (pages) on one A4 paper Jonas Stein
@ 2010-10-31 17:30 ` Mojca Miklavec
  2010-10-31 17:55 ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Mojca Miklavec @ 2010-10-31 17:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: print many cards (pages) on one A4 paper
  2010-10-31 15:45 print many cards (pages) on one A4 paper Jonas Stein
  2010-10-31 17:30 ` Mojca Miklavec
@ 2010-10-31 17:55 ` Wolfgang Schuster
  2010-11-01  2:01   ` Jonas Stein
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2010-10-31 17:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: print many cards (pages) on one A4 paper
  2010-10-31 17:55 ` Wolfgang Schuster
@ 2010-11-01  2:01   ` Jonas Stein
  0 siblings, 0 replies; 4+ messages in thread
From: Jonas Stein @ 2010-11-01  2:01 UTC (permalink / raw)
  To: ntg-context


> \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 <news@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
___________________________________________________________________________________


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

end of thread, other threads:[~2010-11-01  2:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-31 15:45 print many cards (pages) on one A4 paper Jonas Stein
2010-10-31 17:30 ` Mojca Miklavec
2010-10-31 17:55 ` Wolfgang Schuster
2010-11-01  2:01   ` Jonas Stein

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