akshayravikumar / TeXnique

A LaTeX Typesetting Game
https://texnique.xyz
MIT License
243 stars 34 forks source link

(Suggestion) Changing continued fraction to use \cfrac #22

Open rich1126 opened 5 years ago

rich1126 commented 5 years ago

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.

fortenforge commented 5 years ago

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.