When I'm writing maths in TeX, I often have to use the scaling delimiters \left(
and \right)
and so on. I find the heavy use of them very unreadable in the source code.
Is there any possibility that when I write in math mode (
that it will have the effect that \left(
normally has and the other way around? This way, the readablity of long or big formulae could be improved.
Here is a MWE:
\documentclass{article}
\begin{document}
$\displaystyle\left(\frac{t}{2}\right)$ for $t\in [0,1)$.
\end{document}
What I want is being able to write something like
\documentclass{article}
% Fancy code or package here
\begin{document}
$\displaystyle (\frac{t}{2})$ for $t\in \left[0,1\right)$.
\end{document}
and get the same output as above.
Non-matching delimiters like in the interval above are far more rare in mathematical texts, in my opinion. That is the reason I'd like to have this possibility.
Bonus question for the comments: Why is this a good/bad idea or how to circumvent this issue?
\left[0,1\right)
.$...$
) autoscaling often ends up disturbing the line height. In displayed math consider\left(\sum_{\substack{i,j\\i>j}} ... \right)
that is just way too large. In your example the[0,1)
should not be scaled at all. So there is no real overhead. In most of my edits manual scalling is used where it makes sense and more often than not\left...\right
is not used at all.