对于以下 MWE:
\documentclass{beamer}
\usetheme{metropolis}
\setbeamertemplate{footline}{}
\makeatletter
\def\beamer@framenotesbegin{% at beginning of slide
\usebeamercolor[fg]{normal text}
\gdef\beamer@noteitems{}%
\gdef\beamer@notes{}%
}
\makeatother
\usepackage{lmodern}
\usepackage{tcolorbox}
\usepackage[USenglish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{bigdelim}
\setbeamersize{text margin left=10mm,text margin right=10mm}
\setbeamerfont{frametitle}{size=\small}
\begin{document}
\maketitle
\begin{frame}{Spectral Properties}
\resizebox{\textwidth}{!}{%
\begin{tabular}{r@{\,}|c|c|}
\cline{2-3}
& \textbf{Column 1}\footnotemark[1] & \textbf{Column 2}\footnotemark[2]\\
\cline{2-3} \cline{2-3}
\color{green}\ldelim\{{3}{*}[\color{red} Info]&
Some Text & Some Text\\ \cline{2-3}
\onslide<2->{&Some Text & Some Text\\ \cline{2-3}}
\onslide<3->{&Some Text & Some Text \\ \cline{2-3}}
\end{tabular}
}
\end{frame}
\end{document}
我得到输出:
所有框架中的杂散垂直线是干什么的?我该如何去除它?
答案1
以下是实现此目的的众多方法之一。(见这里以及其链接帖子中先前的讨论。)编辑:为了避免跳跃,可以[t]
向框架添加选项。
\documentclass{beamer}
\usetheme{metropolis}
\setbeamertemplate{footline}{}
\makeatletter
\def\beamer@framenotesbegin{% at beginning of slide
\usebeamercolor[fg]{normal text}
\gdef\beamer@noteitems{}%
\gdef\beamer@notes{}%
}
\makeatother
\usepackage{lmodern}
\usepackage{tcolorbox}
\usepackage[USenglish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{bigdelim}
\setbeamersize{text margin left=10mm,text margin right=10mm}
\setbeamerfont{frametitle}{size=\small}
\begin{document}
\maketitle
\begin{frame}[t]
\frametitle{Spectral Properties}
\resizebox{\textwidth}{!}{%
\begin{tabular}{r@{\,}|c|c|}
\cline{2-3}
& \textbf{Column 1}\footnotemark[1] & \textbf{Column 2}\footnotemark[2]\\
\cline{2-3} \cline{2-3}
\color{green}\ldelim\{{3}{*}[\color{red} Info]&
Some Text & Some Text
\only<2->{\\ \cline{2-3} &Some Text & Some Text}
\only<3->{\\ \cline{2-3} &Some Text & Some Text}
\\ \cline{2-3}
\end{tabular}
}
\end{frame}
\end{document}
另一个技巧是将有问题的线变成白色。
\documentclass{beamer}
\usetheme{metropolis}
\setbeamertemplate{footline}{}
\usepackage{colortbl}
\makeatletter
\def\beamer@framenotesbegin{% at beginning of slide
\usebeamercolor[fg]{normal text}
\gdef\beamer@noteitems{}%
\gdef\beamer@notes{}%
}
\makeatother
\usepackage{lmodern}
\usepackage{tcolorbox}
\usepackage[USenglish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{bigdelim}
\setbeamersize{text margin left=10mm,text margin right=10mm}
\setbeamerfont{frametitle}{size=\small}
\begin{document}
\maketitle
\begin{frame}
\frametitle{Spectral Properties}
\resizebox{\textwidth}{!}{%
\begin{tabular}{r@{\,}|c|c|}
\cline{2-3}
& \textbf{Column 1}\footnotemark[1] & \textbf{Column 2}\footnotemark[2]\\
\cline{2-3} \cline{2-3}
\color{green}\ldelim\{{3}{*}[\color{red} Info]&
Some Text & Some Text\\ \cline{2-3}
\onslide<2->{&Some Text & Some Text\\ \cline{2-3}}
\onslide<3->{&Some Text & Some Text \\ \cline{2-3}\arrayrulecolor{white}}
\end{tabular}
}
\end{frame}
\end{document}