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

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