9

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

2 Answers 2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.