I'm looking for an automatic fence-resizing macro like the traditional
\right, but I need some more features (not to mention
\right are quite "buggy" and poorly spaced as the consensus seems to be). In particular, I would like the ability to
- exclude certain parts of the formulas from being counted (typically sub/superscripts) and
- to break a fenced section across a linebreak while ensuring the sizes remain the same
I noticed that the
nath package provides the features but it dramatically changes the rest of the math syntax in ways that are incompatible with "standard" LaTeX, which means they are prone to breakage when other packages are used.
Does anyone have a more lightweight solution to this problem?