Tenho um problema com a tabela em beamer. A tabela pode ser compilada em \documentclass{article}, mas não em \documentclass{beamer}. Abaixo está a tabela que faço:
\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}
Comentários
Resposta
Um ambiente table é flutuando, o que não faz sentido no projetor, já que deveria aparecer em um slide projetado específico e, portanto, é suprimido (ver comentário de G. Medina). Eu removi o table material como bem como o \caption e o comando \minitab errado.
\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}
Comentários
- A primeira parte de sua resposta não está totalmente correta .
beamersuprime internamente o mecanismo de flutuação paratableefigure, por isso é perfeitamente seguro para use-os embeamersem que os objetos sejam flutuados (consulte a Seção 12.6 Figuras e tabelas do manualbeamer) A razão para terfigureetableé ainda ser capaz de usar\captionpara tabelas ou figuras (essa legenda é realmente necessária em uma apresentação). - @GonzaloMedina: Talvez eu não tenha tido problemas com objetos flutuantes até agora em
beamer, porque eu quase não os uso, mas é bom saber agora
\documentclass{...}e terminando com\end{document}.