Im using the code as shown below to write a step by step for a question but when i have a fraction in another fraction it becomes small and hard to read. i wish to make the faction inside the same size as the other and clear but not too crowded.
\begin{align*}
\frac{\sin(a+b)}{\cos(a+b)}&=\frac{\sin a \cos b + \cos a \sin b}{\cos a \cos b - \sin a \sin b}
\\
\tan(a+b)&=\frac{\sin a \cos b + \cos a \sin b}{\cos a \cos b - \sin a \sin b}
\\
&=\frac{\frac{\sin a \cos b}{\cos a \cos b} + \frac{\cos a \sin b}{\cos a \cos b}}{\frac{\cos a \cos b}{\cos a \cos b} - \frac{\sin a \sin b}{\cos a \cos b}}
\\
&=\frac{\frac{\sin a}{\cos a} + \frac{\sin b}{\cos b}}{1 - \frac{\sin a \sin b}{\cos a \cos b}}
\\
&=\frac{\tan a +\tan b }{1 - \tan a \tan b}
\end{align*}
Best Answer
You can use
\cfrac
for nested fractions. However this makes the ‘upper’ denominators too close from the main fraction line, so one can compensate adding a phantom letter with descenders. No compensation required for the ‘lower’ numerators if you use\cfrac
(not\dfrac
).Another possibility would use the
\mfrac
(medium-sized fraction – 80 % of \displaystyle) command fromnccmath
, so the smaller fractions are still readable. Here is an example of both methods: