Math & ScienceAutomatically resizing single bracket "{"

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kfarmer
Posts: 3
Joined: Thu Jun 23, 2011 2:53 am

Automatically resizing single bracket "{"

Post by kfarmer »

Hi,

I am trying to write (LyX 1.6.4) essentially a piece-wise function in the form:

Code: Select all

       { g(x), x<-1
f(x) = { h(x), -1 <= x <= 1
       { y(x), x >1
where the three braces shown are one single brace that spans the entire definition. I have tried entering an unmatched "{" that comes with an active box for writing in math mode but the problem is that I can not find any way to resize it -- or have it expand as I type new lines. In fact hitting enter at the end of the first line of the definition just jumps the cursor to the left of the brace. The option I am using is under View-->Toolbars-->Math.

Strangely I can copy and paste what I am talking about from another .lyx document but even then I can't resize it.

Any advice is appreciated.

Regards.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

paul
Posts: 49
Joined: Thu Apr 08, 2010 5:56 am

Automatically resizing single bracket "{"

Post by paul »

In general, you want

Code: Select all

\left{ ... \right.
but in this case

Code: Select all

f(x) = \begin{cases}
g(x) &x < -1,\\
h(x) &-1 \le x \le 1,\\
y(x) &x > 1.
\end{cases}
kfarmer
Posts: 3
Joined: Thu Jun 23, 2011 2:53 am

Re: Automatically resizing single bracket "{"

Post by kfarmer »

Thanks. How do I insert raw TeX(?)/LaTeX(?) into the LyX document?
kfarmer
Posts: 3
Joined: Thu Jun 23, 2011 2:53 am

Re: Automatically resizing single bracket "{"

Post by kfarmer »

Ah, nevermind. I just found it. :-)
Post Reply