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?

4
  • 1
    There is an example in Adding a large brace next to a body of text
    – Werner
    Apr 17, 2016 at 7:55
  • @Werner, Thanks. Can you do it for a left-hand curly brace? Cf. the problem in the answer which I provided below.
    – O0123
    Apr 17, 2016 at 8:06
  • 1
    What is the desired output if there is a page break between the items?
    – Aditya
    Apr 17, 2016 at 12:37
  • @Aditya On the purposes which I base myself, I think the most legible would be to break such a large brace into 2 smaller braces, one for each page. But, for other purposes it might be better to retain 1 big brace.
    – O0123
    Apr 17, 2016 at 20:31

4 Answers 4

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.

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}
1
  • Can you please demonstrate how to do it the same way but the curly brace is horizontally flipped? Dec 8, 2020 at 15:42
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!

0
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?

2
  • 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 3 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 5 at 23:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .