I've got a few lines of calculation that involve large fractions and it is looking horrible on Latex. Does anyone have any suggestions as to how to make the fractions bigger with more space so that they are more readable?
Here is my code
This function is well defined as the definitions agree on the coordinate overlap. Indeed
\begin{align*}
\frac{\Re(u'')}{(1+\| u'' \|^2)^{\nicefrac{1}{2}}} &= \frac{\Re(\frac{u}{\|u\|^2}(\frac{u^hvu^j}{\|u\|})^{-1})}{(1+\| \frac{u}{\| u \|^2}(\frac{u^hvu^j}{\|u\|})^{-1} \|^2)^{\nicefrac{1}{2}}} \\
&= \frac{\Re(u^{1-j} v^{-1} u^{-h})}{\|u\|(1+\frac{1}{\|u\|^2} \| u^{1-j}v^{-1}u^{-h} \|^2)^{\nicefrac{1}{2}}} \\
&= \frac{\Re(u^{1-j} v^{-1} u^h)}{(1+\|u\|^2)^{\nicefrac{1}{2}}} \quad \text{since} \hskip2pt v \hskip2pt \text{is a unit quaternion and since} \hskip2pt j+h=1 \\
&=\frac{\Re(v)}{(1+\| u \|^2)^{\nicefrac{1}{2}}} \quad \text{since} \hskip2pt \Re(ab)=\Re(ba) \hskip2pt \text{and since} \hskip2pt \Re(v^{-1}) = \Re(v) \hskip2pt \text{since} \hskip2pt v \hskip2pt \text{is a unit quaternion} \\
\end{align*}
And here is what it looks like
Also if anyone can advise on how to nicely structure the two comments beside the last two lines that would also be greatly appreciated. Thanks 🙂
Best Answer
Here is a solution with
alignat
and medium-sized fractions fromnccmath
. I replaced all occurrences of pairs of\| … \|
with a command norm that can adjust the size of the delimiters, borrowed frommathtools
. The placement of the comments is adjusted through the use ofrlap
and\mathrlap
: