From: Mikael Sundqvist via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Mikael Sundqvist <mickep@gmail.com>
Subject: Re: underbrace under matrix
Date: Fri, 5 Aug 2022 07:03:28 +0200 [thread overview]
Message-ID: <CAHy-LL-v=PhRprshhiNiO1gQiVvZJReh-+Wc_i7Vr3BH_04veg@mail.gmail.com> (raw)
In-Reply-To: <78E6C033-B523-43A3-AC32-E936F8158C17@gmail.com>
On Fri, Aug 5, 2022 at 2:01 AM Jethro Djan via ntg-context
<ntg-context@ntg.nl> wrote:
>
> Hello,
>
> I want to get underbraces under matrices in a math alignment environment. I’ve reproduced my problem here:
>
> \definemathmatrix
> [pmatrix]
> [left={\left(\,},right={\,\right)}]
>
> \starttext
> \placeformula[-]\startformula\startmathalignment
> \NC\
> A \NC=\underbrace{
> \startpmatrix
> \NC 5\NC 5\NR
> \NC -1\NC 7\NR
> \stoppmatrix}\NR
> \NC\NC=\underbrace{
> \startpmatrix
> \NC 2\NC 1\NR
> \NC 4\NC 2\NR
> \stoppmatrix}\NR
> \stopmathalignment\stopformula
> \stoptext
>
> How can I achieve this?
>
> Jethro
Hi Jethro,
Temporary workaround: use the simplecommand.
\definemathmatrix[pmatrix][matrix:parentheses][
simplecommand=pmatrix,
]
\starttext
% \placeformula[-]
\startformula
\startalign
\NC A \NC = \underbrace{\pmatrix{5,5;-1,7}}_{B} \NR
\NC\NC = \underbrace{\pmatrix{2,1;4,2}}_{C} \NR
\stopalign
\stopformula
% \placeformula[-]
\startformula
A \alignhere=
\underbrace{\pmatrix{5,5;-1,7}}_{B}
\breakhere
=
\underbrace{\pmatrix{2,1;4,2}}_{C}
\stopformula
\stoptext
But the code you were using should in principle also work.
/Mikael
___________________________________________________________________________________
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:[~2022-08-05 5:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-05 0:00 Jethro Djan via ntg-context
2022-08-05 5:03 ` Mikael Sundqvist via ntg-context [this message]
2022-08-05 15:12 ` Jethro Djan via ntg-context
2022-08-05 15:27 ` Hans Hagen via ntg-context
2022-08-05 15:35 ` Jethro Djan 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='CAHy-LL-v=PhRprshhiNiO1gQiVvZJReh-+Wc_i7Vr3BH_04veg@mail.gmail.com' \
--to=ntg-context@ntg.nl \
--cc=mickep@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).