ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: A few questions about aligned maths
Date: Fri, 14 Mar 2008 08:13:39 +0100	[thread overview]
Message-ID: <20080314081339.495b1193.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <alpine.DEB.1.00.0803131941440.32106@nqv-yncgbc>

On Thu, 13 Mar 2008 19:48:55 -0400 (EDT)
Aditya Mahajan <adityam@umich.edu> wrote:

> On Thu, 13 Mar 2008, Morgan Brassel wrote:
> 
> > Concerning multline, I only read the specification given in amsldoc.pdf:
> > "3.3 Split equations without alignment". Multline does not support alignment,
> > so you can't put '&' inside it, only '\\'. All it does is cut the equation
> > into several lines: the first is left aligned, the last is right aligned, and
> > all the intermediate are centered. I don't if this is sufficient as an
> > explanation. Please let me know if I can help or test. And thank you for your
> > time!
> 
> So, will this user interface be enough:
> 
> \startformula \startmultline
>    \NC line 1 \FR
>    \NC line 2 \MR
>    \NC line 3 \LR
> \stopmultline \stopformula

I would change myself the name for the environment from multline to
multiline, we don't have to rely on the short command names as old TeX
packages did for many macros.

> Lines with \FR are flush left, lines with \MR are centered, and lines with 
> \LR are right flushed. (First row, middle row, last row; as in tables). 
> multline also has \pushleft and \pushright with go against the ConTeXt way 
> of things.
> 
> It is also possible to just have \NR at each row, and let ConTeXt figure 
> out the correct flushing. That will involve a two-pass algorithm, and I 
> will give that a try.

I think you should use NR at the end of a line and not different
commands for the first, the last and all other lines. You could change
the alignment of each line with \NC[align=...], this will fit to the
normal commands for tables.

> The other thing is placement of equation numbers. It is easy to implement 
> multline so that equation number is always centered. I am not sure if the 
> current ConTeXt mechanism allows for equation number to be placed on the 
> bottom (similar to tbtags options).

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2008-03-14  7:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13  1:13 Morgan Brassel
2008-03-13 12:23 ` Aditya Mahajan
2008-03-13 18:16   ` Morgan Brassel
2008-03-13 23:48     ` Aditya Mahajan
2008-03-14  0:53       ` Morgan Brassel
2008-03-14  7:13       ` Wolfgang Schuster [this message]
2008-03-14 20:45         ` Aditya Mahajan
2008-03-23  5:31 ` Aditya Mahajan
2008-03-24  0:00   ` Morgan Brassel
2008-03-24 10:19     ` Hans Hagen
2008-03-24 12:17       ` Aditya Mahajan
2009-01-18  4:56         ` Dave
2009-01-19 14:52           ` Aditya Mahajan

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=20080314081339.495b1193.schuster.wolfgang@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).