From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1998 invoked from network); 20 Dec 2023 21:00:29 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 20 Dec 2023 21:00:29 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 61F24483C97 for ; Wed, 20 Dec 2023 21:58:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wf-9NJbuhsPs for ; Wed, 20 Dec 2023 21:58:24 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 332E4483EC8 for ; Wed, 20 Dec 2023 21:57:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6C28B4839C1 for ; Wed, 20 Dec 2023 21:56:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aCXiUxeX8cYg for ; Wed, 20 Dec 2023 21:56:11 +0100 (CET) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id E54C74839BF for ; Wed, 20 Dec 2023 21:56:11 +0100 (CET) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-50e2786e71fso172335e87.0 for ; Wed, 20 Dec 2023 12:56:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703105771; x=1703710571; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=vBY98MY77KKs+YMeWfZgAaXAWdyzE8duu8Tcm1xZil4=; b=ARK+FoYvuxujaFP0bAEE99RKIpdw2w0kK1II7wHv03YARgAjjZE/zC+H06W7pwMiLC K+9KBuoZ/hIWE8X3gLy+19sw8EaNxo1LE2BUd3CW8+TPX+XiABf6x4nIGeJAm3Gprntv IqJOWE+NlZKwX5WDmloNXn/RGF+/rMLszk2iMX95+aJJU4Jo0fx0mUw9hZaBFywR5vSy 4WNxNVoRchCmCQdt98D0m40OcqoOxdXZaGfmIqP+b0v21B+8HAm+3C4QGiPED6StE4KQ 4ZAS7GK69gio8EhHh70yREQ8EtUtEZufj7iy82iTZPAog8iClaeugCpcaauoNaFX0Qdk rQow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703105771; x=1703710571; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vBY98MY77KKs+YMeWfZgAaXAWdyzE8duu8Tcm1xZil4=; b=FxSupsQantbPscynU5DLYLApbyzhKgW+pmwkELaO2gNYORKG8AVOYaTlcyXvv+L8oQ G8DFWslbD55nLNNWbMfcHySQRoRFJos5ZjNe+8MT+D+j1aDJQ4pVR2/FWgLtk8mRVzkg Tv9bWeUG96c5jF3tFKE6UqQm3KIeJvC/VEBa30HfI6Dqk3bLvt5ONqcn+WEJVcaDUAny /lONZP5Lz9YsYBm5y3pJPPIlqbpCwgT4s47yPEliRGkADBCLqLjjDHOiJ8rkEeZeAzUW sg//+mwQU96cbhTXFOz4Z990kATRSF9vdF+Oskhw7BwiP9zON2/RXQ5ENQSEgYxv6m5S 8Gpg== X-Gm-Message-State: AOJu0Yz9WVOcbnD3KxoIKEzQHS6ktQiYl2wqKDQ6NbbApD35hnQCpip9 Ysq0CDx2rXJOiuuh9JHjbJ/QKjpK9HO0ldDVw463A5l/ X-Google-Smtp-Source: AGHT+IG8+QJJoLVNs/S4rZb/HwuDLOGhQ515Agl5I4dYF/dNW6QYiUNNH5eU1j4Jd2K+6RpQnOBjUETLf7xa/g2OWKo= X-Received: by 2002:a2e:8547:0:b0:2cc:6f10:f818 with SMTP id u7-20020a2e8547000000b002cc6f10f818mr2673970ljj.98.1703105770221; Wed, 20 Dec 2023 12:56:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dean Hung Date: Wed, 20 Dec 2023 14:55:58 -0600 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: DVW7DWW2YLIZZWJY6LG4LZAMWUDJEA2A X-Message-ID-Hash: DVW7DWW2YLIZZWJY6LG4LZAMWUDJEA2A X-MailFrom: deanyhung@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: underbrace label across two lines List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============0989606867032383555==" --===============0989606867032383555== Content-Type: multipart/alternative; boundary="00000000000072f48c060cf736df" --00000000000072f48c060cf736df Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mikael, Thanks for your reply -- I was able to get great results after using the \startbuffer ... \stopbuffer approach. I'm still a bit of a beginner with ConText so I wasn't clear on what the meaning of the $ symbols in your reply? The reason I have been using the underbraces is for explaining how botanical naming conventions work. In certain fields of botany/horticulture, plant types follow certain rules for naming. Here is a fictitious name as an example: Loremphylla mikaelii forma alba 'Aditya' Genus =3D Loremphylla Species =3D mikaelii botanical form =3D forma Cultivar Epithet =3D 'Aditya' The problem I was running into was the labels might have more words than can be contained within the space allotted on one line (i.e., Cultivar Epithet would not fit in the space on the same line, and hence my question on how to force a \crlf between those two words). Best, Dean On Wed, Dec 20, 2023 at 2:27=E2=80=AFAM Mikael Sundqvist = wrote: > Hi, > > On Wed, Dec 20, 2023 at 8:01=E2=80=AFAM Dean Hung w= rote: > > > > Hi list, > > > > Following on from Aditya's solution to my previous question, I have run > into a separate issue and would appreciate any assistance. > > > > Sometimes text under the underbrace can become quite long, and should b= e > split into two (or more) lines. In the example below, "firstline" should > be the top line of the underbrace label, and "secondline" should be on th= e > lower line of the underbrace label, but as it stands, both are printed on > the same line. > > > > \underbrace[mindepth=3D0.5cm]{\tf x+y+z}_{\vrule width 0pt height > 0.5cm\relax\text{firstline secondline}} > > > > I have tried using \\ and \crlf, but to no avail. > > > > Any help would be greatly appreciated! > > > > Dean > > Hi, > > Hans will add some annotation mechanism (already on my computer to > test a bit). In your case you can use the first example here: > > \startbuffer > \unframed > [align=3Dmiddle,toffset=3D0.5cm] > {firstline\crlf secondline} > \stopbuffer > > $ > \underbrace > [mindepth=3D0.5cm] > {\tf x + y + z} > _ > {\mtext{\getbuffer}} > > \quad > > \mathannotation > [bottom=3D{\getbuffer}] > {\underbrace > [mindepth=3D0.5cm] > {\tf x + y + z} > } > $ > > Since I am the curious type, I wonder a bit what is the use case here? > Do you mind explaining and providing the complete example? (The reason > I ask is that there might be better ways to do what you are doing.) > > /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 > > _________________________________________________________________________= __________ > --00000000000072f48c060cf736df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Mikael,

