[Tex/LaTex] \middle too big

amsmathequationsmath-mode

I'm trying to typeset an equation that contains a "|":

\begin{align*}
\lambda_{l} = \lim_{q \to 0^{+}}P\left(X_{2} \leq F_{2}^{(-1)}(q) \middle|  X_{1} \leq F_{1}^{(-1)}(q) \right) 
\end{align*}

which gives me enter image description here

The "|" seems to be too long. I've tried \midbut that makes the vertical bar too short in relation to the outer left and right brackets. Is there a way I can get the "right" size "|" automatically?

Thanks!

Best Answer

I'd argue that not only the middle vertical bar but also the outer parentheses are unnecessarily large. Try using \bigl(, \bigm|, and \bigr) to control the size of the symbols. As an extra nice touch, you could add a thinspace on either side of the big parentheses.

enter image description here

\documentclass{article}
\usepackage[bitstream-charter]{mathdesign}
\begin{document}
\[
\lambda_{l} = \lim_{q \to 0^{+}}P\bigl(\, X_{2} \leq F_{2}^{(-1)}(q) \bigm|  
    X_{1} \leq F_{1}^{(-1)}(q) \,\bigr) 
\]
\end{document}