* [NTG-context] increase vertical between underbrace and equation
@ 2023-12-18 17:56 Dean Hung
2023-12-18 20:38 ` [NTG-context] " Aditya Mahajan
2023-12-19 8:34 ` Mikael Sundqvist
0 siblings, 2 replies; 7+ messages in thread
From: Dean Hung @ 2023-12-18 17:56 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 814 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1167 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: increase vertical between underbrace and equation
2023-12-18 17:56 [NTG-context] increase vertical between underbrace and equation Dean Hung
@ 2023-12-18 20:38 ` Aditya Mahajan
2023-12-18 20:55 ` Aditya Mahajan
2023-12-18 22:11 ` Dean Hung
2023-12-19 8:34 ` Mikael Sundqvist
1 sibling, 2 replies; 7+ messages in thread
From: Aditya Mahajan @ 2023-12-18 20:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: increase vertical between underbrace and equation
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:11 ` Dean Hung
1 sibling, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2023-12-18 20:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: increase vertical between underbrace and equation
2023-12-18 20:55 ` Aditya Mahajan
@ 2023-12-18 21:11 ` Wolfgang Schuster
2023-12-18 22:12 ` Dean Hung
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2023-12-18 21:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: increase vertical between underbrace and equation
2023-12-18 20:38 ` [NTG-context] " Aditya Mahajan
2023-12-18 20:55 ` Aditya Mahajan
@ 2023-12-18 22:11 ` Dean Hung
1 sibling, 0 replies; 7+ messages in thread
From: Dean Hung @ 2023-12-18 22:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1845 bytes --]
Hi Aditya,
Many thanks for the help! It works great!
On Mon, Dec 18, 2023 at 2:41 PM Aditya Mahajan <adityam@umich.edu> wrote:
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2801 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: increase vertical between underbrace and equation
2023-12-18 21:11 ` Wolfgang Schuster
@ 2023-12-18 22:12 ` Dean Hung
0 siblings, 0 replies; 7+ messages in thread
From: Dean Hung @ 2023-12-18 22:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1864 bytes --]
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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2834 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: increase vertical between underbrace and equation
2023-12-18 17:56 [NTG-context] increase vertical between underbrace and equation Dean Hung
2023-12-18 20:38 ` [NTG-context] " Aditya Mahajan
@ 2023-12-19 8:34 ` Mikael Sundqvist
1 sibling, 0 replies; 7+ messages in thread
From: Mikael Sundqvist @ 2023-12-19 8:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-12-19 8:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-18 17:56 [NTG-context] increase vertical between underbrace and equation 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 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).