ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri <henrimenke@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: mathmatrix vs substack
Date: Fri, 15 Sep 2017 16:23:10 +1200	[thread overview]
Message-ID: <1505449390.2334.11.camel@gmail.com> (raw)
In-Reply-To: <41f98bb5-43a5-5483-42f2-ababdc9208ef@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]

Dear Hans,

Thanks for the patch.  It runs without errors again.  However, another problem surfaced.  In the MWE
below the second column of the matrix is no longer centred as it should be.

current version: 2017.09.08 17:24

Cheers, Henri

---

\starttext

\placeformula
\startformula
   \startmathmatrix
     \NC long line \NC 1 \NR
     \NC 1 \NC long line \NR
   \stopmathmatrix
\stopformula

\stoptext

On Mon, 2017-09-11 at 10:03 +0200, Hans Hagen wrote:
> On 9/11/2017 6:59 AM, Henri wrote:
> > 
> > Dear devs,
> > 
> > Thank you very much for fixing this one
> > https://mailman.ntg.nl/pipermail/ntg-context/2017/089790.html
> > Unfortunately it seems like you broke substack and mathmatrix on the way.  MWE below fails
> > with version 2017.09.08 17:24
> > 
> > Cheers, Henri
> > 
> > ---
> > 
> > \starttext
> > 
> > \placeformula
> > \startformula
> >    \sum_{\startsubstack
> >      \NC k \NR
> >      \NC \omega_n \NR
> >    \stopsubstack}
> > \stopformula
> > 
> > \placeformula
> > \startformula
> >    \startmathmatrix[left=\left|,right=\right|]
> >      \NC 0 \NC 1 \NR
> >      \NC 1 \NC 0 \NR
> >    \stopmathmatrix
> >    = -1 .
> > \stopformula
> > 
> > \stoptext
> % no tagging yet : how is it supposed to be coded? no time now anyway
> 
> \unexpanded\def\startsubstack
>    {\begingroup
>     \vcenter\bgroup
>     \baselineskip\mathstacktotal
>     \lineskip\mathstackvgap
>     \lineskiplimit\lineskip
>     \mathsurround\zeropoint
>     \everycr\emptytoks
>     \let\NC\relax
>     \let\MC\relax
>     \let\NR\crcr
>  
> \halign\bgroup\hfil\normalstartimath\scriptstyle\alignmark\alignmark\normalstopimath\hfil\crcr}
> 
> \def\stopsubstack
>    {\crcr
>     \egroup
>     \egroup
>     \endgroup}
> 
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 6881 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2017-09-15  4:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11  4:59 Henri
2017-09-11  8:03 ` Hans Hagen
2017-09-15  4:23   ` Henri [this message]

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=1505449390.2334.11.camel@gmail.com \
    --to=henrimenke@gmail.com \
    --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).