From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: underbrace spacing
Date: Fri, 1 Jan 2021 01:48:12 -0500 (EST) [thread overview]
Message-ID: <nycvar.YAK.7.78.908.2101010147040.234415@nqv-guvaxcnq> (raw)
In-Reply-To: <DB8PR03MB6236ECA1F352E1251490A521FBD60@DB8PR03MB6236.eurprd03.prod.outlook.com>
On Thu, 31 Dec 2020, Johann Birnick wrote:
> Hi there,
>
> if I do
>
> \starttext
> $4 \underbrace{+ 3}_{\text{because of lorem} + 2}$
> \stoptext
>
> then the spacing gets really big because of the long. How can I prevent this?
>
> (in LaTeX one can use \mathcal or so and that works)
Do you mean \mathclap? If so, then in Context, \clap works correctly in both text and math mode. So, you can just use:
\starttext
$4 \underbrace{+ 3}_{\clap{\text{because of lorem} + 2}}$
\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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-01-01 6:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-31 19:37 Johann Birnick
2021-01-01 6:48 ` Aditya Mahajan [this message]
2021-01-01 14:22 ` Johann Birnick
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.2101010147040.234415@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).