externalimage alignment inside frame changed from previous context version

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}}% ]

On 2/12/2025 1:18 PM, chindea.daniel@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 -----------------------------------------------------------------

Hello, Hans, I deeply appreciate your help. Thank you and have a smiling day (as you made mine). Daniel

If of any use to you, the font size from the tex I've posted isn't taken into account anymore (i.e. chapters are tf size). When using the same tex on https://context-on-web.eu it renders properly. Is it any way to roll back the context install until all quirks are sorted out? Thank you, Daniel

On 2/12/2025 3:34 PM, chindea.daniel@gmail.com wrote:
If of any use to you, the font size from the tex I've posted isn't taken into account anymore (i.e. chapters are tf size). When using the same tex on https://context-on-web.eu it renders properly. Is it any way to roll back the context install until all quirks are sorted out?
You can try to run with --nocompactfonts but one can wonder if your font definition is ok .. no mwe ... 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 -----------------------------------------------------------------

Thank you, it works now (and it worked before also, until today's update). All my best, Daniel

On 2/12/2025 4:12 PM, chindea.daniel@gmail.com wrote:
Thank you, it works now (and it worked before also, until today's update).
All my best,
that still doesn't tell what didn't work now ... compact mode is and will stay default, so ... 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 -----------------------------------------------------------------

The font used is Latin. No problems whatsoever before today's update (which I did without thinking of consequences). In the log there was no discernable useful information (at least for me). If you think it is useful, I can provide the log. Daniel

On 2/12/2025 4:27 PM, chindea.daniel@gmail.com wrote:
The font used is Latin. No problems whatsoever before today's update (which I did without thinking of consequences). In the log there was no discernable useful information (at least for me). If you think it is useful, I can provide the log.
we need just the smallest example you can make that shows the issue 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 -----------------------------------------------------------------

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 Thank you, Daniel

On 2/13/2025 8:45 AM, chindea.daniel@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 -----------------------------------------------------------------
participants (2)
-
chindea.daniel@gmail.com
-
Hans Hagen