Thanks for your r= eply -- I was able to get great results after using the \startbuffer ... \s= topbuffer approach.

I'm still a bit of a begin= ner with ConText so I wasn't clear on what the meaning of the $ symbols= in your reply?

The reason I have been using t= he underbraces is for explaining how botanical naming conventions work.
In certain fields of botany/horticulture, plant types follow certain= rules for naming.=C2=A0 Here is a fictitious name
as an exa= mple:

Loremphylla mikaelii forma alba 'Aditya&= #39;

Genus =3D Loremphylla
Species = =3D mikaelii
botanical form =3D forma
Cultivar Epithet = =3D 'Aditya'

The problem I was running int= o was the labels might have more words than can be contained within the spa= ce allotted
on one line (i.e., Cultivar Epithet would not fit in = the space on the same line, and hence my question on how to force a \crlf
between those two words).

Best,

Dean


On Wed, Dec 20, 2023 at 2:27= =E2=80=AFAM Mikael Sundqvist <mickep= @gmail.com> wrote:
Hi,

On Wed, Dec 20, 2023 at 8:01=E2=80=AFAM Dean Hung <deanyhung@gmail.com> wrote:
>
> Hi list,
>
> Following on from Aditya's solution to my previous question, I hav= e run into a separate issue and would appreciate any assistance.
>
> Sometimes text under the underbrace can become quite long, and should = be split into two (or more) lines.=C2=A0 In the example below, "firstl= ine" should be the top line of the underbrace label, and "secondl= ine" should be on the lower line of the underbrace label, but as it st= ands, both are printed on the same line.
>
> \underbrace[mindepth=3D0.5cm]{\tf x+y+z}_{\vrule width 0pt height 0.5c= m\relax\text{firstline secondline}}
>
> I have tried using \\ and \crlf, but to no avail.
>
> Any help would be greatly appreciated!
>
> Dean

Hi,

Hans will add some annotation mechanism (already on my computer to
test a bit). In your case you can use the first example here:

\startbuffer
\unframed
[align=3Dmiddle,toffset=3D0.5cm]
{firstline\crlf secondline}
\stopbuffer

$
\underbrace
[mindepth=3D0.5cm]
{\tf x + y + z}
_
{\mtext{\getbuffer}}

\quad

\mathannotation
[bottom=3D{\getbuffer}]
{\underbrace
[mindepth=3D0.5cm]
{\tf x + y + z}
}
$

Since I am the curious type, I wonder a bit what is the use case here?
Do you mind explaining and providing the complete example? (The reason
I ask is that there might be better ways to do what you are doing.)

/Mikael
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________
--00000000000072f48c060cf736df-- --===============0989606867032383555== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0989606867032383555==--