ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: print many cards (pages) on one A4 paper
Date: Sun, 31 Oct 2010 18:30:31 +0100	[thread overview]
Message-ID: <AANLkTimMK7KECQ=s+WQCfAYqt+kW8PK+bdTqJU7KohnT@mail.gmail.com> (raw)
In-Reply-To: <dif0q7-pj4.ln1@news.jonasstein.de>

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
___________________________________________________________________________________


  reply	other threads:[~2010-10-31 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-31 15:45 Jonas Stein
2010-10-31 17:30 ` Mojca Miklavec [this message]
2010-10-31 17:55 ` Wolfgang Schuster
2010-11-01  2:01   ` Jonas Stein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTimMK7KECQ=s+WQCfAYqt+kW8PK+bdTqJU7KohnT@mail.gmail.com' \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).