ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \abovedisplayskip and \belowdisplayskip
Date: Thu, 6 Sep 2012 23:13:35 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.02.1209062308280.26953@nqv-guvaxcnq> (raw)
In-Reply-To: <CAFP+xFKxib26oZcSkbZAi2Wn6kwEfs1gd6yS8i2rwX6uNcjUzw@mail.gmail.com>

On Thu, 6 Sep 2012, Troy Henderson wrote:

> It is my understanding that \abovedisplayskip and \belowdisplayskip should
> adjust how much (rubber) spacing that is allowed between display math
> formulas.  I have attached a ConTeXt file (bug.tex) that seems to indicate
> that setting these skips does not affect this (rubber) spacing.  I have
> also translated this ConTeXt file line-by-line to a LaTeX file (bug.ltx)
> and attached it.
>
> Both files produce a PDF (using `context bug.tex` and `pdflatex bug.ltx`)
> in which the spacing between the formula changes from page 1 to page 2
> simply by adding the final formula.  However, by changing \adjustdisplay{0}
> to \adjustdisplay{1}, the LaTeX file produces a 3 page document where the
> spacing between formula does not change (as expected) on the first two
> pages and thus requires a third page to typeset the final formula.
> However, making this same adjustment in the ConTeXt file does not seem to
> affect the output.
>
> I would appreciate any thoughts as to why this is happening, and I would
> equally appreciate a solution to keeping the spacing the same in the
> ConTeXt file and thus bumping that last formula to a third page.

ConTeXt uses spacebefore and spaceafter keys to adjust the spacing around 
formulas. The values of these keys are fed to `\blank[...]` so they can be 
any value that `\blank[...]` accepts (none, small, medium, big, etc., or a 
valid TeX dimen)

So, you should use something like

\setupformulas[spacebefore=..., spaceafter=...]

or if you only want to change the space around specific formulas

\defineformula[big][spacebefore=big,spaceafter=big]

and then use

\startbigformula ... \stopbigformula.

Aditya

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2012-09-07  3:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07  2:54 Troy Henderson
2012-09-07  3:13 ` Aditya Mahajan [this message]
2012-09-07  4:17   ` Troy Henderson

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=alpine.DEB.2.02.1209062308280.26953@nqv-guvaxcnq \
    --to=adityam@umich.edu \
    --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).