ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: formula in itemlist
Date: Thu, 19 Jan 2006 14:53:36 +0100	[thread overview]
Message-ID: <43CF99E0.5070405@wxs.nl> (raw)
In-Reply-To: <54874D49-B1A2-49BD-B57F-AF0DA80ED3CB@science.uva.nl>

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
-----------------------------------------------------------------

  reply	other threads:[~2006-01-19 13:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19 10:52 Hans van der Meer
2006-01-19 13:53 ` Hans Hagen [this message]
2006-01-25  8:16   ` Nikolai Weibull
2006-01-25  8:38     ` Taco Hoekwater
2006-01-25 13:34       ` Nikolai Weibull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43CF99E0.5070405@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).