ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Math alignment
@ 2015-07-06  9:24 Hans Aberg
  2015-07-06 22:08 ` Wolfgang Schuster
  2015-07-06 23:46 ` Hans Aberg
  0 siblings, 2 replies; 15+ messages in thread
From: Hans Aberg @ 2015-07-06  9:24 UTC (permalink / raw)
  To: ntg-context

The example below shows the intended output when using original TeX code (compiled with  ‘context' of TeX Live 2015): a pair of left braced formulas. The first comment shows what works in AMS-LaTeX.

However, when trying similar ConTeXt commands, I get the error shown in the comment below. What ConTeXt command might use here?

---
\setupformulas[location=left]

\starttext

\def\equlb#1{\left\{\eqalign{#1}\right.} %equation left braced

% AMS-LaTeX
%\def\equlb#1{\left\{ \begin{aligned} #1 \end{aligned}\right.} % equation left braced

% ConTeXt error: You can't use `\halign' in math mode.
%\def\equlb#1{\left\{ \startalign #1 \stopalign\right.}
%\def\equlb#1{\left\{ \startmathalignment #1 \stopmathalignment\right.}


\startformula \placeformula[JcoordDef]
 J^j:\equlb{ω^0 &→ 0 \cr ω^j &→ 0} \quad
 \equlb{ω^k &→ ω^l \cr ω^l &→ -ω^k} \stopformula

\stoptext
---


___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-07-07 20:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06  9:24 Math alignment Hans Aberg
2015-07-06 22:08 ` Wolfgang Schuster
2015-07-06 23:46 ` Hans Aberg
2015-07-07  2:46   ` Wolfgang Schuster
2015-07-07  8:30     ` Hans Aberg
2015-07-07 14:47       ` Wolfgang Schuster
2015-07-07 16:23         ` Hans Aberg
2015-07-07 18:17           ` Wolfgang Schuster
2015-07-07 18:53             ` Hans Aberg
2015-07-07 19:18               ` Wolfgang Schuster
2015-07-07 19:21                 ` Hans Aberg
2015-07-07 19:11             ` Hans Aberg
2015-07-07 19:49               ` Wolfgang Schuster
2015-07-07 20:01                 ` Hans Aberg
2015-07-07 20:56                 ` Hans Aberg

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