Text FormattingProblem with \left

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
deangelo
Posts: 5
Joined: Fri Jul 29, 2011 7:31 pm

Problem with \left

Post by deangelo »

Hello guys,

I'm having trouble using \ left[ in environment enumerate.

The code is this

Code: Select all

\begin{enumerate}
$ \left $
\item Existe um único elemento $ 1 $ no conjunto $ \bb{N} $, tal que $ 1 \neq s(n) $ para todo $ n \in \bb{N} $.
item Se um subconjunto $ X \subset \bb{N} $ é tal que $ 1 \in N $ e $ s(X) \in X $ (isto é, $ n \in X \imp s(n) \in X $), então $ X = N $.
$ \right} $
\end{enumerate}
Is presenting a compilation error.
How do I fix this?

Thank you!
Student Math Brazilian

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Problem with \left

Post by Stefan Kottwitz »

Hi,

\left and \right have to be used in pairs within the same context, i.e. within the same formula part, also not spanning over lines. That's a problem here. Furthermore, you just wrote \left without the delimiter afterwards, such as \left[. To solve the pairing problem, use \big, \bigg, \Big or \Bigg instead, with a delimiter.

Stefan
LaTeX.org admin
deangelo
Posts: 5
Joined: Fri Jul 29, 2011 7:31 pm

Problem with \left

Post by deangelo »

Thank you Stefan,
It's working, but it is not how I wanted, I would like to stay like the picture below
screen.jpg
screen.jpg (10.16 KiB) Viewed 4712 times
Student Math Brazilian
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Problem with \left

Post by Stefan Kottwitz »

It's not easy to mix variable sized braces with items in a list environment.

Some possible ways:
  • Use TikZ, it's a big software package but easy to apply once you know how.
  • Use an array instead an enumerate environment, and bigdelim or \left and \right.
  • Make a manual workaround within an enumerate item with \makebox and a big brace.
If you would show a Infominimal working example of your code, I could show you how to implement such a solution.

Stefan
LaTeX.org admin
deangelo
Posts: 5
Joined: Fri Jul 29, 2011 7:31 pm

Re: Problem with \left

Post by deangelo »

Thank you very much!
I will test!
Student Math Brazilian
Post Reply