In the continued fraction for pi/2, the current LaTeX string is
\frac{\pi}{2} = 1 + \frac{1}{1 + \frac{1}{\frac{1}{2} + \frac{1}{\frac{1}{3} + \frac{1}{\frac{1}{4} + \ddots}}}}
However, \cfrac is a command from the amsmath package that is fairly standard for any use of continued fractions, improving the space and right-aligning the vincula of the fractions.
The code would be exactly the same as above, except each instance of \frac on the right should be replaced with \cfrac.
Sadly there's not enough space for it... We'll need to figure out how to dynamically resize the latex box which will take a bit of effort. Leaving this issue open until that point.
In the continued fraction for pi/2, the current LaTeX string is
\frac{\pi}{2} = 1 + \frac{1}{1 + \frac{1}{\frac{1}{2} + \frac{1}{\frac{1}{3} + \frac{1}{\frac{1}{4} + \ddots}}}}
However, \cfrac is a command from the amsmath package that is fairly standard for any use of continued fractions, improving the space and right-aligning the vincula of the fractions.The code would be exactly the same as above, except each instance of
\frac
on the right should be replaced with\cfrac
.