increase vertical between underbrace and equation
![](https://secure.gravatar.com/avatar/0391b9eb60ba458505f15e1b961aba56.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Mon, 18 Dec 2023, Aditya Mahajan wrote:
On Mon, 18 Dec 2023, Dean Hung wrote:
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
Actually, realized that you want more distance in the other direction. One option is to use \vrule. \underbrace{x+y+z}_{\vrule width 0pt height 1cm\relax\mathrm{my text here}} You probably also want \text{...} instead of \mathrm{...}. Aditya
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Aditya Mahajan schrieb am 18.12.2023 um 21:55:
On Mon, 18 Dec 2023, Aditya Mahajan wrote:
On Mon, 18 Dec 2023, Dean Hung wrote:
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 Actually, realized that you want more distance in the other direction. One option is to use \vrule.
\underbrace{x+y+z}_{\vrule width 0pt height 1cm\relax\mathrm{my text here}}
You probably also want \text{...} instead of \mathrm{...}.
\underbrace{x+y+z}_{\unframed[toffset=1cm]{my text here}} Wolfgang
![](https://secure.gravatar.com/avatar/0391b9eb60ba458505f15e1b961aba56.jpg?s=120&d=mm&r=g)
Thank you, Wolfgang! On Mon, Dec 18, 2023 at 3:13 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote:
Aditya Mahajan schrieb am 18.12.2023 um 21:55:
On Mon, 18 Dec 2023, Aditya Mahajan wrote:
On Mon, 18 Dec 2023, Dean Hung wrote:
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 Actually, realized that you want more distance in the other direction. One option is to use \vrule.
\underbrace{x+y+z}_{\vrule width 0pt height 1cm\relax\mathrm{my text here}}
You probably also want \text{...} instead of \mathrm{...}.
\underbrace{x+y+z}_{\unframed[toffset=1cm]{my text here}}
Wolfgang
___________________________________________________________________________________ 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
___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/0391b9eb60ba458505f15e1b961aba56.jpg?s=120&d=mm&r=g)
Hi Aditya,
Many thanks for the help! It works great!
On Mon, Dec 18, 2023 at 2:41 PM Aditya Mahajan
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
___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/3d131c6a351a6b0092c19b389bd99cf0.jpg?s=120&d=mm&r=g)
Hi,
On Mon, Dec 18, 2023 at 6:57 PM Dean Hung
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
participants (4)
-
Aditya Mahajan
-
Dean Hung
-
Mikael Sundqvist
-
Wolfgang Schuster