Centering labels on A4 page
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
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
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
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
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