From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice L Newsgroups: gmane.comp.tex.context Subject: Border matrix Date: Mon, 28 Aug 2017 09:33:52 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7796686372696595022==" X-Trace: blaine.gmane.org 1503938073 13506 195.159.176.226 (28 Aug 2017 16:34:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2017 16:34:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 28 18:34:28 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmMzS-0002oI-LY for gctc-ntg-context-518@m.gmane.org; Mon, 28 Aug 2017 18:34:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 29FCE882B6; Mon, 28 Aug 2017 18:34:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BEQxIKTCRty5; Mon, 28 Aug 2017 18:34:06 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 13E79882B7; Mon, 28 Aug 2017 18:34:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8C70B882B5 for ; Mon, 28 Aug 2017 18:34:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D4xNCcVS2rIf for ; Mon, 28 Aug 2017 18:34:03 +0200 (CEST) Original-Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 39BB3882B4 for ; Mon, 28 Aug 2017 18:33:53 +0200 (CEST) Original-Received: by mail-wm0-f44.google.com with SMTP id u26so6980049wma.0 for ; Mon, 28 Aug 2017 09:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:date:message-id:subject:to; bh=WQZSvucCO5/5RwG1T1+tTQu1WQ6UuR0pc8pa9YIgOZ0=; b=lv266PSasG+CHP8yxMYY5n02G4P4LvJ+YlbXxuZNIeRPWzqYk+3eBS+11szfaYaQZR x/yieZH6lFyHqFOeQHpqcftPnvXkxlu0KEFnw1iDBwQOAJGDbDrKptDsvsF2hx86w5JB Ymu0X9IQMJEVmtkelV9rCIwK4KyWrJMkSykt7tz0/Fo81pgGMPJ5/RikqU18YdU/ANcp IBeDoQmufHDz+lyNVy8kEM75JWpoqw9UED0801Db1iOFbQZgRTJOtnYc5xSzEN5Hzhrr BFzR63oEPmm8n/Tww0NLL5HP/OWh2VyLzU3w/Wq2mpEnKB1QcEWY5EQ2JfBCtCj+eLnw xbOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=WQZSvucCO5/5RwG1T1+tTQu1WQ6UuR0pc8pa9YIgOZ0=; b=FfFpEU/EmOhr8ml4GYAFC+ArhjKM0sv+QnlXTBWqIF/G1zhYJ+g19UTaAkhn8wc1Lb 51+eTl93KO1hOZglEuGChiT2DOrwJOQvUKhH3uSBqJIkERGpBBs8Ok84E/tVmXpnGaET hJePP5O2AIUUXQtkteI0h8DJ0wIg9tyr46Nk2C9S1zBk4VV/VTDnjLN+kvc2zlA/gLJR 0S+k2kCGd4hLZjEEFvYwE3yp1NW8SJBokJHRwd728nO8BW/oCXXYmwqy11ix2gl7+uWs dzqfonZOC9H+Jy2GYepwOE3By8eE0DEkohfX/mB7VArUWGSOM1e8xuuMDisgTcLwuqgP 1L5g== X-Gm-Message-State: AHYfb5jUc4M3Cd9EjeeH5eqwS7MrtdBr56A3ei8VwTW03shbULP9YBon M4ygM7lakqjOJT+6yb03JcPVVLdfIA== X-Received: by 10.28.29.149 with SMTP id d143mr609527wmd.175.1503938032535; Mon, 28 Aug 2017 09:33:52 -0700 (PDT) Original-Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Mon, 28 Aug 2017 09:33:52 -0700 X-Mailer: Airmail (442) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:98970 Archived-At: --===============7796686372696595022== Content-Type: multipart/alternative; boundary="001a114b36aa318f460557d2dcc8" --001a114b36aa318f460557d2dcc8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I=E2=80=99have a lot of courses notes in MKII. I=E2=80=99m trying to move t= o MKIV. I have a problem that I=E2=80=99m not able to resolve, to make a border matrix with brackets. In MKII, I was using a macro, found somewhere, which works great, but no longer works; here is the macro: % Border matrix: first line and column are label \catcode`\@=3D11\relax \newdimen\p@renwd \font\tenex=3Dcmex10 \setbox0=3D\hbox{\tenex B} \p@renwd=3D\wd0 \def\bbordermatrix#1{\begingroup \m@th \setbox\z@\vbox{\def\cr{\crcr\noalign{\kern2\p@\global\let\cr\endline}}% \ialign{$##$\hfil\kern2\p@\kern\p@renwd&\thinspace\hfil$##$\hfil &&\quad\hfil$##$\hfil\crcr \omit\strut\hfil\crcr\noalign{\kern-\baselineskip}% #1\crcr\omit\strut\cr}}% \setbox\tw@\vbox{\unvcopy\z@\global\setbox\@ne\lastbox}% \setbox\tw@\hbox{\unhbox\@ne\unskip\global\setbox\@ne\lastbox}% \setbox\tw@\hbox{$\kern\wd\@ne\kern-\p@renwd\left[\kern-\wd\@ne \global\setbox\@ne\vbox{\box\@ne\kern2\p@}% \vcenter{\kern-\ht\@ne\unvbox\z@\kern-\baselineskip}\,\right]$}% \null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup} \catcode`\@=3D12\relax but MKIV gives me the error: \bbordermatrix #1->\begingroup \m@th \setbox \z@ \vbox {\def \cr {\crcr \noa... l.26 i & j & k & l \cr} 16 \null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup} 17 \catcode`\@=3D12\relax I look for solutions on the list, but did not find anything.Here is a minimal example: \starttext A border matrix: \startformula \bbordermatrix{ a & b & c & d \cr e & f & G & h \cr i & j & k & l \cr} \stopformula \stoptext As I have in my notes hundreds of such matrix, it is really difficult to change the input format. Do you know, or can you point me, to a solution ? I=E2=80=99m in a dead end= .. Thanks a lot. F. --001a114b36aa318f460557d2dcc8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
Hi,

