ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: intertext for aligned equations
Date: Mon, 27 Mar 2006 14:50:23 +0200	[thread overview]
Message-ID: <4427DF8F.5020007@wxs.nl> (raw)
In-Reply-To: <4427AA2E.1070203@elvenkind.com>

Taco Hoekwater wrote:
> Hi,
>
> Aditya Mahajan wrote:
>
>   
>> This seems to be working fine. However, \intertext defined in 
>> amsmath.sty seems to be doing  a lot more (I just can't figure out 
>> what it is doing?) Can someone suggest how to make the above command 
>> more robust on the lines of \intertext?
>>     
>
> It inserts a post/pre-display skip&penalty pair around the intertext,
> then creates a \vbox for use a paragraph. The result is (almost) as if
> it the text was part of the 'normal' text flow between two displays.
>
> I cannot tell you if this would work exactly the same as expected in
> ConTeXt (needs further testing), but a context-like solution would
> look like this:
>
> \def\startintertext#1\stopintertext{%
>    \noalign{\dointertext{#1}}\NR}
>
> \unexpanded\def\dointertext#1%
>     {\penalty\postdisplaypenalty
>      \afterdisplayspace  % the matching \before... is not needed
>      \vbox{\forgetall \noindent #1\par}%
>      \penalty\postdisplaypenalty }
>
>   
added (preliminary) but i need an example of usage for the core-mat file/docu -) 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  parent reply	other threads:[~2006-03-27 12:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-27  7:23 Aditya Mahajan
2006-03-27  9:02 ` Taco Hoekwater
2006-03-27 12:27   ` Hans Hagen
2006-03-27 13:53     ` Taco Hoekwater
2006-03-27 14:47       ` Aditya Mahajan
2006-03-27 12:50   ` Hans Hagen [this message]
2006-03-29  6:42   ` Aditya Mahajan
2006-03-29  7:49     ` Taco Hoekwater
2006-03-29 15:46       ` Aditya Mahajan

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=4427DF8F.5020007@wxs.nl \
    --to=pragma@wxs.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).