ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: math align
Date: Mon, 16 Jan 2006 22:02:14 -0500 (EST)	[thread overview]
Message-ID: <Pine.WNT.4.63.0601162154540.1272@nqvgln> (raw)
In-Reply-To: <43CB91F2.3020009@wxs.nl>

<--- On Jan 16, Hans Hagen wrote --->

> Taco Hoekwater wrote:
>
>> 
>> 
>> David Arnold wrote:
>> 
>>> And where should we put this module temporarily?
>> 
>> 
>> Put it in the local directory and do
>>
>>   \input math-ext
>> 
>> at the top of your test files.
>> 
> attached is a next version with 'definable' aligns
>
> \definemathalign[myalign][...]
>
> \startmyalign ...

The following works as expected.

\def\startsplit
   {\startalign[*]} % no number by default

\def\stopsplit
   {&\doalignNR[+][]\crcr % for a number on last line
    \stopalign}

\placeformula \startformula \startsplit
  a &= b \\
    &= c
\stopsplit \stopformula

It seems that you are still thinking about [#2] in the definition of 
\definealign. Can it be such that,

\definealign[gather][n=1,align={middle}]
\definealign[lgather][n=1,align={left}]

\startformula \startgather
  a = b + c \\
  e = f
\stopgather \stopformula

results in center aligned equations
   a = b + c
     e = f

and

\startformula \startlgather
  a = b + c \\
  e = f
\stoplgather \stopformula

results in left aligned equations

  a = b + c
  e = f

Thanks,

Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

  parent reply	other threads:[~2006-01-17  3:02 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
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 [this message]
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.0601162154540.1272@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).