ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: increase vertical between underbrace and equation
Date: Mon, 18 Dec 2023 21:38:46 +0100 (CET)	[thread overview]
Message-ID: <1q253p89-q4q9-r0s9-7302-389no49p9s96@hzvpu.rqh> (raw)
In-Reply-To: <CAOgjQBsdoZ8OCoP4yuE1zUvG1Q0tid28X-JB_PZqn74dk2RKbA@mail.gmail.com>

On Mon, 18 Dec 2023, Dean Hung wrote:

> Hi ConText friends,
> 
> I am trying to increase the vertical distance between the underbrace and
> the part of the equation above the underbrace.
> 
> \startformula
> \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}}
> \stopformula
> 
> I've tried using \blank and \vspace, but to no avail.  For example:
> 
> \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}}
> ...does not work.
> 
> The documentation on underbrace (and overbrace, underbracket, etc...) in
> the ContextGarden wiki seems to be very limited, and I was not able to find
> any user-supplied arguments for increasing this vertical distance.
> 
> There are various solutions available for LaTex, and they require external
> packages (e.g., BigStrut, vphantom) that redefine the strut height.
> 
> I hope I'm missing something simple... Any help would be greatly
> appreciated!

Hey, this is context. We don't need any packages for simple stuff:

\startformula
\underbrace[mindepth=1cm]{x+y+z}_{\mathrm{my text here}}
\stopformula


Aditya



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-12-18 20:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-18 17:56 [NTG-context] " Dean Hung
2023-12-18 20:38 ` Aditya Mahajan [this message]
2023-12-18 20:55   ` [NTG-context] " Aditya Mahajan
2023-12-18 21:11     ` Wolfgang Schuster
2023-12-18 22:12       ` Dean Hung
2023-12-18 22:11   ` Dean Hung
2023-12-19  8:34 ` Mikael Sundqvist

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=1q253p89-q4q9-r0s9-7302-389no49p9s96@hzvpu.rqh \
    --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).