I'm copy-editing a rather lengthy set theory book. One thing I'd like to check systematically is whether all left-right unambiguous delimiters (parentheses brackets curly, square and angle) are balanced.
I could write a Perl script to check for this, but was thinking that there might already be a LaTeX package which warns you about unbalanced delimiters. Is there such a thing?
Best Answer
You might have a look at match_parens. This Ruby script helps in in balancing parentheses, braces, brackets - the characters
{}[]()<>
are supported.It's written for source file checking, but perhaps it may help you also in checking output (perhaps after conversion to text) or in writing your own tool.