ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setuparranging[XY] and arrangement of labels
@ 2010-07-04  3:17 Jaroslav Hajtmar
  2010-07-04  7:17 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Hajtmar @ 2010-07-04  3:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Setuparranging[XY] and arrangement of labels
  2010-07-04  3:17 Setuparranging[XY] and arrangement of labels Jaroslav Hajtmar
@ 2010-07-04  7:17 ` Wolfgang Schuster
  2010-07-04  8:11   ` Jaroslav Hajtmar
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2010-07-04  7:17 UTC (permalink / raw)
  To: hajtmar, mailing list for ConTeXt users

Am 04.07.10 05:17, schrieb Jaroslav Hajtmar:
> 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).

This isn't possible with the XY arrangement but when you use two documents,
one with the labels and another one where you arrange them.


Document 1:

\definepapersize[label][width=30mm,height=20mm]
\setuppapersize [label][label]

\starttext
...
\stoptext


Document 2:

\definemeasure[topspace] [\dimexpr(210mm-31mm*5)/2\relax]
\definemeasure[backspace][\dimexpr(297mm-20mm*10)/2\relax]

\setuplayout[page][topspace=\measure{topspace},backspace=\measure{backspace}] 

\setuplayout[page]
\starttext
\combinepages[Document 1][nx=5,ny=10,distance=1mm,alternative=vertical]
\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] 3+ messages in thread

* Re: Setuparranging[XY] and arrangement of labels
  2010-07-04  7:17 ` Wolfgang Schuster
@ 2010-07-04  8:11   ` Jaroslav Hajtmar
  0 siblings, 0 replies; 3+ messages in thread
From: Jaroslav Hajtmar @ 2010-07-04  8:11 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

Thanx Wolfgang for your advice, it is very interesting for me, and even 
though I do not use it now, I'm sure I will someday come in handy..

Jaroslav




Dne 4.7.2010 9:17, Wolfgang Schuster napsal(a):
> Am 04.07.10 05:17, schrieb Jaroslav Hajtmar:
>> 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).
>
> This isn't possible with the XY arrangement but when you use two 
> documents,
> one with the labels and another one where you arrange them.
>
>
> Document 1:
>
> \definepapersize[label][width=30mm,height=20mm]
> \setuppapersize [label][label]
>
> \starttext
> ...
> \stoptext
>
>
> Document 2:
>
> \definemeasure[topspace] [\dimexpr(210mm-31mm*5)/2\relax]
> \definemeasure[backspace][\dimexpr(297mm-20mm*10)/2\relax]
>
> \setuplayout[page][topspace=\measure{topspace},backspace=\measure{backspace}] 
>
> \setuplayout[page]
> \starttext
> \combinepages[Document 1][nx=5,ny=10,distance=1mm,alternative=vertical]
> \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] 3+ messages in thread

end of thread, other threads:[~2010-07-04  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-04  3:17 Setuparranging[XY] and arrangement of labels Jaroslav Hajtmar
2010-07-04  7:17 ` Wolfgang Schuster
2010-07-04  8:11   ` Jaroslav Hajtmar

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