ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: eqnalign
Date: Mon, 2 Oct 2006 05:59:13 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0610020547550.2620@nqvgln> (raw)
In-Reply-To: <87u02u4wnn.fsf@oumu.localdomain>

On Tue, 26 Sep 2006, Adam Duck wrote:

> Hello list,
>
> Is it possible to break eqalign across pages?  If not, is there any
> other possibility to have math formulas aligned and broken across
> pages?

It is possible, Taco has a patch for this, but the patch has not yet 
been included as it is not tested thoroughly. Taco's patch allows the 
multi-line equation to break at any line across the page. But this is 
not always the desired behaviour. Consider

f(x) = (x + 2)^2        .... (1)
      = 2x^2 + 4x + 4    .....(2)

It is not desirable to have a page break between (1) and (2). Given 
current tex's inablility for parsing display equations [1], the best 
way is to allow the user to specify where he/she wants a break. 
Something like

\startformula \startalign
  \NC ... \NC ... \NR
  \NC ... \NC ... \NR
\mathalignbreak
  \NC ... \NC ... \NR
  \NC ... \NC ... \NR
\stopalign \stopformula

I think that it is possible to add such a macro. I will try to do this 
when a bit later in the week.

[1] By design, TeX is very intelligent when it comes to line breaking 
of text and inline math, but does nothing about line breaking of 
display math. It will be nice (though not at all easy to implement) if 
I could just write

$$ A very long formula $$

and TeX would decide where and how to break it across line (and 
possible across pages) depending on the values of some penalities.

Aditya

      reply	other threads:[~2006-10-02  9:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26 12:53 eqnalign Adam Duck
2006-10-02  9:59 ` Aditya Mahajan [this message]

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=Pine.WNT.4.63.0610020547550.2620@nqvgln \
    --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).