0

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:

enter image description here

How can I ensure that the parentheses are centered according to the entire fraction?

Bernard
  • 271,350

1 Answers1

1

There's no mathematical or typographic reason for enclosing the entire \frac expression in a pair of tall parentheses. If they're needed at all, they should enclose just the numerator term -- see the middle formula in the following screenshot. That said, this \frac formula really doesn't need parentheses at all -- see the formula on the right.

enter image description here

\documentclass{article}
\usepackage{mathtools} % for '\splitfrac{...}{...}' macro
\begin{document}
\[
\left(\frac{\splitfrac{a+b}{c+d}}{f}\right) \quad
\frac{\left(\splitfrac{a+b}{c+d}\right)}{f} \quad
\frac{\splitfrac{a+b}{c+d}}{f}
\]
\end{document}
Mico
  • 506,678
  • I agree that it is not needed for my mwe. However, in my project I am using it for a logical expression that I find far too complicated to explain my issue here, in which it is really needed.

    In any case, my problem was solved with pmatrix.

    – rvdaele Sep 27 '21 at 11:17