ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Tesselating the sheet with a image
Date: Wed, 22 May 2013 22:15:49 +0200	[thread overview]
Message-ID: <1ABC38F8-F1BA-4E8C-8260-59A7C6601683@gmail.com> (raw)
In-Reply-To: <519B0850.6050703@mmnetz.de>


Am 21.05.2013 um 07:38 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:

> Hi there,
> 
> for a card game I have this macro:
> 
> \defineoverlay[eslami][{\externalfigure[somepicture.pdf]}]
> \def\esl[#1][#2][#3]{%
> \startframed[frame=on,width=4.75cm,offset=overlay,align=middle,background=eslami]%
>  \offinterlineskip
>  \framed[width=4.75cm,frame=off,height=2cm]{\blank[-3mm]#1}\\
>  \framed[width=4.75cm,frame=off,height=3cm]{#2}\\
>  \framed[width=4.75cm,frame=off,height=2.4cm]{#3}
> \stopframed}
> \starttext
> \esl[blub][blub][blub]
> \stoptext
> 
> which produces cards with some text (see attachment).
> Now, I only want to write in the editor the commands
> 
> \esl[blub1][blub1][blub1]
> \esl[blub2][blub2[blub2]
> \esl[blub3][blub3][blub3]
> etc.
> 
> and these images / overlays should be placed automatically vertically and horizontically over the sheets, like a tesselation (and after that they will be printed and cutted).
> The order of setting the cards is not important. If one page is full, then they should be placed automatically on the next page - but perfectly the same way, on the same locations, like on all other pages. That is important for cutting, each card should have two sides, so they have to match in location.
> 
> Is there a way to do this?

You can let each card produce a single page (select a small aper size, e.g. A7) and use the imposition mechanism
to print many cards on paper. I wrote a while ago a imposition shame for flashcards which can be used for this.

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
___________________________________________________________________________________


  reply	other threads:[~2013-05-22 20:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  5:38 "H. Özoguz"
2013-05-22 20:15 ` Wolfgang Schuster [this message]
2013-05-22  6:03 "H. Özoguz"
2013-05-22  6:36 ` luigi scarso

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=1ABC38F8-F1BA-4E8C-8260-59A7C6601683@gmail.com \
    --to=schuster.wolfgang@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).