From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25383 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: formula in itemlist Date: Thu, 19 Jan 2006 14:53:36 +0100 Message-ID: <43CF99E0.5070405@wxs.nl> References: <54874D49-B1A2-49BD-B57F-AF0DA80ED3CB@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137678878 30423 80.91.229.2 (19 Jan 2006 13:54:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 13:54:38 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 19 14:54:35 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EzaES-0002zY-MT for gctc-ntg-context-518@m.gmane.org; Thu, 19 Jan 2006 14:53:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D963127BA; Thu, 19 Jan 2006 14:53:44 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32483-08-10; Thu, 19 Jan 2006 14:53:40 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0DEA127DA; Thu, 19 Jan 2006 14:53:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 39733127DA for ; Thu, 19 Jan 2006 14:53:39 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32483-08-9 for ; Thu, 19 Jan 2006 14:53:38 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 28FBA127BA for ; Thu, 19 Jan 2006 14:53:37 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 1541 for ; Thu, 19 Jan 2006 09:04:51 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <54874D49-B1A2-49BD-B57F-AF0DA80ED3CB@science.uva.nl> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25383 Archived-At: 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 -----------------------------------------------------------------