ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* structure sanity checks
@ 2010-10-13 12:29 Alan BRASLAU
  2010-10-13 12:39 ` luigi scarso
  2010-10-14 13:57 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: Alan BRASLAU @ 2010-10-13 12:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Using \startchapter\stopchapter or \startitem\stopitem could present
some logical advantage over the use of \chapter or \item, for example.
However, it would be useful to have some sort of sanity check
giving warnings at least if the \start\stop symmetry is violated.
As a minimal example, the following simple case of one logical error
leads to an undesired result. Of course, you get what you asked,
but some sort of warning could be useful. Or, rather, is the general
philosophy to silently pass over such errors so as not to load down
the log in the face of such user errors?

Indeed, under ConTeXt, unknown or incorrect arguments are simply ignored.

(in other cases, for example forgetting \stoptext, ConTeXt protests vocally)

Alan


\starttext

\startitemize [n]

\startitem
first
\startitem

\startitem
second
\stopitem

\stopitemize

\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: structure sanity checks
  2010-10-13 12:29 structure sanity checks Alan BRASLAU
@ 2010-10-13 12:39 ` luigi scarso
  2010-10-14 13:57 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: luigi scarso @ 2010-10-13 12:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Oct 13, 2010 at 2:29 PM, Alan BRASLAU <alan.braslau@cea.fr> wrote:
> Using \startchapter\stopchapter or \startitem\stopitem could present
> some logical advantage over the use of \chapter or \item, for example.
> However, it would be useful to have some sort of sanity check
> giving warnings at least if the \start\stop symmetry is violated.
> As a minimal example, the following simple case of one logical error
> leads to an undesired result. Of course, you get what you asked,
> but some sort of warning could be useful. Or, rather, is the general
> philosophy to silently pass over such errors so as not to load down
> the log in the face of such user errors?
>
> Indeed, under ConTeXt, unknown or incorrect arguments are simply ignored.
>
> (in other cases, for example forgetting \stoptext, ConTeXt protests vocally)
maybe enable xml export  and check it  with xmllint
\setubackend[export=yes]
see back-exp.mkiv

-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: structure sanity checks
  2010-10-13 12:29 structure sanity checks Alan BRASLAU
  2010-10-13 12:39 ` luigi scarso
@ 2010-10-14 13:57 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2010-10-14 13:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 13-10-2010 2:29, Alan BRASLAU wrote:

> Indeed, under ConTeXt, unknown or incorrect arguments are simply ignored.

maybe some day ...


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-14 13:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 12:29 structure sanity checks Alan BRASLAU
2010-10-13 12:39 ` luigi scarso
2010-10-14 13:57 ` Hans Hagen

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).