From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30221 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: the closing bracket (structuring syntax) Date: Thu, 10 Aug 2006 16:47:34 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155242869 9321 80.91.229.2 (10 Aug 2006 20:47:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2006 20:47:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 10 22:47:48 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GBHRU-0006ic-Aj for gctc-ntg-context-518@m.gmane.org; Thu, 10 Aug 2006 22:47:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 611681FF0A; Thu, 10 Aug 2006 22:47:47 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29154-01-3; Thu, 10 Aug 2006 22:47:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 054261FEFE; Thu, 10 Aug 2006 22:47:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C41251FEFE for ; Thu, 10 Aug 2006 22:47:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29154-01-2 for ; Thu, 10 Aug 2006 22:47:39 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id EEACB1FEF8 for ; Thu, 10 Aug 2006 22:47:38 +0200 (CEST) Original-Received: FROM eecs4327u10.engin.umich.edu (eecs4327u10.engin.umich.edu [141.213.51.138]) BY hackers.mr.itd.umich.edu ID 44DB9B67.E5FD2.18278 ; 10 Aug 2006 16:47:37 -0400 X-X-Sender: adityam@eecs4327u10.engin.umich.edu Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30221 Archived-At: On Thu, 10 Aug 2006, Steffen Wolfrum wrote: > Hi, > > in XML and alike there is a concept of dedicated start/stop in > formatting: > > ... > ... > ... > > But in ConTeXt/TeX we have always the same closing syntax "}". That > makes reading the code not easier. You can always define your own startstop. \definestartstop[italic][before={\bgroup \it},after={\egroup}] and then do \startitalic This is italic \stopitalic When a command takes an optional agrument, you can do use something like this \def\startfootnote% {\unskip\dosingleempty\dostartfootnote} \def\dostartfootnote[#1]#2\stopfootnote% {\footnote[#1]{#2}} You can make such definitions of all your frequently used environments (or, if you prefer, write in XML and let ConTeXt handle XML). > Is there a workaround to define the closing more precisely (like the > examples above), > so that finding a "}" in a ConTeXt source lets me distinguish what > it's about? There are \bgroup...\egroup which is same as {...} for all practical purposes. Aditya