ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: context@vivaldi.net
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Check for parity of pair tags on source file to be closed
Date: Fri, 10 Jan 2020 13:46:35 +0100	[thread overview]
Message-ID: <b8b195885abce208181c0c32fe1984b9@vivaldi.net> (raw)
In-Reply-To: <f9e1c79a-2050-8cbe-3b62-0c0bd8253fe4@gmx.es>

[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]

Hello Pablo,

thanks for your suggestion.

The "check" detected "\startitemize" which stayed open on the end of the 
file, but did not detect "\if++" without correspondng "\fi".

Thanks again -

Lukas


On 2020-01-09 13:08, Pablo Rodriguez wrote:
> On 1/9/20 1:00 PM, context@vivaldi.net wrote:
>> Hello,
>> 
>> in most cases, when a source file is to be closed, pair elements 
>> (tags)
>> should balanced.
>> 
>> This concerns e.g. { - }, \bgroup - \egroup, \startitemize -
>> \stopitemize, \if - \fi etc.
>> 
>> When we have a complicated project structure and when compiling the
>> topmost (root) source, a log for a disbalanced tag may appear, but the
>> unbalanced tag however may be difficult to find.
>> 
>> Is there a way to enable "watching" pair tags (at least mentioned
>> before) in the way that their disbalance would be reported (logged)?
> 
> Hi Lukas,
> 
> maybe this helps you:
> 
>     mtxrunjit --autogenerate --script check file.tex
> 
> It only works with single files, since t doesn’t load other files (with
> \input).
> 
> But it might fit your needs.
> 
> Just in case it helps,
> 
> Pablo
> --
> http://www.ousia.tk

[-- Attachment #2: c.mkiv --]
[-- Type: text/plain, Size: 39 bytes --]

\starttext
  \if++
    C
\stoptext

[-- Attachment #3: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-01-10 12:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 12:00 context
2020-01-09 12:08 ` Pablo Rodriguez
2020-01-10 12:46   ` context [this message]
2020-01-10 20:32     ` Pablo Rodriguez
2020-01-11 21:47       ` Wolfgang Schuster

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=b8b195885abce208181c0c32fe1984b9@vivaldi.net \
    --to=context@vivaldi.net \
    --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).