On 2/12/2025 1:18 PM, chindea.dan...@gmail.com wrote:
Hello, I need your help.
I just upgraded context.
The chapter def below used to produce perfect centered number, image and
chapter text.
Now the image is slightly moved to the right (a divider 42mm wide by 2.5mm
height).
What can i do? Please help. Thank you for your great great amazin job with
context.
\startsetups [chapter:before]
\doifoddpageelse
{}{\noheaderandfooterlines}
\stopsetups
\define[2]\mychapter
{\noindentation\strut\framed[frame=off,width=\textwidth,align=middle,location=top,frameoffset=0pt]
{\noindentation\startalignment[middle]\tfd{\color[lightgrey]{#1}}\\\dontleavehmode\externalfigure[divider.pdf][width=42mm]\\\tfb{#2}\stopalignment}
}
%----------chapter
\setuphead[chapter]
[%
command=\mychapter,
style=\tfb,
align={middle,nothyphenated},
before={%
\setups[chapter:before]
\blank[\measure{beforeheightbig},force]
},
after={\blank[3*big]\doif{\getvariable{book}{letrine}}{true}{\placeinitial}}%
]
___________________________________________________________________________________
in grph-inc.mkxl add % in line 583 etc:
\clf_figurereset
\foundexternalfigure
{\externalfigureparameter\c!defaultwidth}%
{\externalfigureparameter\c!defaultheight}%
\relax
and remake the format file
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
___________________________________________________________________________________