How can I add curly brackets like this?

enter image description here

This is so far my code....

\item Hello
    \item Hi
    \item Good-bye
    \item Bye


You can obtain this with blkarray. It defines a new column type, \BAenum, which automatically inserts the row number. With the etoolbox package, we can customise the formatting of this number to add a pair of parentheses:

\documentclass[12pt, a4paper]{article}
\usepackage{array, blkarray}


\noindent\begin{blockarray}{\BAenum p{4cm}c}
\begin{block}{\BAenum p{4cm} c \Right{\}}{\qquad Type 1}}
  Hello and some more text. & \\
   Hi \\
\begin{block}{\BAenum p{4cm}c\Right{\}}{\qquad Type 2}}
   Good-bye\,! Fare thee well\,! & \\
  Bye \\


enter image description here

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.