From: Marcin Borkowski <mbork@atos.wmid.amu.edu.pl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math alignment problem
Date: Sat, 10 Jan 2009 19:31:19 +0100 [thread overview]
Message-ID: <20090110183119.GQ19367@atos.labs.wmid.amu.edu.pl> (raw)
In-Reply-To: <alpine.LNX.2.00.0901101310330.21038@ybpnyubfg.ybpnyqbznva>
Dnia Sat, Jan 10, 2009 at 01:15:28PM -0500, Aditya Mahajan napisał(a):
> On Sat, 10 Jan 2009, Marcin Borkowski wrote:
>
> >Hi all,
> >
> >I'd like to typeset a system of simultaneous equations. I want it to
> >have a brace on the left (like "cases"), but inside I want it to have
> >two columns aligned like "align". Also, I'd like to have the vertical
> >space between the equations be small (like in cases), not so big as in
> >align.
> >
> >How to do this?
>
> I do not completely understand what you want. Do the following give the
> desired output.
Sorry;).
> \starttext
>
> \startformula
> \startcases[align={right,left},distance=3pt]
> \NC 2x + 3y \MC{} = 10 \NR
> \NC 3x + 2y \MC{} = 5 \NR
> \stopcases
> \stopformula
>
> \startformula
> \startmatrix[align={right,left},distance=3pt,left={\left\{},
> right={\right.}]
> \NC 2x + 3y \NC{} = 10 \NR
> \NC 3x + 2y \NC{} = 5 \NR
> \stopmatrix
> \stopformula
>
> \stoptext
Both work just fine, but with distance=0pt instead. Thanks! There is
only a minor problem with the former one: it's somehow shifted to the
left compared with the latter (both in MkII and MkIV). I have no idea
why.
> The {} after the alignment \NC is useful if the next symbol is something
> that can be a uniary or binary symbol (eg, + or -). The {} tells tex to
> treat is as a binary symbol.
Of course - the {} is an "ord" atom for TeX, AFAIR.
> If you frequently need something like this, you can use
> definemathcases/definemathmatrix to define a new environment with
> appropriate parameters.
Yes; however, I'd still have to use the {} after the \NC...
>
> Aditya
Thank you!
--
Marcin Borkowski (http://mbork.pl)
Nie mam w ręku miecza, ani karabinu, stoję nieuzbrojony pod murami Babilonu.
Wzywam pomocy Ducha - Duch przychodzi w ogniu!
Wokół zostają tylko gruzy Babilonu!
(Korzeń Z Kraju Melchizedeka)
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-01-10 18:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-10 17:53 Marcin Borkowski
2009-01-10 18:15 ` Aditya Mahajan
2009-01-10 18:31 ` Marcin Borkowski [this message]
2009-01-11 0:14 ` Aditya Mahajan
2009-01-20 0:01 ` Marcin Borkowski
2009-01-20 0:37 ` Aditya Mahajan
2022-09-22 10:56 Jan-Erik Hägglöf via ntg-context
2022-09-22 12:54 ` Alexandre Christe via ntg-context
2022-09-22 20:53 ` Jan-Erik Hägglöf via ntg-context
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=20090110183119.GQ19367@atos.labs.wmid.amu.edu.pl \
--to=mbork@atos.wmid.amu.edu.pl \
--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).