在 itemize: beamer 旁边添加一个大括号

在 itemize: beamer 旁边添加一个大括号

我怎样才能在第 7 层第 2 部分的所有文本的右侧添加一个大“}”(覆盖第 2 部分的顶部到底部)?我不想让“}”位于框架的右端,因为我想在它的右侧写上“第 2 部分”。有什么想法吗?

\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}

答案1

\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}

在此处输入图片描述

(感谢@Loop Space 的建议calligraphic brace!)

相关内容