From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: math align
Date: Sun, 15 Jan 2006 22:31:13 -0500 (EST) [thread overview]
Message-ID: <Pine.WNT.4.63.0601152220570.1588@nqvgln> (raw)
In-Reply-To: <43CACEB2.7030708@wxs.nl>
<--- On Jan 15, Hans Hagen wrote --->
> Hi,
>
> Here a first attempts for a flexible alignment mechanism (i depend on taco
> for the fine points of math typesetting since he's typeset \infty more
> complex formulas than i have)
>
> (n=n_of_columns, m=n_of_pairs, so both requested multiple column features are
> supported)
Thanks a lot. I tested it with the little context math documents that
I have and it works as expected. There is a minor bug. I thought that
& ... \\ and \NC .. \NC .. \NR were equivalent, with the latter giving
more configurability with respect to equation numbering and all.
However, with multiple columns, \NC ... \NC does not work as expected.
Consider
\usemodule[math-ext]
\starttext
Three columns work correctly if I use \&
\startbuffer
\startformula \startalign[n=3]
a &= b &= c \\
d &= e &= f
\stopalign \stopformula
\stopbuffer
\typebuffer \getbuffer
But they do not work if I use \type{\NC}
\startbuffer
\startformula \startalign[n=3]
\NC a \NC= b \NC= c \NR
\NC d \NC= e \NC= f \NR
\stopalign \stopformula
\stopbuffer
\typebuffer \getbuffer
\stoptext
This takes care of most of the alignment and equation numbering in
Context. With this, one should also be able to define \startstop split
such that
\placeformula \startformula \startsplit
a &= b \\
&= c
\stopsplit \stopformula
comes out as
a &= b
&= c (1)
But, my attempts to define such a startstop did not work. Can you
suggest something?
Thanks,
Aditya
--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
next prev parent reply other threads:[~2006-01-16 3:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-15 22:37 Hans Hagen
2006-01-16 3:31 ` Aditya Mahajan [this message]
2006-01-16 6:17 ` David Arnold
2006-01-16 7:30 ` David Arnold
2006-01-16 9:02 ` Taco Hoekwater
2006-01-16 12:30 ` Hans Hagen
2006-01-16 15:40 ` Mojca Miklavec
2006-01-16 16:38 ` Hans Hagen
2006-01-16 19:47 ` Aditya Mahajan
2006-01-16 21:43 ` Hans Hagen
2006-01-16 23:03 ` Aditya Mahajan
2006-01-17 3:02 ` Aditya Mahajan
2006-01-16 18:01 ` David Arnold
2006-01-16 18:16 ` Hans Hagen
2006-01-16 18:22 ` David Arnold
2006-01-16 19:45 ` Hans Hagen
2006-01-16 18:42 ` David Arnold
2006-01-16 20:41 ` Hans Hagen
2006-01-16 23:19 ` David Arnold
2006-01-16 18:20 ` Taco Hoekwater
2006-01-16 19:09 ` David Arnold
2006-01-16 20:18 ` Hans Hagen
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.0601152220570.1588@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).