From: Hans Hagen <pragma@wxs.nl>
Subject: Re: XY arrangement
Date: Mon, 23 Feb 2004 02:12:20 +0100 [thread overview]
Message-ID: <6.0.1.1.2.20040223020936.01dfeec0@localhost> (raw)
In-Reply-To: <402A8222.3000205@boede.nl>
At 20:27 11/02/2004, you wrote:
>I setup the XY arrangement. The etiquettes look o.k. The problem is, that
>Context ignores the topspace and backspace as setup in \setuppaper.
ha, you looked into the source, well, see end of page-imp for a special
paper size XY where these are used.
% \setuppapersize [XY][A4]
% \setuppaper [topspace=5mm,backspace=5mm,dx=1mm,dy=1mm,nx=2,ny=6]
% \setuplayout [page] [topspace=5mm,backspace=5mm]
% \setuplayout [page]
% \setuplayout [location=middle]
% \setuparranging [XY]
% \showframe
%
% \starttext \dorecurse{30}{test \recurselevel \page} \stoptext
in your case: just don't set the width and height because they are
calculated automatically; f you want topskip etc i need to implement that
of course you can add the offsets to the layout:
% width=196mm,
]% height=267mm]
\setuplayout
[topspace=19mm,
backspace=11mm,
=== original code ====
>\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
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE/POD/CTS
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
prev parent reply other threads:[~2004-02-23 1:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-11 19:27 Willi Egger
2004-02-23 1:12 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6.0.1.1.2.20040223020936.01dfeec0@localhost \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).