ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XY arrangement
@ 2004-02-11 19:27 Willi Egger
  2004-02-23  1:12 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Willi Egger @ 2004-02-11 19:27 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

Hi Hans,

I should print on a sheet of etiquettes made by Avery. The topspace as 
the bottomspace is 15 mm the left and right non printable area is 7 mm.
On the rest of the printing area there are 21 etiquettes with a 
horizontal distance of 3mm. There is no vertical gap in the columns of 
etiquettes.

I setup the XY arrangement. The etiquettes look o.k. The problem is, 
that Context ignores the topspace and backspace as setup in \setuppaper.

For your reference I add a minimal example.

Could you please have a look why the mentioned parameters are ignored?

Thanks, kind regards
Willi


[-- Attachment #2: productlabel.tex --]
[-- Type: text/plain, Size: 1116 bytes --]

\setupoutput[pdftex]

\usetypescript[modern][texnansi]
\setupbodyfont[modern,ss,10pt]

\setupcolors[state=start]

%Avery etiket 38.1 x 63.5 mm topspace 15 mm,
% bottomspace = 15 mm, margin 7 mm both sides,
% 21 etikettes per sheet

\definepapersize[Etiket][height=38.1mm,width=63.5mm]
\setuppapersize [Etiket][A4,portrait]
\setuppaper
    [topspace=15mm,
    backspace=7mm,
% 	cutspace=7mm,
    dx=3mm,
    dy=0mm,
    nx=3,
    ny=7,
    margin=7mm,
    width=196mm,
    height=267mm]
\setuplayout
    [topspace=4mm,
    backspace=4mm,
    margin=0mm,
    width=55.5mm,
    height=30mm,
    header=0mm,
    footer=0mm]
\setuparranging[XY]
\definelayer[Etiket][width=\textwidth, height=\textheight]
\setupframedtexts[frame=off,width=\textwidth,align=middle]

\startbuffer[Logoinhalt]
	Place of logo
\stopbuffer

\showframe

\starttext
\dorecurse{21}{%
    \setlayer
       [Etiket]
       [preset=righttop,location={left,bottom}]
       {\bfb Productname}
	\setlayer
      [Etiket]
      [preset=leftbottom,location={right,top}]
      {\switchtobodyfont[7pt]\getbuffer[Logoinhalt]}
    \placelayer[Etiket]}
\stoptext

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

end of thread, other threads:[~2004-02-23  1:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-11 19:27 XY arrangement Willi Egger
2004-02-23  1:12 ` Hans Hagen

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