I am looking to create a fraction in which the numerator is split into two lines using the \splitfrac command. However, the denominator is short enough to not be split. All of this works well, except that the parentheses look really ugly as they are centered according to the horizontal line of the fraction instead of the entire fraction itself (for the MWE below it's doable but in the project I'm working on the formula is far more complex and the result looks horrible).
Example:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
$$
\left(\frac{\splitfrac{a+b}{c+d}}{f}\right)
$$
\end{document}
Result:
How can I ensure that the parentheses are centered according to the entire fraction?


$$...$$in latex, it does not comply to LaTeX configurations. (2) replace\left( ... \right)by\begin{pmatrix} ... \end{pmatrix}– daleif Sep 17 '21 at 10:22$$ ... $$in a LaTeX document to initiate and terminate displaymath mode. Use\[ ... \]instead. For a more in-depth discussion of this topic, please see the postings Why is\[ ... \]preferable to$$ ... $$? and What are the differences between$$,\[,align,equationanddisplaymath? – Mico Sep 17 '21 at 12:19