[Tex/LaTex] How to adjust brace size for nested braces

bracesnesting

How can I adjust the size of the outer braces to make the following equation neater?

\documentclass[a4paper]{scrreprt}
\usepackage{amsmath}
\begin{document}
\[
    M = \left\{ x \in X :
        \begin{cases} p(x) > 0 \\ q(x) > 0 \end{cases}
    \right\}
\]
\end{document}

enter image description here

Best Answer

enter image description here

\documentclass{article}

\usepackage{amsmath}

\setlength\delimitershortfall{0pt}
\begin{document}

\[
    M = \left\{ x \in X :
        \begin{cases} p(x) > 0 \\ q(x) > 0 \end{cases}
    \right\}
\]

\end{document}

As shown that is a global setting, it can be set locally within a single expression (or a single {} group) if needed. Also you can experiment with different lengths 5pt is the default.