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: Math cases
Date: Fri, 23 Jul 2021 00:36:17 -0400 (EDT)	[thread overview]
Message-ID: <nycvar.YAK.7.78.908.2107230034440.545267@nqv-guvaxcnq> (raw)
In-Reply-To: <4309bfac-9fc3-265a-cc5d-dc163191ccb6@gmail.com>

On Thu, 22 Jul 2021, Jack Hill wrote:

> Dear list,
> 
> I'm using ConTeXt version 2021.07.22 19:16 and the following code 
> typesets both columns in math mode
> 
> \starttext
> \startformula
> \delta_{ij} =
> \startcases
> \NC 1 \NC if i = j \NR
> \NC 0 \NC otherwise \NR
> \stopcases
> \stopformula
> \stoptext
> 
> The wiki states that the second column should be typeset in text mode. 
> Is this a bug or does ConTeXt now typeset the second column in math mode 
> by default?

Yes, we felt that it was more consistent with other align mechanisms to default to math. So, for the 2nd column, we now have \NC for a "normal" (i.e., math) column and \TC for a text column. So you can use:

\startformula
\delta_{ij} =
\startcases  
\NC 1 \TC if $i = j$ \NR
\NC 0 \TC otherwise \NR
\stopcases             
\stopformula           
\stoptext  

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-07-23  4:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 22:30 Jack Hill
2021-07-23  4:36 ` Aditya Mahajan [this message]
2021-07-23 11:03   ` Jack Hill
  -- strict thread matches above, loose matches on Subject: below --
2006-01-24  6:22 Math Cases 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=nycvar.YAK.7.78.908.2107230034440.545267@nqv-guvaxcnq \
    --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).