From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81907 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: halign broken Date: Thu, 18 Apr 2013 13:26:34 +0000 Message-ID: <19B63CC8-59B7-4873-A45D-1BC9091F4A4B@uva.nl> References: <83C96EE8-3446-4EF9-93C2-C399280C5622@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0300903269==" X-Trace: ger.gmane.org 1366291607 12111 80.91.229.3 (18 Apr 2013 13:26:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Apr 2013 13:26:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 18 15:26:51 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1USorT-0002pi-FA for gctc-ntg-context-518@m.gmane.org; Thu, 18 Apr 2013 15:26:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC07B101E9; Thu, 18 Apr 2013 15:26:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gI6q2K6RzKTw; Thu, 18 Apr 2013 15:26:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A2114101E6; Thu, 18 Apr 2013 15:26:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E99F101E6 for ; Thu, 18 Apr 2013 15:26:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BiSCLyIGQAF4 for ; Thu, 18 Apr 2013 15:26:42 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id A7FF3101E4 for ; Thu, 18 Apr 2013 15:26:42 +0200 (CEST) Original-Received: from HUB02.uva.nl (hub02.uva.nl [146.50.108.231]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3IDQZUC023191 for ; Thu, 18 Apr 2013 15:26:41 +0200 Original-Received: from MBX02.uva.nl ([169.254.2.121]) by HUB02.uva.nl ([2002:9232:6ce7::9232:6ce7]) with mapi id 14.02.0342.003; Thu, 18 Apr 2013 15:26:34 +0200 Thread-Topic: [NTG-context] halign broken Thread-Index: AQHOPDQM5s/P2pLq5kGBzuVxQW7HEA== In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.231; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJppqzj1 - 84f7231ad7d4 - 20130418 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81907 Archived-At: --===============0300903269== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_19B63CC859B74873A45D1BC9091F4A4Buvanl_" --_000_19B63CC859B74873A45D1BC9091F4A4Buvanl_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable There seems to be more to it: This works: \unprotect\halign{\hfil\it#\hfil&\hfil#\hfil&#&\hfil#\hfil\cr A&B&C&D\cr A&BB&CCCC&DDDDDDDD\cr}\protect But these generate a missing } after the \halign: \unprotect\framed{\halign{\hfil\it#\hfil&\hfil#\hfil&#&\hfil#\hfil\cr A&B&C&D\cr A&BB&CCCC&DDDDDDDD\cr}}\protect \framed{\unprotect\halign{\hfil\it#\hfil&\hfil#\hfil&#&\hfil#\hfil\cr A&B&C&D\cr A&BB&CCCC&DDDDDDDD\cr}\protect} Is such a construction (now) impossible? Hans van der Meer On 18 Apr 2013, at 3:03 PM, Wolfgang Schuster > wrote: Am 18.04.2013 um 14:55 schrieb "Meer, H. van der" >: There seems something very much amiss with \halign in later ConTeXt version= s. This typesets fine in PlainTeX and is an example taken from a textbook. \tabskip=3D1em\halign{% \hfil\it#\hfil&\hfil#\hfil&#&\hfil#\crA&B&C&D\cr} Also in contextversion 2012.05.30 (from a TeXlive distribution). But it fails at least in ConTeXt ver: 2013.03.20 10:34 MKIV and in ConTeXt ver: 2013.04.16 12:08 MKIV beta with the following error ! Only one # is allowed per tab. system > tex > error on line 5 in file fixedwidth.tex: Only one # = is allowed per tab ... 1 \starttext 2 contextversion=3D\contextversion\par 3 \tabskip=3D1em 4 \halign{% 5 >> \hfil\it#\hfil&\hfil#\hfil&#&\hfil#\cr 6 A&B&C&D\cr} 7 \stoptext l.5 \hfil\it#\hfil&\hfil# \hfil&#&\hfil#\cr Why? How primitive it may be, I would like to use \halign now and then. The error message is misleading because the problem is & and not #. One of the changes for MkIV was to make _, ^ and & normal characters in the document (the first two still works for math). For code writing this doesn=92t matter because & has it=92s normal meaning when you use \unprotect =85 \protect but it can=92t be used in the document. Wolfgang --_000_19B63CC859B74873A45D1BC9091F4A4Buvanl_ Content-Type: text/html; charset="Windows-1252" Content-ID: <01D46E44491F5B4EB3F23D6514692239@uva.nl> Content-Transfer-Encoding: quoted-printable There seems to be more to it:

This works:
\unprotect\halign{\hfil\it#\hfil&\hfil#\hfil&#&\hfil#\hfil= \cr 
A&B&C&D\cr A&BB&CCCC&DDDDDDDD\cr}\protect

But these generate a missing } after the \halign:
\unprotect\framed{\halign{\hfil\it#\hfil&\hfil#\hfil&#&\hf= il#\hfil\cr 
A&B&C&D\cr A&BB&CCCC&DDDDDDDD\cr}}\protect

\framed{\unprotect\halign{\hfil\it#\hfil&\hfil#\hfil&#&\hf= il#\hfil\cr 
A&B&C&D\cr A&BB&CCCC&DDDDDDDD\cr}\protect}

Is such a construction (now) impossible?

Hans van der Meer



On 18 Apr 2013, at 3:03 PM, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:


Am 18.04.2013 um 14:55 schrieb "Meer, H. van der" <H.vanderMeer@uva.nl>:

There seems something very much amiss with \halign in later ConTeXt version= s.

This typesets fine in PlainTeX and is an example taken from a textbook= .

  \tabskip= =3D1em\halign{%
  \hfil\it#\= hfil&\hfil#\hfil&#&\hfil#\crA&B&C&D\cr}

Also in contextversion 2012.05.30 (from = a TeXlive distribution).

But it fails at least in ConTeXt  ver: 2013.03.= 20 10:34 MKIV
and in ConTeXt  ver: 2013.04.= 16 12:08 MKIV beta
with the following error

! Only o= ne # is allowed per tab.
system&n= bsp;         > tex > error on line 5 in file fixe= dwidth.tex: Only one # is allowed per tab ...

 1 =     \starttext
 2 =     contextversion=3D\contextversion\par
 3 =     \tabskip=3D1em
 4 =     \halign{%
 5 = >>  \hfil\it#\hfil&\hfil#\hfil&#&\hfil#\cr
 6 =     A&B&C&D\cr}
 7 =     \stoptext
l.5 \hfi= l\it#\hfil&\hfil#
 &n= bsp;                     = \hfil&#&\hfil#\cr

Why? How primitive it may be, I would li= ke to use \halign now and then.

The error message is misleading because the problem is & and not #= .

One of the changes for MkIV was to make _, ^ and & normal characte= rs
in the document (the first two still works for math). For code writing= this
doesn=92t matter because & has it=92s normal meaning when you use<= /div>
\unprotect =85 \protect but it can=92t be used in the document.

Wolfgang


--_000_19B63CC859B74873A45D1BC9091F4A4Buvanl_-- --===============0300903269== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0300903269==--