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: A few questions about aligned maths
Date: Thu, 13 Mar 2008 19:48:55 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.1.00.0803131941440.32106@nqv-yncgbc> (raw)
In-Reply-To: <200803131916.37335.morgan.brassel@free.fr>

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

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.

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

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


  reply	other threads:[~2008-03-13 23:48 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 [this message]
2008-03-14  0:53       ` Morgan Brassel
2008-03-14  7:13       ` Wolfgang Schuster
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=alpine.DEB.1.00.0803131941440.32106@nqv-yncgbc \
    --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).