From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: clutter with \start and \stop
Date: Thu, 5 Jul 2012 07:56:07 +0200 [thread overview]
Message-ID: <CAG5iGsAQ5Cq2prqBCzevEquYmHwKR_h-G283TVOw_vj3zuNR2A@mail.gmail.com> (raw)
In-Reply-To: <16AB29D5-539E-4639-A2F9-631D9FBDBB1E@emory.edu>
[-- Attachment #1.1: Type: text/plain, Size: 1263 bytes --]
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. 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 "</section><section>" else "<section>"' and add
> "if in_a_section then "</section>"' 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
[-- Attachment #1.2: Type: text/html, Size: 1839 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-07-05 5:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 22:51 Peter Münster
2012-07-04 8:07 ` Hans Hagen
2012-07-04 20:29 ` Peter Münster
2012-07-04 21:49 ` Hans Hagen
2012-07-04 22:44 ` Rogers, Michael K
2012-07-05 4:42 ` Peter Münster
2012-07-05 5:42 ` Rogers, Michael K
2012-07-05 5:56 ` luigi scarso [this message]
2012-07-05 7:16 ` Rogers, Michael K
2012-07-05 8:23 ` luigi scarso
2012-07-05 13:40 ` Rogers, Michael K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAG5iGsAQ5Cq2prqBCzevEquYmHwKR_h-G283TVOw_vj3zuNR2A@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).