Re: [NTG-context] structure sanity checks
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 ___
Re: [NTG-context] structure sanity checks
On Wed, Oct 13, 2010 at 2:29 PM, Alan BRASLAU 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 ___
[NTG-context] structure sanity checks
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 ___