I=E2=80=99have a lot of courses notes in MKII. I=E2=80=99m trying = to move to MKIV. I have a problem that I=E2=80=99m not able to resolve, to = make a border matrix with brackets. In MKII, I was using a macro, found som= ewhere, which works great, but no longer works; here is the macro:

% Border matrix: first line and column are label
=
\catcode`\@=3D11\relax
\newdimen\p@renwd
\font\tenex=3Dcmex10 \se= tbox0=3D\hbox{\tenex B} \p@renwd=3D\wd0
\def\bbordermatrix#1{\begingroup \m@th
\setbox\z@\vbox{\def\cr{\crcr\noalig= n{\kern2\p@\global\let\cr\endline}}%
=C2=A0 =C2=A0 \ialign{$##$\hfil\kern2\p@\kern\p@renwd&= \thinspace\hfil$##$\hfil
=C2=A0 =C2=A0 =C2=A0 &&\quad\hfil$##$\hfil\crcr
=C2=A0 =C2=A0 =C2=A0 \omit\strut= \hfil\crcr\noalign{\kern-\baselineskip}%
=C2=A0 =C2=A0 =C2=A0 #1\crcr\omit\strut\cr}}%
=C2=A0 \setbox\tw@\vbox{\unv= copy\z@\global\setbox\@ne\lastbox}%
=C2=A0 \setbox\tw@\hbox{\unhbox\@ne\unskip\global\setbox\@n= e\lastbox}%
=C2=A0 \= setbox\tw@\hbox{$\kern\wd\@ne\kern-\p@renwd\left[\kern-\wd\@ne
=C2=A0 =C2=A0 \global\setbox\@ne= \vbox{\box\@ne\kern2\p@}%
=C2=A0 =C2=A0 \vcenter{\kern-\ht\@ne\unvbox\z@\kern-\baselineskip}\,\= right]$}%
=C2=A0 \nu= ll\;\vbox{\kern\ht\@ne\box\tw@}\endgroup}
\catcode`\@=3D12\relax

but MKI= V gives me the error:

\bbordermatrix #1->\begingroup \m@th=C2=A0

=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 \setbox \z@ \vbox {\def \cr {\crcr \noa...<= /p>

l.26=C2=A0 =C2=A0 i & j & k = & l \cr}

=C2=A0=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0


16 =C2=A0 =C2=A0 =C2=A0 \null\;\vbox= {\kern\ht\@ne\box\tw@}\endgroup}

17 =C2=A0 =C2=A0 \catcode`\@=3D12\re= lax


I look for solutions on the list, but did not find anything.Here i= s a minimal example:

\starttext
A border matrix:
\startformula
\bbordermatrix{
=C2=A0 =C2=A0a & b & c &= amp; d \cr
=C2=A0 =C2=A0e & f & G & h \cr
=C2=A0 =C2=A0i & j & k &a= mp; l \cr}
\stopformula
\stoptext

As I have in my notes hundre= ds of such matrix, it is really difficult to change the input format.
=

Do you know, or can you point me, to a solution ? I=E2= =80=99m in a dead end..=C2=A0 Thanks a lot.=C2=A0
F.

--001a114b36aa318f460557d2dcc8-- --===============7796686372696595022== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============7796686372696595022==--