ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* underbrace spacing
@ 2020-12-31 19:37 Johann Birnick
  2021-01-01  6:48 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Johann Birnick @ 2020-12-31 19:37 UTC (permalink / raw)
  To: ntg-context

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)

Best regards,
Johann

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: underbrace spacing
  2020-12-31 19:37 underbrace spacing Johann Birnick
@ 2021-01-01  6:48 ` Aditya Mahajan
  2021-01-01 14:22   ` Johann Birnick
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2021-01-01  6:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: underbrace spacing
  2021-01-01  6:48 ` Aditya Mahajan
@ 2021-01-01 14:22   ` Johann Birnick
  0 siblings, 0 replies; 3+ messages in thread
From: Johann Birnick @ 2021-01-01 14:22 UTC (permalink / raw)
  To: ntg-context

Thanks!!

On Fri, 2021-01-01 at 01:48 -0500, Aditya Mahajan wrote:
> 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
> ______________________________________________________________________________
> _____

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2021-01-01 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-31 19:37 underbrace spacing Johann Birnick
2021-01-01  6:48 ` Aditya Mahajan
2021-01-01 14:22   ` Johann Birnick

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