* Centering labels on A4 page
@ 2010-07-02 10:56 Jaroslav Hajtmar
2010-07-02 10:59 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Jaroslav Hajtmar @ 2010-07-02 10:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Centering labels on A4 page
2010-07-02 10:56 Centering labels on A4 page Jaroslav Hajtmar
@ 2010-07-02 10:59 ` Wolfgang Schuster
2010-07-02 11:07 ` Jaroslav Hajtmar
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2010-07-02 10:59 UTC (permalink / raw)
To: hajtmar, mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Centering labels on A4 page
2010-07-02 10:59 ` Wolfgang Schuster
@ 2010-07-02 11:07 ` Jaroslav Hajtmar
2010-07-02 11:28 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Jaroslav Hajtmar @ 2010-07-02 11:07 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
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
>
>
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Centering labels on A4 page
2010-07-02 11:07 ` Jaroslav Hajtmar
@ 2010-07-02 11:28 ` Wolfgang Schuster
2010-07-02 11:38 ` Jaroslav Hajtmar
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2010-07-02 11:28 UTC (permalink / raw)
To: hajtmar, mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Centering labels on A4 page
2010-07-02 11:28 ` Wolfgang Schuster
@ 2010-07-02 11:38 ` Jaroslav Hajtmar
0 siblings, 0 replies; 5+ messages in thread
From: Jaroslav Hajtmar @ 2010-07-02 11:38 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2010-07-02 11:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-02 10:56 Centering labels on A4 page Jaroslav Hajtmar
2010-07-02 10:59 ` Wolfgang Schuster
2010-07-02 11:07 ` Jaroslav Hajtmar
2010-07-02 11:28 ` Wolfgang Schuster
2010-07-02 11:38 ` 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).