ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: LaTeX array equivalence with multiline \lbrace
Date: Thu, 26 Jan 2006 21:08:46 -0500 (EST)	[thread overview]
Message-ID: <Pine.WNT.4.63.0601262055430.2484@nqvgln> (raw)
In-Reply-To: <43D94435.7090006@wxs.nl>

<--- On Jan 26, Hans Hagen wrote --->
>>
>>> Also, in another post, I had asked if it is possible to have cases that
>>> are numbered, that is, can I get
>>>
>>>    { b , if whatever     (1a)
>>> a ={
>>>    { c,  otherwise       (1b)
>>>
>>> This is not important, but will be nice to have.
>>>
>>>
> something like this?
>
> [ code snipped ]

> \placeformula \startformula \startcases
> \NC 2 \NC $ y > 0 $ \NR
> \NC 7 \NC $ x = 7 $ \NR[+]
> \NC 4 \NC otherwise \NR
> \stopcases \stopformula


Not exactly. In this, I get two formula numbers, one for the case 
`x=7' and the other for the entire equation. I can remove 
\placeformula and almost get the desired behaviour. There should be an 
option to flushright the equation number corresponding to each case, 
i.e., I should be able to get

+-----------------------------------------------------+
|                                                     |
|         ,-                                          |
|         |   15,  if something                   (1) |
|     x = {                                           |
|         |   0,  otherwise                       (2) |
|         `-                                          |
+-----------------------------------------------------+


Where the frame is the page boundaries. I hope I am making sense here.

Further, I can not get correct subnumbering here. Look at the output 
of

\startformula \startcases
\NC a \NC if something \NR[eq:a][a]
\NC b \NC otherwise    \NR[eq:b][b]
\stopcases \stopformula

Other than these minor glitches, this is perfect.



Aditya

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

  parent reply	other threads:[~2006-01-27  2:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-24 19:23 Renaud AUBIN
2006-01-24 23:37 ` Aditya Mahajan
2006-01-25 12:22   ` Hans Hagen
2006-01-25 13:10     ` Renaud AUBIN
2006-01-25 16:32     ` Aditya Mahajan
2006-01-25 16:41       ` Renaud AUBIN
2006-01-26 21:50         ` Hans Hagen
2006-01-26 22:28           ` Renaud AUBIN
2006-01-27  2:08           ` Aditya Mahajan [this message]
2006-01-27  8:33             ` Hans Hagen
2006-01-27  9:34               ` Taco Hoekwater

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