ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mikael Sundqvist <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: increase vertical between underbrace and equation
Date: Tue, 19 Dec 2023 09:34:38 +0100	[thread overview]
Message-ID: <CAHy-LL8X24F6v0UL92WvgLuXt7WLTuTwPGPyLwJvwnO=eCnUiA@mail.gmail.com> (raw)
In-Reply-To: <CAOgjQBsdoZ8OCoP4yuE1zUvG1Q0tid28X-JB_PZqn74dk2RKbA@mail.gmail.com>

Hi,

On Mon, Dec 18, 2023 at 6:57 PM Dean Hung <deanyhung@gmail.com> 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!
>
> DY Hung

One could enforce consistent spacing by doing (add \showstruts)

\underbrace{x + y + z}_{\topstrut\mtext{my text here}}

but it would perhaps make more sense to be able to do

\underbrace[toptext=...,bottomtext=...]{x + y + z}

with some mechanism that do not abuse the limits mechanism, or even to
have some very general annotation mechanism,

\mathannotation[toptext=...,bottomtext=...]{\underbrace{x + y + z}}

So, can we please see some real examples of how this is supposed to be
used? Best with some explanations on how and why the text below should
be raised/lowered.

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

      parent reply	other threads:[~2023-12-19  8:40 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 ` [NTG-context] " Aditya Mahajan
2023-12-18 20:55   ` 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 [this message]

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-LL8X24F6v0UL92WvgLuXt7WLTuTwPGPyLwJvwnO=eCnUiA@mail.gmail.com' \
    --to=mickep@gmail.com \
    --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).