[NTG-context] Aaligned numbers in a matrix?
fv leung
fvleung at gmail.com
Mon Feb 27 02:09:43 CET 2023
See if this way suits you.
\definemathmatrix[bmatrix]
[matrix:brackets]
[simplecommand=bmatrix]
\starttext
$ a \rightarrow
\bmatrix{1, \hfill 2, 3, \hfill 4;
2, \hfill 1, 4, \hfill 3;
3,-4, 1,-2;
4,-3, 2,-1} $
\stoptext
Bruce Horrocks via ntg-context <ntg-context at ntg.nl> æ¼ 2023å¹´2æ27æ¥ é±ä¸
ä¸å8:56寫éï¼
> I'm using the following MWE to produce a matrix:
>
> \definemathmatrix[bmatrix]
> [matrix:brackets]
> [simplecommand=bmatrix]
> \starttext
> $ a \rightarrow
> \bmatrix{1, 2, 3, 4;
> 2, 1, 4, 3;
> 3,-4, 1,-2;
> 4,-3, 2,-1} $
> \stoptext
>
> The columns with negative numbers in are centred and I would rather have
> them right-aligned so that the digits stack up above each other and the
> negative signs stick out to the left, so to speak. Is there an easy way to
> achieve this?
>
> â
> Bruce Horrocks
> Hampshire, UK
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230227/6f83f5bd/attachment-0001.htm>
More information about the ntg-context
mailing list