3

How can I add a large "}" (that covers top to bottom of Part 2) to the right of all texts of Part 2 on layer number 7? I don't "}" to be at right end of the frame because I want to write "Part 2" at the right hand side of it. Any idea?

\begin{frame}
%%%% Part1%%%%%
\begin{itemize}
\item<1-> A
\end{itemize}
%%%%%%%%%%%%%%%

%%%% Part2%%%%%
\begin{itemize}
\item<2-> B
\item<3-> C: 
\begin{itemize}
\item<4-> C1,
\item<5-> C2.
\end{itemize}
\end{itemize}
%%%%%%%%%%%%%%%

%%%% Part3%%%%%
\begin{itemize}
\item<6-> D
\end{itemize}
%%%%%%%%%%%%%%%
\end{frame}
m0_as
  • 311
  • 3
    Does this answer help: https://tex.stackexchange.com/a/1570/103046? – Tiuri Feb 15 '18 at 09:43
  • @Tiuri No, it is not what I want. That solution seems very old. Every time I generate my pdf, it puts } at a different location! – m0_as Feb 15 '18 at 18:10

1 Answers1

3
\documentclass{beamer}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{tikzmark,decorations.pathreplacing,calligraphy}

\begin{document}

\begin{frame}
%%%% Part1%%%%%
\begin{itemize}
\item<1-> A
\end{itemize}
%%%%%%%%%%%%%%%

%%%% Part2%%%%%

\begin{itemize}
\item<2-> B\tikzmark{start}
\item<3-> C: 
\begin{itemize}
\item<4-> C1,
\item<5-> C2.\tikzmark{end}
\end{itemize}
\end{itemize}

%%%%%%%%%%%%%%%

%%%% Part3%%%%%
\begin{itemize}
\item<6-> Limited to finite horizon problems
\end{itemize}
%%%%%%%%%%%%%%%


\begin{tikzpicture}[remember picture,overlay]
    \draw[decorate,decoration={calligraphic brace}]
        ([yshift=10pt,xshift=60pt]{{pic cs:end}|-{pic cs:start}}) --
        node[xshift=5pt,anchor=west] {Part 2}
        ([xshift=60pt]{pic cs:end})
;
\end{tikzpicture}

\end{frame}

\end{document}

enter image description here

(Thanks to @Loop Space for suggesting the calligraphic brace!)