ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jaroslav Hajtmar <hajtmar@gyza.cz>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Setuparranging[XY] and arrangement of labels
Date: Sun, 04 Jul 2010 05:17:44 +0200	[thread overview]
Message-ID: <4C2FFD58.90909@gyza.cz> (raw)

Hello all,

I have a reason to print labels to page in "vertical mode". This means, 
that labels are place to page underneath first and then abreast (ie top 
to bottom first and then subsequently left to rigth).

According to the example of the way they are now labels numbered :

1 2 3
4 5 6
7 8 9
10 11 12
13 14 15

but I want to be numbered:

1 6 11
2 7 12
3 8 13
4 9 14
5 10 15

Exist any simple way in \setuparranging [XY] mode (not in columns mode) 
for this?
If it will not somehow just does not matter. Otherwise I'll do sort of 
data that I print to the labels (but otherwise I find it quite helpful 
as I could keep my original gear mechanism).

Thanx Jaroslav

Here is my minimal example:


\newdimen\labelwidth\labelwidth=30mm
\newdimen\labelheight\labelheight=20mm
\newdimen\disthor\disthor=1mm
\newdimen\distvert\distvert=1mm
\newcount\counthor\counthor=5
\newcount\countvert\countvert=10

\definepapersize[label][width=\labelwidth,height=\labelheight]
\setuppapersize [label][A4]


\definemeasure[topspace] [\dimexpr(\printpaperheight-(\labelheight + 
\distvert)*\countvert+\distvert)/2\relax]
\definemeasure[backspace] [\dimexpr(\printpaperwidth-(\labelwidth + 
\disthor)*\counthor+\disthor)/2\relax]


\setuppaper     
[topspace=\measure{topspace},backspace=\measure{backspace},dx=\disthor,dy=\distvert,nx=\counthor,ny=\countvert]
\setuplayout    [page] 
[topspace=\measure{topspace},backspace=\measure{backspace}]
\setuplayout    [page]
\setuplayout    [location=middle]
\setuparranging [XY]

\showframe[edge]

\starttext
\dorecurse{50}{{\recurselevel\page}}
\stoptext

___________________________________________________________________________________
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-07-04  3:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-04  3:17 Jaroslav Hajtmar [this message]
2010-07-04  7:17 ` Wolfgang Schuster
2010-07-04  8:11   ` Jaroslav Hajtmar

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=4C2FFD58.90909@gyza.cz \
    --to=hajtmar@gyza.cz \
    --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).