From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77164 Path: news.gmane.org!not-for-mail From: "Rogers, Michael K" Newsgroups: gmane.comp.tex.context Subject: Re: clutter with \start and \stop Date: Wed, 4 Jul 2012 22:44:15 +0000 Message-ID: <16AB29D5-539E-4639-A2F9-631D9FBDBB1E@emory.edu> References: <87fw98e9wl.fsf@micropit.couberia.bzh> <4FF3F9A5.2070107@wxs.nl> <87wr2jclse.fsf@micropit.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1341441873 28083 80.91.229.3 (4 Jul 2012 22:44:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2012 22:44:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 05 00:44:33 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 1SmYJ9-0003UE-Qf for gctc-ntg-context-518@m.gmane.org; Thu, 05 Jul 2012 00:44:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 959D910202; Thu, 5 Jul 2012 00:44:26 +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 p00qTeNCr069; Thu, 5 Jul 2012 00:44:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7677B101F1; Thu, 5 Jul 2012 00:44:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51267101F1 for ; Thu, 5 Jul 2012 00:44:23 +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 61SPhiIJOSaG for ; Thu, 5 Jul 2012 00:44:20 +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 47E10101DF for ; Thu, 5 Jul 2012 00:44:20 +0200 (CEST) Original-Received: from ws-mr3.cc.emory.edu (ws-mr3.cc.emory.edu [170.140.50.233]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q64MiHrl017934 for ; Thu, 5 Jul 2012 00:44:18 +0200 Original-Received: from e14edge1n.Emory.Edu (emoryfloatdmz.cc.emory.edu [170.140.52.254]) by ws-mr3.cc.emory.edu (8.13.8/8.13.8) with ESMTP id q64MiGwl001271 for ; Wed, 4 Jul 2012 18:44:16 -0400 Original-Received: from E14CH2W.Enterprise.emory.net (10.240.10.114) by e14edge1n.Emory.Edu (170.140.52.18) with Microsoft SMTP Server (TLS) id 14.2.283.3; Wed, 4 Jul 2012 18:44:16 -0400 Original-Received: from E14MBX23N.Enterprise.emory.net ([fe80::b473:ef05:b37f:5ccd]) by e14ch2w.Enterprise.emory.net ([::1]) with mapi id 14.02.0283.003; Wed, 4 Jul 2012 18:44:16 -0400 Thread-Topic: [NTG-context] clutter with \start and \stop Thread-Index: AQHNWW57f3cxxu/woUugvdxeMeTh1JcZCCyAgACMuemAAGhdgA== In-Reply-To: <87wr2jclse.fsf@micropit.couberia.bzh> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [170.140.30.131] Content-ID: <89E5E520F547AA4FBFB4C08E473FEBA9@Enterprise.emory.net> X-Emory-MailScanner-Information: Please contact the ISP for more information X-Emory-MailScanner-ID: q64MiGwl001271 X-Emory-MailScanner: Found to be clean X-Emory-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.01, required 8, autolearn=disabled, T_RP_MATCHES_RCVD -0.01) X-Emory-MailScanner-From: mroge02@emory.edu X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=170.140.50.233; country=US; region=GA; city=Atlanta; postalcode=30322; latitude=33.7952; longitude=-84.3248; metrocode=524; areacode=404; http://maps.google.com/maps?q=33.7952,-84.3248&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QHumIiV3 - 9c1548dfefd1 - 20120705 (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.13 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:77164 Archived-At: On Jul 4, 2012, at 1:29 PM, Peter M=FCnster wrote: > On Wed, Jul 04 2012, Hans Hagen wrote: > >> no, mixing this way is asking for troubles, if not now, than maybe in the >> future >> >> just use \section > > Yes, but isn't \startsection the recommended method for the future and > needed for XML output? XML documents should form a tree, so a structure like \startA % \startB % \stopA % \stopB % won't translate to XML. Grouping in TeX follows the same restrictions, and \start... and \stop... b= ehave like \begingroup and \endgroup. The \stop... is supposed to restore = the state before the corresponding \start... (at least I assume so -- \endg= roup works that way). One cannot stop A in the middle of B and return to t= he state before \startA without also stopping B. So one should put \stopB = before \stopA, not after it. Have you considered structuring your example like this?: \starttext \startsection[title=3DTufte] \startcolumns[n=3D2] \input tufte \stopcolumns \stopsection \startsection[title=3DTufte and Knuth] \startcolumns[n=3D2] \switchtobodyfont[big] % Note that the font size is switched back after \st= opcolumns \input tufte \stopcolumns \input knuth \startcolumns[n=3D2] \input tufte \stopcolumns \stopsection \stoptext XML seems a nice way for machines to deal with data. But it's not a very h= uman way to speak. I mean, if I write "\section{One}...\section{Two}" isn'= t it obvious that section One ends when section Two begins? Why should I h= ave to write \endsection, when the machine can do the bookkeeping for me? = The start/stop mechanism is nice as an option, if you plan to produce an XM= L document from ConTeXt. However the XML translator could implement 'if no= t first section then "
" else "
"' and add "if in= _a_section then "
"' when \stoptext is reached. ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________