NESTED FRACTIONS
Nested fractions in LaTeX: build and read each level
Examples checked with MathTexLab’s base and AMS math renderer · Display style
A nested fraction is a fraction inside one of another fraction’s arguments. Build it from the inside outward and read it from the outside inward. Braces, rather than line breaks in the source, determine the structure.
Identify the outer arguments
In the example, the outer numerator is 1. Its denominator is the entire
quantity 1+\frac{1}{x}. Replacing that denominator with
1+1/x may be visually compact but needs its own careful
grouping in surrounding algebra.
\frac{1}{1+\frac{1}{x}}Open example in editor Use the two fields deliberately
Put 1 in the Fraction Generator’s numerator field and
1+\frac{1}{x} in its denominator field. The tool adds the outer
brace groups; do not paste a second complete outer fraction into both
fields. Inner fractions still need their own two arguments.
Control the height
Inner fractions often become smaller in automatic math style. Forcing display size at every level makes a tall expression and is not always easier to read. Compare automatic, display and text styles in the generator, then inspect the whole result. Export through the editor after choosing a legible overall size.
Keep algebra separate
The builder does not simplify the expression or determine where it is defined. A rewritten rational expression can have different apparent restrictions if a factor cancels. Record the original domain separately and verify any transformation yourself. Rendering success only confirms that the notation could be displayed.
Syntax reference
MathJax supported-command reference. The examples above are limited to the features described here; additional packages are not implied.
Continue with LaTeX Fraction Generator.