On 3/12/2024 8:57 AM, Max Chernoff wrote:
Hi all,Often I want to include a sentence/paragraph in the middle of a long multipart formula. With the old \startalign/\stopalign formulas, I could use \intertext{...} to do this, but this doesn't work with the new \alignhere/\breakhere formulas. I've managed to find a "solution" for this, although I'd prefer something a bit less hacky. Any ideas? Also, is there a way to highlight an equation across an \alignhere? Once again, I've found a "solution", but like before, it's pretty hacky. Example files are attached.
the next upload will support the attached ... so no ugly hacky code needed 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 -----------------------------------------------------------------
inter-001.pdf
Description: Adobe PDF document
\definebar[mybar][inlined][offset=.25ex,color=red] \starttext \startformula a \alignhere= b + c \breakhere \mybar {d + e} \alignhere= f \breakhere g \alignhere= h + i \stopformula \page \samplefile{knuth} \startformula \text{something} + \text{really} + \text{really} + \text{long} \alignhere= \sqrt{x} \numberhere \texthere[inbetween]{\input{knuth}} d \alignhere= e + f \numberhere \breakhere g \alignhere= h + i \breakhere j \alignhere= k + l \stopformula \samplefile{knuth} \stoptext
___________________________________________________________________________________ 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 ___________________________________________________________________________________