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