Problem with Named setuplayout

Dear list, There seems to be a problem with setuplayout[name][ .. = ..]. I got this problem when I updated to the newest version. MWE: \setuplayout[examFirstPage][ topspace=7mm, top=5mm, header=10pt, headerdistance=2pt, height=280mm, width=160mm, margin=20mm, footerdistance=0pt, footer=0pt, ] \definemakeup[examFirstPage][ pagestate=start, footerstate=start, top=, ] \starttext Hello \stoptext When I remove "[examFirstPage]', it works fine. Has a change been introduced about how to use it this way? Yours sincerely, Jethro

Following up with the error message that shows up in the console:
<token>
...nly supported when location=middle}\layoutcropoffset \zeropoint
\layouttrimoffset \zeropoint \layoutbleedoffset \zeropoint \layoutartoffset
\zeropoint \fi \else \layoutcropoffset {\layoutparameter \c!cropoffset
}\layouttrimoffset {
\layoutparame ...
<macro> \setuplayout
...\saved_setup_currentlayout \currentlayout \let \previouslayout
\currentlayout \cdef \currentlayout {#1}\layoutsetupmode
\doingrootsetupnamed \mult_interfaces_get_parameters {\??layout
\currentlayout :}[#2]\expand \everysetuplayout
\ifx \current ...
Dear list,
There seems to be a problem with setuplayout[name][ .. = ..].
I got this problem when I updated to the newest version.
MWE: \setuplayout[examFirstPage][ topspace=7mm, top=5mm, header=10pt, headerdistance=2pt, height=280mm, width=160mm, margin=20mm, footerdistance=0pt, footer=0pt, ]
\definemakeup[examFirstPage][ pagestate=start, footerstate=start, top=, ]
\starttext
Hello
\stoptext
When I remove "[examFirstPage]', it works fine.
Has a change been introduced about how to use it this way?
Yours sincerely, Jethro

Am 24.03.2025 um 05:30 schrieb Jethro Djan:
Dear list,
There seems to be a problem with setuplayout[name][ .. = ..].
I got this problem when I updated to the newest version.
MWE: \setuplayout[examFirstPage][ topspace=7mm, top=5mm, header=10pt, headerdistance=2pt, height=280mm, width=160mm, margin=20mm, footerdistance=0pt, footer=0pt, ]
\definemakeup[examFirstPage][ pagestate=start, footerstate=start, top=, ]
\starttext
Hello
\stoptext
When I remove "[examFirstPage]', it works fine.
Has a change been introduced about how to use it this way?
To fix the problem you have to options: 1. Change \setuplayout to \definelayout (or add an additional \definelayout[examFirstPage] before \setuplayout). 2. Move \definemakeup before \setuplayout (because it does \definelayout[examFirstPage] by itself). The error appars because it doesn't know how to resolve missing values (e.g. leftmargin) for the page layout. Wolfgang

Solution works. As usual, thanks Wolfgang
On 25 Mar 2025, at 04:30, Wolfgang Schuster
wrote: Am 24.03.2025 um 05:30 schrieb Jethro Djan:
Dear list, There seems to be a problem with setuplayout[name][ .. = ..]. I got this problem when I updated to the newest version. MWE: \setuplayout[examFirstPage][ topspace=7mm, top=5mm, header=10pt, headerdistance=2pt, height=280mm, width=160mm, margin=20mm, footerdistance=0pt, footer=0pt, ] \definemakeup[examFirstPage][ pagestate=start, footerstate=start, top=, ] \starttext Hello \stoptext When I remove "[examFirstPage]', it works fine. Has a change been introduced about how to use it this way?
To fix the problem you have to options:
1. Change \setuplayout to \definelayout (or add an additional \definelayout[examFirstPage] before \setuplayout).
2. Move \definemakeup before \setuplayout (because it does \definelayout[examFirstPage] by itself).
The error appars because it doesn't know how to resolve missing values (e.g. leftmargin) for the page layout.
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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 ___________________________________________________________________________________
participants (3)
-
Jethro Djan
-
jethro Reuel
-
Wolfgang Schuster