What do I want?:
I want bigger spacing between my denominator and the horisontal line from the fraction.
I saw this question which talks about it, but not within the align or alignat environment. too little space between the bar on the denominator and the horizontal line
Others:
I use this command to make my fractions bigger and thereby more visible:
\newcommand\ddfrac[2]{\frac{\displaystyle #1}{\displaystyle #2}}
That is a solution from this question: Fractions with large elements
But now I got this with RZ_L
very close to the main fraction line:
Code:
\begin{alignat}{1}
= \ddfrac{Z_C}{Z_C+\frac{RZ_L}{R+Z_L}}
\end{alignat}
The code is just a portion of my whole alignat environment, but this is the important part.
NOTE:
The solution including the usage of /mathstrut
is more general than just within the alignat environment, it also works within /[ code /]
.
The usage of /ddfrac
is in this case not essential, instead it is possible to use /frac
on the main fraction and /dfrac
on the fraction that is too close to the horizontal line.
\ddfrac
command, which is completely useless; there is already\dfrac
. Add\mathstrut
to the numerator. – egreg Oct 25 '16 at 23:23\mathstrut
to work here. I might interpret it wrong into the code. – Robin Hellmers Oct 25 '16 at 23:55\ddfrac{\frac{a}{b}}{\frac{c}{d}}
and\ddfrac{\frac{\mathstrut a}{\mathstrut b}}{\frac{\mathstrut c}{\mathstrut d}}
. Edit: And, yes, you are right,\ddfrac
is not the same as\dfrac
. :-) – GuM Oct 25 '16 at 23:56\mathstrut
is actually needed, because the answer might depend on the circumstances. In your case, you should use it in the “numerator of the denominator”; in other cases you might needed in the “denominator of the numerator”; in still other cases you might need it in both; and so on. – GuM Oct 26 '16 at 0:02