I am producing some latex beamer slides (but I think it is not a beamer specific question per se).
I have the following:
\begin{itemize}
\item Issue1
\item Issue2
\item Issue3
\end{itemize}
Now, I want to have a right curly brace (i.e. '}') behind the items spreading over issue1 and issue2. And of course I want to write something behind that curly brace.
In a perfect world I would write something like:
\begin{itemize}
\left .
\item Issue1
\item Issue2
\right \} One and Two are cool
\item Issue3
\end{itemize}
This does not work because I am not in a math environment and I can not put the whole snippet inside a math environment because itemize would not work in that case.
Is there a clean solution or a hack to produce my desired result?
Regards, Bastian.
One way to get around this would be to use a math environment like align, put the bullet points by hand (with \bullet ), and then use the resources of the math environment for big braces and such.
I'd use
tikz
and make an overlay.First include the proper packages (you may not need to include
tikz
since this is a beamer question):Then when you make your list, give names to the places after each item:
(Note: I shifted the
y
value up by 1/2 of a line maybe more would be better.)Because we used
remember picture
we can refer to these places in an overlay:The path is there to deal with items that do not have the same width. This edit comes from ESultanik's answer.
The result is:
Side note: You can remove all of the
remember picture
options and add the following to automatically add remember to all pictures:I tried my idea, below. It doesn't work: unfortunately, the vboxes produced by the itemize environment all have width
\textwidth
.The UI of my suggestion is nice, and by redefining
\item
it should be possible to get the item vboxes be of reasonable width. Or calculate a reasonable width for the vboxes containing the items. But since there are functional solutions already, I won't spend anymore time on this.You could (ab)use a table instead:
produces:
removed dead Imageshack link
I did something similar once. I let the list be in a column to the left, and in the right column, I did the
$\right\}$
-thing so that it was as tall as some\mbox
or something (which I decided with\vphantom
or something similar). Unfortunately I don't have time to dig it out... I actually don't have time to be at SO at all right now ;)Here is Geoffs code with some small adaptions (just for other beamer users)
Ressult (2nd slide of that frame):
The adaptions are:
(n1 -| n2) -- (n2)
instead of(n1) -- (n2)
.