Hi folks,

once again I have a problem - I'm sure it's not one for you experts!
I've set up a diary that basically looks like this:

\mainlanguage[de]

\definebodyfontenvironment[12pt][interlinespace=15pt]
\setuppagenumbering[location={footer,middle}, alternative=onesided]


\setuplayout[
    lines=44,
    grid=yes,
]

\showgrid

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

\starttext

\DDate{20250101}
\samplefile{knuth}

\DDate{20250102}
\samplefile{knuth}

\DDate{20250103}
\samplefile{knuth}

...

\stoptext


But if the DDate line is moved to the bottom of the page, it is not moved to the next page above the text like a heading. The date line should therefore function like a heading.
If I move it via

\subject{\DDate{20250101}}

the font size is of course no longer correct and I have blank lines underneath.
Please help me with this.

Greetings
Thomas

Attachment: _Example_.pdf
Description: Adobe PDF document

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to