如何在第 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
!)