Hans van der Meer wrote:
I want to place a math formula in the item of an itemlist, but I keep getting overfull hboxes. A minimal example follows:
\starttext \startitemize \item dit is een \item dit is een formule \placeformula[-] \startformula n= 0 % this is line 7 \stopformula \stopitemize \stoptext
in the log it says:
Overfull \hbox (17.62474pt too wide) in paragraph at lines 7--7 [][]
\hbox(10.41603+4.05064)x0.0 .\glue(\leftskip) 17.62474 .\hbox(0.0+0.0)x0.0 .\hbox(10.41603+4.05064)x0.0 ..\rule(10.41603+4.05064)x0.0 ..\glue 0.0 plus 1.0fil minus 1.0fil .\penalty 10000 .\glue(\parfillskip) 0.0 plus 1.0fil .etc.
Removing the "\placeformula" makes no difference.
Although a fallback to $$ n = 0 $$ makes the overfull hbox go away, it does not seem the "ConTeXt" way of doing. Is this something in formula about not changing a hbox-width inside the itemize?
not so much tested: \def\setdisplaydimensions {\displayindent\leftdisplayskip \advance\displayindent\leftdisplaymargin \displaywidth\hsize \ifdim\hangindent>\zeropoint \advance\displayindent\hangindent \else \advance\displaywidth\hangindent \fi \advance\displaywidth-\displayindent \advance\displaywidth-\rightdisplayskip \advance\displaywidth-\rightdisplaymargin \hsize\displaywidth} i'll also add an option to center at the page level and not locally Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------