In this
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\[
\dfrac{\dfrac{a}{b}}{\dfrac{c}{d}}
\]
\[
\dfrac{\dfrac{5}{12}}{\dfrac{6}{15}}
\]
\end{document}
the fractions look very ugly, because the variables are too close to the middle fraction line. With only \frac{}{}
and with numbers it looks even worse. I tried to fix it with a \raisebox
but LaTeX complained (I guess it doesn't like \raisebox
es in math mode).
How can I add some space between the variables and the fraction lines?
And, while we are here, is there a way to make the middle fraction line a little longer, so that it's more obvious that it's a fraction with fractions above and below?
\frac
the inner fractions would be naturally smaller, you are forcing them all to use display style with\dfrac
\frac
, then the fractions above and below look too small and they don't fit with the rest of the document (which I stripped out in order to make it a MWE).