Don't use these \\ shortcuts ... just \par will do.

Okay!


Anyway, yopu can try this:

\def\DDate#1%
  {\blank
  \noindentation{\bf\ss\ctxlua{userdata.Ddate("#1")}}
  \blank[samepage]}

That works!

Thank you Hans!

Greetings
Thomas


Am 13.02.25 um 13:10 schrieb Hans Hagen via ntg-context:
On 2/13/2025 10:58 AM, Thomas Meyer wrote:

\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")}}\\ }

Don't use these \\ shortcuts ... just \par will do. Anyway, yopu can try this:

\def\DDate#1%
  {\blank
  \noindentation{\bf\ss\ctxlua{userdata.Ddate("#1")}}
  \blank[samepage]}

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________