10

We already know how to have a curly bracket spanning multiple non-math lines of text:

What I wonder now is: how to do the same with:

\begin{itemize}
\item Item 1
\item Item 2
\item Item 3
\end{itemize} 

How to have a curly bracket spanning over such Items, within an Itemize-environment?

O0123
  • 1,773

4 Answers4

6

It's not too hard to adapt the answer you already found :)

\documentclass[12pt]{article}
\begin{document}
$\left\{
\begin{tabular}{p{.8\textwidth}}
\begin{itemize}
\item Second line 
\item Third line, which is quite long and seemingly tedious in the extreme
\item Fourth line, which isn't as long as the third 
\end{itemize}
\end{tabular}
\right.$
\end{document}

The spacing could use some work but I'm too lazy.

Mark
  • 1,393
1

Following Werner's comment, which links to:

I end up with the following, which (when one would like a left-curly brace) however results in the left brace being oriented falsely (it should be flipped horizontally).

A correct way for the right curly brace can be found in the mentioned User Cmhuges' answer.

\documentclass{article}

\usepackage{lipsum}
\usepackage[many]{tcolorbox}
\usetikzlibrary{decorations.pathreplacing}

\newtcolorbox{leftbrace}{%
    enhanced jigsaw, 
    breakable, % allow page breaks
    frame hidden, % hide the default frame
    overlay={%
        \draw [
            decoration={brace,amplitude=0.5em},
            decorate,
            ultra thick,
        ]
        % right line
        (frame.north west)--(frame.south west);
    },
    % paragraph skips obeyed within tcolorbox
    parbox=false,
}

\begin{document}

\begin{leftbrace}
\begin{itemize}
\item Second line 
\item Third line, which is quite long and seemingly tedious in the extreme
\item Fourth line, which isn't as long as the third 
\end{itemize}
\end{leftbrace}

\end{document}
O0123
  • 1,773
1

I do not have the reputation points to comment back to you @Anas A. Ibrahim, but to have a horizontal brace pointing downward you would change the line under the "%right line" comment to: (frame.south west)--(frame.south east). If you want the horizontal brace to point upward, change that same line to: (frame.north west)--(frame.north east). Hope that helps!

Mensch
  • 65,388
0

In addition to @Christina Cole's solution, another way to "flip" the brace is to use the mirror option, i.e., replace decoration={brace, amplitude=0.5em} with decoration={brace, amplitude=0.5em, mirror}.

source: How can I flip the direction of curly braces in TikZ?

  • I guess your answer is related to the answer of O0123. Could you please mention that in your text so that it makes sense (as the content of your answer by itself cannot be used). – KersouMan Mar 03 '23 at 14:17
  • 1
    Thanks, I edited my post to mention what I am responding to. (I am new to StackExchange, so unfortunately, I couldn't comment directly on the post.) – Tim Vieira Mar 05 '23 at 23:43