Math & ScienceProblem with displaying brackets in fractions

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Bill21
Posts: 1
Joined: Thu May 06, 2021 5:04 pm

Problem with displaying brackets in fractions

Post by Bill21 »

Hi!
I need display fraction with multiple levels and brackets in some levels. If i use standart left, right constructions, i have ugly fraction. I have a lot of empty place in brackets. Below you see example and tex code. What do I need to change to correct display this fraction?
fraction.jpg
fraction.jpg (19.15 KiB) Viewed 3969 times
\frac{u}{v}=\frac{y_0}{x_0} + \cfrac{k_0}{\cfrac{x_0}{\left( \cfrac{y_1}{x_1}+\cfrac{k_1}{\cfrac{x_1}{\left(\cfrac{y_2}{x_2}+\cfrac{k_2}{\left(\ddots + \cfrac{k_{n-1}}{\cfrac{x_{n-1}y_n}{x_n}}\right)}\right)}}\right)}}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Problem with displaying brackets in fractions

Post by Bartman »

A Infominimal working example marked as code (LaTeX tags are more suitable for inline code) improves the chance to get help.

You can omit the parentheses, use the array environment inside each pair of parentheses, or work with the \scaleleftright command of the scalerel package.
Post Reply