\left and \right are convenient but sometimes they're a bit overeager in stretching the parentheses. In that case we can manually use \bigl, \Bigl, etc.
I have defined a new command like this
\newcommand{\avg}[1]{\ensuremath{\left\langle #1 \right\ranlge}}
I would like this command to have automatic stretching, but I don't want this mechanism to kick in too early. With this definition, \avg{x^2} already has bigger brackets than \avg{x}. I would prefer not to use stretching at this level at all. I would, however, like it to use stretching for \avg{\frac{x}{2}} in display mode. Something like this would be nice: 1. don't stretch at all in inline math 2. do stretch as normal above a certain size threshold in display math, but not below this threshold.
Is there an easy way to implement this? Perhaps it's less trouble to use \left\langle ... \right\rangle manually when I really need stretching.


\leftand\right? – Werner May 13 '13 at 04:54\biglet al in the question. This question is about how to set a size threshold for automatic resizing below which brackets are not resized at all. – Szabolcs May 13 '13 at 05:44