ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mathmatrix vs substack
@ 2017-09-11  4:59 Henri
  2017-09-11  8:03 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Henri @ 2017-09-11  4:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mathmatrix vs substack
  2017-09-11  4:59 mathmatrix vs substack Henri
@ 2017-09-11  8:03 ` Hans Hagen
  2017-09-15  4:23   ` Henri
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2017-09-11  8:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henri

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mathmatrix vs substack
  2017-09-11  8:03 ` Hans Hagen
@ 2017-09-15  4:23   ` Henri
  0 siblings, 0 replies; 3+ messages in thread
From: Henri @ 2017-09-15  4:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-15  4:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-11  4:59 mathmatrix vs substack Henri
2017-09-11  8:03 ` Hans Hagen
2017-09-15  4:23   ` Henri

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).