Am 13.02.25 um 16:35 schrieb Wolfgang Schuster:
\setuppagenumbering[location={footer,middle}, alternative=onesided]
onesided isn't a valid keyword for the alternative key, only
singlesided and doublesided can be used.
Okay! It seems better. I never got an error message.
\startluacode
function userdata.Ddate(str)
local year = string.sub(str,1,4)
local month = string.sub(str,5,6)
local day = string.sub(str,7,8)
context.date({d=day,m=month,y=year},{"weekday,{, },day, {.
},month,space,year"})
end
\stopluacode
\def\DDate#1{\blank\noindentation{\bf\ss\ctxlua{userdata.Ddate("#1")}}\\
}
You can use \testpage to force a page break when not enough space is
available for the following content.
\starttexdefinition protected DDate #1
\blank
\testpage[3]
\noindentation\style[sansbold]{\ctxlua{userdata.Ddate("#1")}}
\par
\stoptexdefinition
Okaay!
Thank you Wolfgang!
Greetings Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________