LaTeX forum ⇒ Math & ScienceTall brace in multi line math expression.

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
drpartha
Posts: 43
Joined: Wed Dec 02, 2009 1:41 am

Tall brace in multi line math expression.

Postby drpartha » Sat Sep 23, 2023 8:51 am

I need a small help from this forum.

I have a math expression spanning many lines (a continued fraction) :

\begin{equation}
1+
\cfrac {1}{1+
\cfrac {1}{1+
\cfrac {1}{1+
\cfrac {1}{1+
\cfrac {1}{1+ \dots
}}}}}
\end{equation}

I would like to add a tall curly brace } spanning the entire expression
to the right of the expression. Can I do it with \right\} ? Where do I
put this command ? Any other way to do this ?

In fact, I want a tall } and = xyz on the right side of the above
expression (see https://drpartha.org.in/drpartha/tall-brace-right.png

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
kaiserkarl13
Posts: 706
Joined: Tue Mar 25, 2008 5:02 pm

Tall brace in multi line math expression.

Postby kaiserkarl13 » Sat Sep 23, 2023 5:00 pm

Something like
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\left.
\begin{aligned}
  1 + \cfrac{1}{1+
    \cfrac {1}{1+
    \cfrac {1}{1+
    \cfrac {1}{1+
    \cfrac {1}{1+ \dotsb
  }}}}}
\end{aligned}
\right\} = xyz
\end{equation}
\end{document}

should do it. The "aligned" environment is to eliminate the extra vertical space above the fraction.

User avatar
drpartha
Posts: 43
Joined: Wed Dec 02, 2009 1:41 am

Tall brace in multi line math expression.

Postby drpartha » Sun Sep 24, 2023 4:04 am

It worked ! Many thanks to kaiserkarl13 and this forum. See result at : https://drpartha.org.in/drpartha/tall-brace-right.png

IdaGraham
Posts: 1
Joined: Sat Oct 14, 2023 8:44 am

Tall brace in multi line math expression.

Postby IdaGraham » Sat Oct 14, 2023 8:49 am

Another way to achieve the same result is to use the '\left.' and '\right\}' commands together.
\begin{equation}
1+
\cfrac {1}{1+
\cfrac {1}{1+
\cfrac {1}{1+
\cfrac {1}{1+
\cfrac {1}{1+ \dots
\left.
\right\}
}}}}}
\end{equation}


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 7 guests