Estou a usar (Tema Metropolis como um Beamer) e faço uma tabela simples e aparece algo grande, aí procurei como reduzir e usei:
\begin{table}[H]
\resizebox{0.8\textwidth}{!}{\begin{minipage}{\textwidth}
....
\end{minipage}}
\end{table}
e funciona bem, mas a mesa não está na posição central, mova sempre mais para o lado direito. Tento incluir toda a tabela usando \centering \begin{center} and \begin{flushleft}
, mas ela não se move.
Aqui minha tabela:
\begin{flushleft}
\begin{table}[H]
\resizebox{0.8\textwidth}{!}{\begin{minipage}{\textwidth}
\begin{tabular}{l| l l}
\toprule
\textbf{Parameters} & \textbf{Description of values} \\
\toprule
$ Prohibited\_times $ & Timeslots prohibited for the event. \\
$ Prohibited\_rooms $ & Rooms prohibited for the event. \\
$ Prohibited\_events\_clash $ & Events you can not clash. \\
$ Count\_students $ & Number of students associated to the event. \\
$ Predecessor $ & Events predecessor to the event. \\
$ Successor $ & Event successor to the events. \\
$ Features $ & Characteristics of the event. \\
\bottomrule
\end{tabular}
\end{minipage}}
\end{table}
\end{flushleft}
\end{frame}
Alguma ideia? cumprimentos
Responder1
Você já tentou incluir \centering
depois \begin{table}[h]
?
Além disso, você pode remover o minipage
ambiente.
O exemplo abaixo funcionou muito bem para mim:
\begin{frame}
\begin{table}[h]
\centering
\resizebox{0.7\textwidth}{!}{
\begin{tabular}{l l l}
\toprule
\textbf{Parameters} & \textbf{Description of values} \\
\toprule
$ Prohibited\_times $ & Timeslots prohibited for the event. \\
$ Prohibited\_rooms $ & Rooms prohibited for the event. \\
$ Prohibited\_events\_clash $ & Events you can not clash. \\
$ Count\_students $ & Number of students associated to the event. \\
$ Predecessor $ & Events predecessor to the event. \\
$ Successor $ & Event successor to the events. \\
$ Features $ & Characteristics of the event. \\
\bottomrule
\end{tabular}
}
\end{table}
\end{frame}
Responder2
Tentei com o Adjustbox e funcionou. cumprimentos.
\begin{table}[h]
\centering
\begin{adjustbox}{max width=\textwidth}
\begin{tabular}{l| l l}
\toprule
\textbf{Parameters} & \textbf{Description of values} \\
\toprule
$ Prohibited\_times $ & Timeslots prohibited for the event. \\
$ Prohibited\_rooms $ & Rooms prohibited for the event. \\
$ Prohibited\_events\_clash $ & Events you can not clash. \\
$ Count\_students $ & Number of students associated to the event. \\
$ Predecessor $ & Events predecessor to the event. \\
$ Successor $ & Event successor to the events. \\
$ Features $ & Characteristics of the event. \\
\bottomrule
\end{tabular}
\end{adjustbox}
\end{table}
\end{frame}