From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77169 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: clutter with \start and \stop Date: Thu, 5 Jul 2012 07:56:07 +0200 Message-ID: References: <87fw98e9wl.fsf@micropit.couberia.bzh> <4FF3F9A5.2070107@wxs.nl> <87wr2jclse.fsf@micropit.couberia.bzh> <16AB29D5-539E-4639-A2F9-631D9FBDBB1E@emory.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0156075043==" X-Trace: dough.gmane.org 1341467795 23286 80.91.229.3 (5 Jul 2012 05:56:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2012 05:56:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 05 07:56:34 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 1Smf3A-0004xO-J8 for gctc-ntg-context-518@m.gmane.org; Thu, 05 Jul 2012 07:56:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AF7BC101FF; Thu, 5 Jul 2012 07:56: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 hzUy8MgbRSxd; Thu, 5 Jul 2012 07:56:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3ED5101F1; Thu, 5 Jul 2012 07:56:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CC4FA101F1 for ; Thu, 5 Jul 2012 07:56:20 +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 0yeo3WeIoj1k for ; Thu, 5 Jul 2012 07:56:19 +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 7417D101DF for ; Thu, 5 Jul 2012 07:56:19 +0200 (CEST) Original-Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q655u8Td013740 for ; Thu, 5 Jul 2012 07:56:14 +0200 Original-Received: by obhx4 with SMTP id x4so10481655obh.14 for ; Wed, 04 Jul 2012 22:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=W6lTIvGDj/Z5kykFrYmXIeS5XXr+cnpLLIz4Zputieg=; b=tjK3tmTy4wmKPdfhkzR5tDxwqrUL1N0Gjr1rBKzBR95xs7LQdjhvdmklE87hCvW15Y VRDXpr2eyLXDmY7g9wkP7kkUYo5TWIDxEN6d+4qCl15wWzVe2LC1QAnTUl0lgzyhRucP /5gfmQsaVGF9biuvaa0breWOZMgnvx8zYRB0JPsitwvksGCss/tJqV9RDm7z5LMDP8GS PhK0HHrBYLw99pc2bHyLa9e+xrjNy8WA0CYJ8EHQCqrnnuHWwD3z3ZuhMw8+++mQLjsn 9xYKO7rxNEglcecEJbO0ez8t5DQvZ3GyWmqvPi1x0c5k4IiqeL5n8IRcPRhNfD+PRdii p13w== Original-Received: by 10.182.86.225 with SMTP id s1mr16444642obz.73.1341467767994; Wed, 04 Jul 2012 22:56:07 -0700 (PDT) Original-Received: by 10.182.74.231 with HTTP; Wed, 4 Jul 2012 22:56:07 -0700 (PDT) In-Reply-To: <16AB29D5-539E-4639-A2F9-631D9FBDBB1E@emory.edu> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.169; 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: 0QHutU97O - c2013c096e20 - 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:77169 Archived-At: --===============0156075043== Content-Type: multipart/alternative; boundary=f46d0444e9d1c9f7b804c40ecdec --f46d0444e9d1c9f7b804c40ecdec Content-Type: text/plain; charset=UTF-8 On Thu, Jul 5, 2012 at 12:44 AM, Rogers, Michael K wrote: > > XML seems a nice way for machines to deal with data. But it's not a very > human 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 have 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 XML document from ConTeXt. However the XML translator could implement > 'if not first section then "
" else "
"' and add > "if in_a_section then "
"' when \stoptext is reached. > > Hm, consider this \section{One} \input knuth Text \section{Two} \input knuth and \startsection{One} \input knuth \stopsection Text \startsection{Two} \input knuth \stopsection In the last one it's clear that Text is not in the section One or in the section Two: In the first one, Text is in section One --- but how can I put Text so that is not in section One and not in section Two ? Most of the time section One ends where section Two begins, but it's not true that *always* section One ends where section Two begins : infact the last one is a legal example. -- luigi --f46d0444e9d1c9f7b804c40ecdec Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Jul 5, 2012 at 12:44 AM, Rogers,= Michael K <mroge02@emory.edu> wrote:

XML seems a nice way for machines to deal with data. =C2=A0But it's not= a very human way to speak. =C2=A0I mean, if I write "\section{One}...= \section{Two}" isn't it obvious that section One ends when section= Two begins? =C2=A0Why should I have to write \endsection, when the machine= can do the bookkeeping for me? =C2=A0The start/stop mechanism is nice as a= n option, if you plan to produce an XML document from ConTeXt. =C2=A0Howeve= r the XML translator could implement 'if not first section then "&= lt;/section><section>" else "<section>"' = and add "if in_a_section then "</section>"' when \= stoptext is reached.

Hm, consider this
\section{One}=C2=A0\input= knuth
Text
\section{Two}=C2=A0\input knuth
a= nd
\startsection{One}=C2=A0\input knuth
\stopsecti= on
Text
\startsection{Two}=C2=A0\input knuth
\stopse= ction

In the last one it's clear that Text is = not in the section One =C2=A0or in the section Two: In the first one, Text = is in section One --- =C2=A0but how can I put Text so that is not in sectio= n One and not in section Two ?
Most of the time section One =C2=A0ends where section Two begins, but = =C2=A0it's not=C2=A0true that *always*=C2=A0section One =C2=A0ends wher= e section Two begins : =C2=A0infact the last one is a legal example.
<= div>


--
luigi

--f46d0444e9d1c9f7b804c40ecdec-- --===============0156075043== 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 ___________________________________________________________________________________ --===============0156075043==--