On 2/13/2025 8:45 AM, chindea.dan...@gmail.com wrote:
Hello, again,
Sorry for not being able to respond so quickly, household duties....
Here is a code that behaved unexpectedly in my view, but as I narrowed it to be
useful here, I think I identified the wrong assumption that triggers the
behavior i have seen.
I was using both deepnumbercommand and deeptextcommand along with command.
If i move the \switchtobodyfont into mychapter definition and erase the
\deep...command, all is working well.
What do you think?
\setuppapersize[A4][A4]
\define[2]\mychapter
{\framed[frame=off,width=local,align=middle,location=top,frameoffset=0pt]%
{\startalignment[middle]\tfd{{#1}}\\\tfb{#2}\stopalignment}
}
\setuphead[chapter]
[%
deepnumbercommand={\switchtobodyfont[modern]},
deeptextcommand={\switchtobodyfont[modern]},
command=\mychapter,
header=high,
align={middle,nothyphenated,verytolerant},
]
\starttext
\chapter{The Village of Ink}
\stoptext
The deep commands are for special purposes and work on an argument, just do
style=\switchtobodyfont[modern],
which also gets the spacing right (numberstyle and textstyle kick in later).
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
___________________________________________________________________________________