From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74156 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Canonical way to escape the square brackets? Date: Sat, 28 Jan 2012 18:22:04 +0100 Message-ID: <0CA80642-25CF-4363-9154-88BE60C3B267@googlemail.com> References: <87fwez4yxz.fsf@universe.krase.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327771344 8452 80.91.229.3 (28 Jan 2012 17:22:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2012 17:22:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 28 18:22:23 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 1RrByn-0002Qe-7r for gctc-ntg-context-518@m.gmane.org; Sat, 28 Jan 2012 18:22:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55E16CB21A; Sat, 28 Jan 2012 18:22:20 +0100 (CET) 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 LyJnmRgvlVcn; Sat, 28 Jan 2012 18:22:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D48EDCB20E; Sat, 28 Jan 2012 18:22:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6279FCB20E for ; Sat, 28 Jan 2012 18:22:15 +0100 (CET) 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 gZG0lgbBr7L9 for ; Sat, 28 Jan 2012 18:22:13 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 939ECCB20D for ; Sat, 28 Jan 2012 18:22:13 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0SHM8Zs011604 for ; Sat, 28 Jan 2012 18:22:13 +0100 Original-Received: by eekc13 with SMTP id c13so1083861eek.14 for ; Sat, 28 Jan 2012 09:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=qGCtuDBpno80OUrbJ/pmwm0MLyAHfW7eu26aQamV0ig=; b=dNZxz/NuF4u9eE1VgbAerszkOqdlRnxXgkSE3NXoupzUjcdG63Iy0h5DmRTCO7VeiU P+mqTTZDdAonBInsFURv3U15s74GfAx0EKKYSWo2L90Gp3NHGZmpDiCWucpNV+65Bbbk NEG/fGXdCuAmrR0sjR02W5okW+W+HRqeYk+Co= Original-Received: by 10.14.16.215 with SMTP id h63mr3751905eeh.3.1327771328724; Sat, 28 Jan 2012 09:22:08 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFA136.dip.t-dialin.net. [87.175.161.54]) by mx.google.com with ESMTPS id s16sm46331681eef.2.2012.01.28.09.22.06 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 Jan 2012 09:22:07 -0800 (PST) In-Reply-To: <87fwez4yxz.fsf@universe.krase.net> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.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: 0dGr5m8Hg - 70587baf8312 - 20120128 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74156 Archived-At: Am 28.01.2012 um 16:41 schrieb Marco Pessotto: > = > Dear list, > = > I swear I searched the internet, but I guess the terms are too generic. > The question is: is there a safe way to escape the square brackets, > preventing them to be eaten by the previous command? For example: > = > \item [this should be in brackets] > = > My solution is: > = > \define\leftsquarebracket{[} > \define\rightsquarebracket{]} > = > \item \leftsquarebracket this should be in brackets\rightsquarebracket > = > I'm pretty sure there is already a built-in command for them, so I'm > asking the list. No, there isn=92t but you can stop ConTeXt to look for a optional with a \r= elax after the command , e.g. \item\relax. 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 ___________________________________________________________________________= ________