Hi Keita,

Ikumi Keita <ik...@ikumi.que.jp> writes:

>>>>>> Arash Esbati <ar...@gnu.org> writes:
>> Can we use the same trick we use for the fontification of $, i.e., put a
>> closing ] as a comment in the same line?
>
> That didn't work as expected. :-( It seems that indentation command is
> smart enough to ignore "]" in comments.

Dammit, smart code 😉

> That can be an option. I think there are 3 (or more?) candidates:
> 1. New minor mode.
> 2. New user option.
> 3. Leave it as is.
>
> What do others think?

When in doubt, 3. is always a good choice.  But would it make sense to
have a user option and the actual code ignores that in math-mode and
only kicks in within regular text?  With that, one could define 2 macros
like this:

\DeclareTextSymbol{\textbracketleft}{T1}{`\[}
\DeclareTextSymbol{\textbracketright}{T1}{`\]}

and use them for unbalanced brackets.  WDYT?

Best, Arash

Reply via email to