From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100667 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Border matrix Date: Thu, 19 Apr 2018 22:14:33 +0200 Message-ID: <5AD8F8A9.407@gmail.com> References: <7c38cc04-4408-9799-7a27-fcd1c3a47f6b@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6175219690459965584==" X-Trace: blaine.gmane.org 1524168778 16977 195.159.176.226 (19 Apr 2018 20:12:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2018 20:12:58 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 19 22:12:54 2018 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 1f9FvJ-0004MV-V2 for gctc-ntg-context-518@m.gmane.org; Thu, 19 Apr 2018 22:12:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 71D756262AB; Thu, 19 Apr 2018 22:14:49 +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 RC_L4zjtSS1Z; Thu, 19 Apr 2018 22:14:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id A27006262AF; Thu, 19 Apr 2018 22:14:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 330646262AF for ; Thu, 19 Apr 2018 22:14:47 +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 oinQ9WrLqdxC for ; Thu, 19 Apr 2018 22:14:46 +0200 (CEST) Original-Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) (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 AA43A6262AB for ; Thu, 19 Apr 2018 22:14:36 +0200 (CEST) Original-Received: by mail-wr0-f172.google.com with SMTP id s18-v6so17235327wrg.9 for ; Thu, 19 Apr 2018 13:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=vNpFl4NW/iWZ5UrkEVNaVnFYjYsT0MzbNZk8zAQCnV4=; b=FiVQkVPpeAA0D5vumlbkO2wATrHwCLsV6keNLoF6iqmPa6NHAviQU4sOm1nq83RI6H xrCsf70ZobopvypHm/Rb/4O5LGm1UhnjggzLKRcwZravXqIKj75kQvMEW6cHQTEtJIm8 Hhj2Hpu71NzOTWBQtpzdocQw1CakpV+ROpp3tM2pj6OmRdcugqDC4qY/4DPT+TVx3W9R rVozaDSC4e2+5lttFvwjdQgzl7jZgURjVgtuCYmuty0C9PGgqwEwAJGtQrZ+XqJ71fB7 yJp9Z79jY/aHWl/dII/P/C+FtWBotofF4TSoHC2J6x3dGNDlp6r3hgnEIiDWpHgpX1py Bmcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=vNpFl4NW/iWZ5UrkEVNaVnFYjYsT0MzbNZk8zAQCnV4=; b=WwFH8Ub4xd8GpNoMlDL0h4f5J6XPDqLykeIIbXyokPf2HaV3SF2YsxNcKYxmb5fT8Z AhzVzBMfAxE4GBdvCTg8U4ge4QbdSA2Udw917vB6Y9cetd5uqzyT2YHNGeBczu7R4Hzy xKOo38QQs6VDM2ZmSZ2njc9kb8kVmAfpdpER72i9to03PY275apJszHCgg0OpW25gB+X 7lyy6lXsNEhTaXOh9yy4u4CH9nYe3uSi0AcwMKSCJLWpgB0IhxqNafAWcNB0xL72dJtr VcpjvWX2aY2PQZxWukTZNr18OrGeJ06IPg+/GmweqkTf4WuRKu9WssJSKADp/1q2rJsm /Y3A== X-Gm-Message-State: ALQs6tA5cw3/Sy3b+kZ6/YjSC7x4CkjJTjAvKEG1oX8C6WEdUwRAmvod d32Ox5WFBjWfwd/ZAgKq9aYAYc7Q X-Google-Smtp-Source: AIpwx48tOrCJFESLr3MkVl7fcKXOETUHmteiOyE9hLXWsmXTE3VT4dA2rf6LUkQ/Bx/55GX8rYTWzw== X-Received: by 10.28.232.206 with SMTP id f75mr106808wmi.121.1524168875952; Thu, 19 Apr 2018 13:14:35 -0700 (PDT) Original-Received: from [192.168.1.11] (x4e301d72.dyn.telefonica.de. [78.48.29.114]) by smtp.gmail.com with ESMTPSA id 80sm5671666wml.44.2018.04.19.13.14.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 13:14:35 -0700 (PDT) In-Reply-To: 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:100667 Archived-At: This is a multi-part message in MIME format. --===============6175219690459965584== Content-Type: multipart/alternative; boundary="------------020209060802020604070409" This is a multi-part message in MIME format. --------------020209060802020604070409 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 1. The bordermatrix code is part of the core and you can remove it from cont-new.mkiv. 2. To use the \equalign command you have to enable the special meaning of & in math mode with \setupmathematics[ampersand=normal]. 3. User the new mathalignment environment as replacement for \equalign which avoids special characters like &. Wolfgang > Fabrice L > 19. April 2018 um 22:05 > Dear list, > > Some months ago, Hans wrote to this list (see below) a macro to do > matrix showing outside the brackets some informations (like we usually > do for Markov chains), but adapted some plain tex code, which worked > in MKII). I have used with success this code since then, but some > weeks ago, the behavior of Context had changed (probably something on > my part; I have updated the installation, but nothing changed). > > The problem (I think) is linked to \unprotect \protect. When this code > is put before the \starttext to the the cont-new-mkiv, the border > matrix behave well, but a simple \eqalign like this: > > \startformula > \eqalign{ & \lambda=5, \mu =5 \cr > & \mu=8 \cr } > \stopformula > > do not works is I replace « \lambda » by « \lambda_2 » for example. I > have no idea what’s is going on. here is a minimal example where > Hans’s code is before the \starttext: > --------------020209060802020604070409 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. The bordermatrix code is part of the core and you can remove it from cont-new.mkiv.

2. To use the \equalign command you have to enable the special meaning of & in math mode with \setupmathematics[ampersand=normal].

3. User the new mathalignment environment as replacement for \equalign which avoids special characters like &.

Wolfgang
19. April 2018 um 22:05
Dear list,

Some months ago, Hans wrote to this list (see below) a macro to do matrix showing outside the brackets some informations (like we usually do for Markov chains), but adapted some plain tex code, which worked in MKII). I have used with success this code since then, but some weeks ago, the behavior of Context had changed (probably something on my part; I have updated the installation, but nothing changed). 

The problem (I think) is linked to \unprotect \protect. When this code is put before the \starttext to the the cont-new-mkiv, the border matrix behave well, but a simple \eqalign like this:

\startformula  
\eqalign{ & \lambda=5, \mu =5 \cr
       & \mu=8 \cr }
\stopformula

do not works is I replace «  \lambda » by « \lambda_2 » for example. I have no idea what’s is going on. here is a minimal example where Hans’s code is before the \starttext:

--------------020209060802020604070409-- --===============6175219690459965584== 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 --===============6175219690459965584==--