[NTG-context] Multiline text in mathmode
Hans Hagen
j.hagen at xs4all.nl
Thu Jun 30 07:58:23 CEST 2022
On 6/30/2022 7:13 AM, Aditya Mahajan via ntg-context wrote:
> On Thu, 30 Jun 2022, Johann Birnick via ntg-context wrote:
>
>> I guess you will update to LMTX..? Unfortunately I use MkIV, because of other
>> math bugs in LMTX. Do you know any (can be ugly) way of doing this without the
>> new stuff?
>
> You could just use a framed.
>
> \define[1]\multilinetext{\vcenter{\framed[align=middle,frame=off]{#1}}}
>
> \startTEXpage[offset=2mm]
> \startformula
> \left\{ \multilinetext{Quaternion algebra over $\rationals$ \\ up to
> isomorphisms} \right\}
> \stopformula
> \stopTEXpage
indeed, the lmtx definiton sis similar:
\permanent\tolerant\protected\def\mparagraph[#1]#*#:#2%
{\vcenter class \mathconstructcode \bgroup
\framed
[\c!offset=\v!overlay,
\c!frame=\v!overlay,
\c!align=\v!middle,
#1]{#2}%
\egroup}
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
More information about the ntg-context
mailing list