From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere
Date: Tue, 12 Mar 2024 11:22:05 +0100 [thread overview]
Message-ID: <617925a2-f289-413d-ac44-ff66f6721936@xs4all.nl> (raw)
In-Reply-To: <153cd0cd34e1aa344a2ea6132ecf04586a64dbdf.camel@telus.net>
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.
maybe
\starttexdefinition protected newintertext #1
\leftparbox [global] {
\vadjust pre \bgroup
\forgetall
\vskip.5\strutdp % needs to be more clever in the end
\dontleavehmode\vtop\bgroup
#1
\egroup
\egroup
}
\breakhere
\stoptexdefinition
but i need to discuss it with Mikael as we might integrate something
better and then it needs to be documented (in the upcoming manual) as well
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-03-12 10:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 7:57 [NTG-context] " Max Chernoff
2024-03-12 10:22 ` Hans Hagen [this message]
2024-03-12 14:21 ` [NTG-context] " Hans Hagen
2024-03-13 10:32 ` Max Chernoff
2024-03-13 11:26 ` Mikael Sundqvist
2024-03-13 12:06 ` Hans Hagen via ntg-context
2024-03-13 21:50 ` Max Chernoff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=617925a2-f289-413d-ac44-ff66f6721936@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).