From: Christoph Reller <christoph.reller@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Tagging and Math Matrix
Date: Thu, 07 Sep 2017 05:51:20 +0000 [thread overview]
Message-ID: <CAO8LnPE3+1=TumcvHx4PWxwxUAtyhtH66mo_4ez5FknC+xEP5w@mail.gmail.com> (raw)
In-Reply-To: <mailman.97.1504689965.1988.ntg-context@ntg.nl>
[-- Attachment #1.1: Type: text/plain, Size: 2297 bytes --]
On Wed, 6 Sep 2017 11:25:51 +0200 Hans Hagen <pragma@wxs.nl> wrote:
> On 9/6/2017 9:55 AM, Christoph Reller wrote:
> > On Tue, 5 Sep 2017 16:29:52 +0200 Hans Hagen <pragma@wxs.nl
> > <mailto:pragma@wxs.nl>> wrote:
> >
> > On 8/30/2017 9:45 AM, Christoph Reller wrote:
> > > On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller
> > > <christoph.reller@gmail.com> wrote:
> > >
> > > There seems to be a problem with the structure information added
> > > when using \startmatrix:
> > >
> > > A fix would be very much appreciated.
> >
> > should be ok now
> >
> >
> > Thank you Hans for this fix!
> >
> > There seems to be, however, still a minor issue with a more complete MWE:
> > \math{
> > \startmatrix
> > \NC A \NC B \NR
> > \NC C \NC D \NR
> > \stopmatrix}
>
> can you test with
>
> \def\math_matrix_process#1#2%
> {\forgettagging % otherwise dummy mrows and such
> \dowithnextbox
> {\scratchdimen\dimexpr(\nextboxdp-\nextboxht)/2
> \ifcase#2\or+\mathaxisheight\textfont2\fi\relax
>
>
> \ifcase#1\relax\or\lower\scratchdimen\or\or\raise\scratchdimen\fi\hbox\bgroup
> \normalstartimath
> \mathmatrixparameter\c!left
> \vcenter{\unvbox\nextbox}%
> \mathmatrixparameter\c!right
> \normalstopimath
> \egroup}%
> \vbox}
>
Indeed, this is much better! Thank you!
I recommend to include this as a patch in ConTeXt.
However: Testing never stops ;-) I have the following MWE:
\definemathmatrix[pmatrix][left={\left(},right={\right)}]
\math{
\startpmatrix
\NC A \NC B \NR
\NC C \NC D \NR
\stoppmatrix}
This (including your suggested fix) results in the following structure tree:
<document>
|-<math>
| '-<mrow>
| '-<mrow>
| '-<mfenced>
| '-<mrow>
'-<math>
'-<mtable>
|-<mtr>
| |-<mtd>
| | '-<math>
| | '-<mrow>
| | '-<mi>
| | '-"A"
| '-<mtd>
| '-<math>
| '-<mrow>
| '-<mi>
| '-"B"
'-<mtr>
|-<mtd>
| '-<math>
| '-<mrow>
| '-<mi>
| '-"C"
'-<mtd>
'-<math>
'-<mrow>
'-<mi>
'-"D"
I think that the <mtable> should be located within the <mfenced>, shouldn't
it?
Cheers,
Christoph
[-- Attachment #1.2: Type: text/html, Size: 4001 bytes --]
[-- Attachment #2: 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
___________________________________________________________________________________
next parent reply other threads:[~2017-09-07 5:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.97.1504689965.1988.ntg-context@ntg.nl>
2017-09-07 5:51 ` Christoph Reller [this message]
2017-09-07 18:23 ` Hans Hagen
[not found] <mailman.83.1504639917.1988.ntg-context@ntg.nl>
2017-09-06 7:55 ` Christoph Reller
2017-09-06 9:25 ` Hans Hagen
[not found] <mailman.345.1451313540.2404.ntg-context@ntg.nl>
2017-08-30 7:45 ` Christoph Reller
2017-09-05 14:29 ` Hans Hagen
2015-12-28 14:33 Christoph Reller
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='CAO8LnPE3+1=TumcvHx4PWxwxUAtyhtH66mo_4ez5FknC+xEP5w@mail.gmail.com' \
--to=christoph.reller@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).