From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77334 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: ## not permitted in the presence of &. Date: Sat, 14 Jul 2012 17:39:12 +0200 Message-ID: <5CA7BE20-8BBC-4BCC-8CAA-B00431A182B2@gmail.com> References: <87boji4bee.fsf@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1342280365 9577 80.91.229.3 (14 Jul 2012 15:39:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2012 15:39:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 14 17:39:25 2012 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 1Sq4RH-0003GP-9M for gctc-ntg-context-518@m.gmane.org; Sat, 14 Jul 2012 17:39:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 36771101FB; Sat, 14 Jul 2012 17:39:22 +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 KSj1zCJ91Wfz; Sat, 14 Jul 2012 17:39:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A96D101E7; Sat, 14 Jul 2012 17:39:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 80036101E7 for ; Sat, 14 Jul 2012 17:39:18 +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 h2sHIIAkBJkX for ; Sat, 14 Jul 2012 17:39:17 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 7B47F101E5 for ; Sat, 14 Jul 2012 17:39:17 +0200 (CEST) Original-Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6EFaor1011598 for ; Sat, 14 Jul 2012 17:36:51 +0200 Original-Received: by wgbds1 with SMTP id ds1so1350840wgb.2 for ; Sat, 14 Jul 2012 08:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=DbRgbBXOZekE+//xY3iyQRg0jVJHDnJCDbE6VZiNJUo=; b=C/JHvW1gM6V1TEv7A095nXZaCH/CruKYoZQXRt7ru9Yqsk05REaTwpOpGIcfbjMSYC 5iW09w6jkNtHr4tFR2G19wHZAz97tXABWq4JjDTRcwUffIDSHjqc04xzeXgt4wgdGSKp 2lqS6A9/9zoCAmfCC2o9tLZQ17ttH2gyaJKBBZfvcET14w5SVXVOGJHoejLfzW0yR0SG ViKek5Yh+DHrnVk8m2Hn4xQFyRr8PEiAPSVniXr7ADcY70oz3F3EvbO8OrFFdH1i1scb 0t/GdQsqhB+UPlxeXpVqtB+yfZXljLR8PUdyfpOqII95PTngt12eLxs/pcDEwscDmJ9I AJ/w== Original-Received: by 10.180.105.6 with SMTP id gi6mr6114925wib.4.1342280355563; Sat, 14 Jul 2012 08:39:15 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AF98E6.dip.t-dialin.net. [87.175.152.230]) by mx.google.com with ESMTPS id ef5sm15088130wib.3.2012.07.14.08.39.13 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 Jul 2012 08:39:14 -0700 (PDT) In-Reply-To: <87boji4bee.fsf@gmail.com> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WHyfAOoR - 08308f79df47 - 20120714 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:77334 Archived-At: Am 14.07.2012 um 17:20 schrieb Eythan Weg: > Hi, > = > I run into trouble with mkiv (ConTeXt ver: = > 2012.05.30 11:26 MKIV fmt: 2012.7.7 int: > english/english). > = > A small example: > \starttext > \def\c#1#2{\halign{##\hfil&##\cr\bf#1&\quad#2\cr}} > \c{11}{this} > \stoptext = > = > gives and error: = > = > ! Only one # is allowed per tab. > = > This runs error-free under mkii (pdftex, xetex), plain tex > (luatex, xetex), latex (luatex) etc. > = > Would someone comment? = The error message is not very helpful in this case because the & is the pro= blem. In MkIV we made a while ago _, ^ and & normal characters in the text and you don=92t have to write \_ (or \textunderscore) etc. to use them. A side effe= ct of this was that \halign can=92t be used anymore in a document (which isn=92t recom= mended anyway because ConTeXt has other high level table interfaces), when you now want to use \halign to create a command put it in a \unprotect =85 \protect= block or use the \aligntab (it=92s a LuaTeX primitive with the same meaning as &). \unprotect \def\one#1#2{\halign{##\hfil&##\cr\bf#1&\quad#2\cr}} \protect \def\two#1#2{\halign{##\hfil\aligntab##\cr\bf#1\aligntab\quad#2\cr}} \starttext \one{underscore}{_} \two{ampersand}{&} \stoptext BTW: \c is already defined as a accent macro. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________