From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106009 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: context@vivaldi.net Newsgroups: gmane.comp.tex.context Subject: Re: Check for parity of pair tags on source file to be closed Date: Fri, 10 Jan 2020 13:46:35 +0100 Message-ID: References: <83e080142ac64252ac7add7c81cebd02@vivaldi.net> Reply-To: mailing list for ConTeXt users Content-Type: multipart/mixed; boundary="=_a45c34d21a05eadceb735c16fc3a0647" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="108187"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Roundcube Webmail/1.3.9 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 10 13:48:36 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iptgz-000CR7-DR for gctc-ntg-context-518@m.gmane-mx.org; Fri, 10 Jan 2020 13:47:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B0505164AF1; Fri, 10 Jan 2020 13:46:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HFQN7uPRaZ-W; Fri, 10 Jan 2020 13:46:42 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DC906164B55; Fri, 10 Jan 2020 13:46:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7067A164B55 for ; Fri, 10 Jan 2020 13:46:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OvCdAAQfvq7h for ; Fri, 10 Jan 2020 13:46:39 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=82.221.130.149; helo=smtp.vivaldi.net; envelope-from=context@vivaldi.net; receiver= Original-Received: from smtp.vivaldi.net (smtp.vivaldi.net [82.221.130.149]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 713CE164AF1 for ; Fri, 10 Jan 2020 13:46:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by smtp.vivaldi.net (Postfix) with ESMTP id 11441417BC for ; Fri, 10 Jan 2020 12:46:38 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.vivaldi.net 11441417BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivaldi.net; s=mail; t=1578660398; bh=wGkdPF3f7MmTmJuu9WaOyYLtjVIadshz8U6H9NRwkF8=; h=Date:From:To:Subject:In-Reply-To:References:From; b=oLKGEchdKVJPKiFDsh06Lz+0lw41D7MB3oO/3P6eydD7eA6f3ZKPcnzzOPKwmijKf isXPMNbOA5Bi4rZRlWa8ogLQYnXO4wawzlcehAVH0wtgf/8EjjkTyAv3ql+B8CDCPs d5tjX/NKdvfHs1Nehac+pfPFMeoZ0kHlDkjNesgakrDUHCADIN7s9yjOroz0ZbbwQA wqvHtKybi1NZeYJBacEZJ2IeS3SJggTiIqPVzMUPRmyzQznKxcq0b9a8lz1cfp7l5E Mh535msye4k/m5/19TNyGPOOZuFEPX92ixzWJvT0m7274neunDwacvs7nI1NnptwVm SiacLs7dOlhlA== X-Virus-Scanned: Debian amavisd-new at smtp.vivaldi.net Original-Received: from smtp.vivaldi.net ([127.0.0.1]) by localhost (mxo-new.viv.ext [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 68aMMRbBmsnE for ; Fri, 10 Jan 2020 12:46:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.vivaldi.net 5737E3F9A5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivaldi.net; s=mail; t=1578660396; bh=wGkdPF3f7MmTmJuu9WaOyYLtjVIadshz8U6H9NRwkF8=; h=Date:From:To:Subject:In-Reply-To:References:From; b=wyb5RkBbv7u07DM2+OAJLjDbcI+Oxp7DIEag3yjAe/6BRrafk7pJ2gTw8J7O1LOpQ g9s8pToRP9Wxd7n2xe3fast7q4zcN2vJKObUZuaf9N6aCIa1NJssSFfJEqBBE6GA/M awiy5OxAjXqqTByUWn9IX6FS22F1WUcQFgn+eD9j7OSM/l9u9/8ThrQgCMLrcxjl6d 5MSc3W/2LJAKBWFezbOBlbsouCYPDPsL69L21TJWMGTJtOpJ9HMu5lEpI8/Vj7nmef YbYFzz4r8EYknPkVVLV2BSBwCYpxV7r5P4DEUUMVLlnKs9gj1llOsyOSd0YwctpYgI INGcHi5r+2gXA== In-Reply-To: X-Sender: context@vivaldi.net X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:106009 Archived-At: --=_a45c34d21a05eadceb735c16fc3a0647 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed 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 --=_a45c34d21a05eadceb735c16fc3a0647 Content-Transfer-Encoding: base64 Content-Type: text/plain; name=c.mkiv Content-Disposition: attachment; filename=c.mkiv; size=39 XHN0YXJ0dGV4dA0KICBcaWYrKw0KICAgIEMNClxzdG9wdGV4dA0K --=_a45c34d21a05eadceb735c16fc3a0647 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --=_a45c34d21a05eadceb735c16fc3a0647--