I am using the rescale
option that was suggested in the other posts in this forum to fit a table in beamer
. However, the contents of the table move out of the frame.
\documentclass{beamer}
\usepackage{adjustbox,lipsum}
\usepackage{graphicx}
\begin{document}
%%\begin{adjustbox}{max width=\textwidth}
\scalebox{0.7}{
\begin{table}[h!]
\centering
\caption{ }
\begin{tabular}{|c|c|c|c|c|c| }
\hline
Name & Name&Name&NameName&NameName\\
\hline
NameName&-&-&-&-\\
NameName&NameName B &NameName B &- &NameName B\\
NameName&NameName A&NameName A&NameName A&NameName A\\
NameName&NameName B &NameName &-&- \\
NameName&NameName C&NameName C&NameName C&-\\
NameName&-&NameName&-&-\\
NameName&-&NameName&-&\\
\hline
\end{tabular}
\end{table}
}
\end{document}
Could someone help me to identify what's wrong in syntax that I am using?