From: fv leung via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: fv leung <fvleung@gmail.com>
Subject: Re: Aaligned numbers in a matrix?
Date: Mon, 27 Feb 2023 09:09:43 +0800 [thread overview]
Message-ID: <CAN-yaTkFgv-WqjvcFxD0xEG6ohacQwrAAqg7aFvuWJaRCcf0uQ@mail.gmail.com> (raw)
In-Reply-To: <727E4D90-5418-480A-B5D0-8C1E7F3AAD22@scorecrow.com>
[-- Attachment #1.1: Type: text/plain, Size: 1496 bytes --]
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@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@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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2354 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@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 prev parent reply other threads:[~2023-02-27 1:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-27 0:55 Bruce Horrocks via ntg-context
2023-02-27 1:09 ` fv leung via ntg-context [this message]
2023-02-27 4:40 ` Aditya Mahajan 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=CAN-yaTkFgv-WqjvcFxD0xEG6ohacQwrAAqg7aFvuWJaRCcf0uQ@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=fvleung@gmail.com \
/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).