我对 中的表格有一个问题beamer
。该表格可以在 中编译\documentclass{article}
,但不能在 中编译\documentclass{beamer}
。以下是我制作的表格:
\usepackage{multirow}
\begin{table}[ht]
\centering
%\subfloat[Decay Channels]{
%\rule{4cm}{3cm}
\newcommand{\minitab}[2][l]{\begin{tabular}{#1}#2\end{tabular}}
%\renewcommand{\multirowsetup}{\centering}
\begin{tabular}{|c|c|} \hline
Description & Basic cuts \\ \hline
\multirow{4}{*}{Jet} &${\bf p}_T >$ 25 GeV \\
&$|\eta| < $ 2.5 \\
&$\Delta R(j,l) >$ 0.2 \\
&$\Delta \phi(j,{\bf p}_T^{miss}) >$ 0.6 \\ \hline
3 Leading jets & ${\bf p}_T >$ 40 GeV \\ \hline
b-tagging & $\ge$ 2 \\ \hline
\multirow{3}{*}{Lepton} & ${\bf p}_T >$ 20 GeV \\
& $|\eta| <$ 2.5 \\
& $\Delta R(l,j) >$ 0.4 \\ \hline
{${\bf p}_T^{miss}$} & $\Delta \phi({\bf p}_T^{miss},j) >$ 0.8 \\ \hline
& {\bf Advanced cuts} \\ \hline
$E_T^{miss}$ & $>$ 100, 120, 140, 160, 180, 200 (GeV)\\ \hline
$H_T$ & $>$ 400, 450, 500, 550, 600 (GeV)\\ \hline
$m_T$ & $>$ 100, 120, 140, 160, 180, 200 (GeV)\\ \hline
$N_j$ & $\ge$ 4, 5, 6 \\ \hline
$N_{bj}$ & $\ge$ 2, 3, 4 \\ \hline
\end{tabular}
%}
\caption{Summary of event selection cuts}
\end{table}
答案1
环境table
四处浮动,这在投影机中没有意义,因为它应该出现在特定的、设计的幻灯片上,因此被抑制(参见 G. Medina 的评论)我删除了这些table
东西以及\caption
错误的\minitab
命令。
\documentclass{beamer}
\usepackage{multirow}
\begin{document}
\begin{frame}{TestFrame}
%\begin{table}[ht]
\centering
%\subfloat[Decay Channels]{
%\rule{4cm}{3cm}
% \newcommand{\minitab}[2][l]{\begin{tabular}{#1}#2\end{tabular}}
%\renewcommand{\multirowsetup}{\centering}
\begin{tabular}{|c|c|} \hline
Description & Basic cuts \\ \hline
\multirow{4}{*}{Jet} &${\bf p}_T >$ 25 GeV \\
&$|\eta| < $ 2.5 \\
&$\Delta R(j,l) >$ 0.2 \\
&$\Delta \phi(j,{\bf p}_T^{miss}) >$ 0.6 \\ \hline
3 Leading jets & ${\bf p}_T >$ 40 GeV \\ \hline
b-tagging & $\ge$ 2 \\ \hline
\multirow{3}{*}{Lepton} & ${\bf p}_T >$ 20 GeV \\
& $|\eta| <$ 2.5 \\
& $\Delta R(l,j) >$ 0.4 \\ \hline
{${\bf p}_T^{miss}$} & $\Delta \phi({\bf p}_T^{miss},j) >$ 0.8 \\ \hline
& {\bf Advanced cuts} \\ \hline
$E_T^{miss}$ & $>$ 100, 120, 140, 160, 180, 200 (GeV)\\ \hline
$H_T$ & $>$ 400, 450, 500, 550, 600 (GeV)\\ \hline
$m_T$ & $>$ 100, 120, 140, 160, 180, 200 (GeV)\\ \hline
$N_j$ & $\ge$ 4, 5, 6 \\ \hline
$N_{bj}$ & $\ge$ 2, 3, 4 \\ \hline
\end{tabular}
%}
% \caption{Summary of event selection cuts}
% \end{table}
\end{frame}
\end{document}