Centering labels on A4 page
![](https://secure.gravatar.com/avatar/af13db75aa1c24fee635c74fecf93090.jpg?s=120&d=mm&r=g)
H..All..o... I am trying centering (horizontaly and verticaly too) labels on the A4 paper, but without success. Is there any possibility make it? Here is example code (see [NTG-context] XY arranging ignores dx/dy Angus Lees): \definepapersize[label][width=30mm,height=20mm] \setuppapersize[label][A4] \setuppaper[dx=1mm,dy=1mm,nx=5,ny=10] \setuparranging[XY] \showframe[edge] \starttext \dorecurse{50}{\page} \stoptext Labels are placed on left and top. I want to placed it to vertical and horizontal center (I want print doublesided cards) It certainly will be some pablum isnt it? :-) Thanx Jaroslav
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 02.07.10 12:56, schrieb Jaroslav Hajtmar:
H..All..o...
I am trying centering (horizontaly and verticaly too) labels on the A4 paper, but without success. Is there any possibility make it? Here is example code (see [NTG-context] XY arranging ignores dx/dy Angus Lees):
\definepapersize[label][width=30mm,height=20mm] \setuppapersize[label][A4] \setuppaper[dx=1mm,dy=1mm,nx=5,ny=10]
\setuplayout[location=middle]
\setuparranging[XY] \showframe[edge] \starttext \dorecurse{50}{\page} \stoptext
Labels are placed on left and top. I want to placed it to vertical and horizontal center (I want print doublesided cards) It certainly will be some pablum isnt it? :-)
Wolfgang
![](https://secure.gravatar.com/avatar/af13db75aa1c24fee635c74fecf93090.jpg?s=120&d=mm&r=g)
Thanx Wolfgang, This option I tried first, this is without effect. Is there problem with \setuparranging ??? Jaroslav Dne 2.7.2010 12:59, Wolfgang Schuster napsal(a):
Am 02.07.10 12:56, schrieb Jaroslav Hajtmar:
H..All..o...
I am trying centering (horizontaly and verticaly too) labels on the A4 paper, but without success. Is there any possibility make it? Here is example code (see [NTG-context] XY arranging ignores dx/dy Angus Lees):
\definepapersize[label][width=30mm,height=20mm] \setuppapersize[label][A4] \setuppaper[dx=1mm,dy=1mm,nx=5,ny=10]
\setuplayout[location=middle]
\setuparranging[XY] \showframe[edge] \starttext \dorecurse{50}{\page} \stoptext
Labels are placed on left and top. I want to placed it to vertical and horizontal center (I want print doublesided cards) It certainly will be some pablum isnt it? :-)
Wolfgang
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 02.07.10 13:07, schrieb Jaroslav Hajtmar:
Thanx Wolfgang, This option I tried first, this is without effect. Is there problem with \setuparranging ???
You have to set backspace and topspace values for the layout. \definepapersize[label][width=30mm,height=20mm] \setuppapersize [label][A4] \definemeasure[topspace] [\dimexpr(297mm-21mm*10+1mm)/2\relax] \definemeasure[backspace][\dimexpr(210mm-31mm*5+1mm)/2\relax ] \setuppaper [topspace=\measure{topspace},backspace=\measure{backspace},dx=1mm,dy=1mm,nx=5,ny=10] \setuplayout [page] [topspace=\measure{topspace},backspace=\measure{backspace}] \setuplayout [page] \setuplayout [location=middle] \setuparranging [XY] \showframe[edge] \starttext \dorecurse{50}{\page[empty]} \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/af13db75aa1c24fee635c74fecf93090.jpg?s=120&d=mm&r=g)
GREAT!!!... It is OK now... I thought it would be much easier :-) Your example is for me very very instructive... thanx for it.. Thanx... Jaroslav Dne 2.7.2010 13:28, Wolfgang Schuster napsal(a):
\definepapersize[label][width=30mm,height=20mm] \setuppapersize [label][A4]
\definemeasure[topspace] [\dimexpr(297mm-21mm*10+1mm)/2\relax] \definemeasure[backspace][\dimexpr(210mm-31mm*5+1mm)/2\relax ]
\setuppaper [topspace=\measure{topspace},backspace=\measure{backspace},dx=1mm,dy=1mm,nx=5,ny=10]
\setuplayout [page] [topspace=\measure{topspace},backspace=\measure{backspace}] \setuplayout [page] \setuplayout [location=middle] \setuparranging [XY]
\showframe[edge]
\starttext \dorecurse{50}{\page[empty]} \stoptext
participants (2)
-
Jaroslav Hajtmar
-
Wolfgang Schuster