Am 18.09.2026 um 14:05 schrieb Henning Hraban Ramm:
Hi,
since I finally got the context group journals, I wanted to ship them, but the address label layout fails:
The settings of \setuppaper are ignored. What’s wrong?

You need \setuplayout[location=middle] to use topspace and backspace for the paper layout wioth the XY scheme, in addition you have to change dx=0mm to dx=1sp (or just some small value) because 0pt acts as a flag to spread the pages.

%%%% begin example
\definepapersize
  [AddressLabel]
  [height=42.3mm,
   width=97mm]

\setuppapersize
  [AddressLabel]
  [A4,portrait]

\setuppaper
  [topspace=20mm,
   backspace=8mm,
   dx=1sp,
   dy=1sp,
   nx=2,
   ny=6]

\setuplayout
  [topspace=5mm,
   backspace=5mm,
   header=0mm,
   footer=0mm,
   location=middle]

\setuparranging
  [XY]

\showframe

\starttext
\dorecurse{12}
  {Label \recurselevel
   \page}
\stoptext
%%%% end example

An alternative solution is to set the page margins to 0pt and use a fullpage frame for each label.

%%%% begin example
\definepapersize
  [AddressLabel]
  [height=42.3mm,
   width=97mm]

\setuppapersize
  [AddressLabel]
  [A4,portrait]

\setuppaper
  [topspace=20mm,
   backspace=8mm,
   dx=1sp,
   dy=1sp,
   nx=2,
   ny=6]

\setuplayout
  [page]

\setuplayout
  [location=middle]

\setuparranging
  [XY]

\showframe

\defineframed
  [AddressLabel]
  [frame=off,
   width=1pw,
   height=1ph,
   offset=5mm,
   align=normal]

\starttext
\dorecurse{12}
  {\startframed[AddressLabel]
   Label \recurselevel
   \stopframed}
\stoptext
%%%% end example

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to