Position a tabular on the corner of a slide
It is possible to create columns with the column
environment.
\documentclass[]{beamer}
\usetheme{Madrid}
%\usepackage{tikz}
\begin{document}
\begin{frame}
\begin{columns}[T]
\begin{column}{10cm}
\begin{itemize}
\item comment 1 regarding table
\item comment 2
\item comment 3
\item comment 3
\item comment 3
\item comment
\item comment
\item comment
\item comment
\item tabular should be floating in the upper right corner
\end{itemize}
\end{column}
\begin{column}{5cm}
\begin{tabular}{|c|c|}\hline
0&0\\\hline
0&0\\\hline
1&1\\\hline
0&0\\\hline
0&1\\\hline
1&0\\\hline
\end{tabular}
\end{column}
\end{columns}
\end{frame}
\end{document}
How about using minipage
environment and control the left/right column with respect to the \textwidth
:
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{minipage}[t]{0.85\textwidth}% Left side
\begin{itemize}
\item comment 1 regarding table
\item comment 2
\item comment 3
\item comment 3
\item comment 3
\item comment
\item comment
\item comment
\item comment
\item tabular should be floating in the upper right corner
\end{itemize}
\end{minipage}\begin{minipage}[t]{0.15\textwidth}\vspace{0pt}% Right side
\begin{tabular}{|c|c|}\hline
0&0\\\hline
0&0\\\hline
1&1\\\hline
0&0\\\hline
0&1\\\hline
1&0\\\hline
\end{tabular}
\end{minipage}
\end{frame}
\end{document}
Here is a way with tikz overlay:
\documentclass[fragile]{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning,calc}
\begin{document}
\begin{frame}
\begin{itemize}
\item comment 1 regarding table
\item comment 2
\item comment 3
\item comment 3
\item comment 3
\item comment
\item comment
\item comment
\item comment
\item tabular should be floating in the upper right corner
\end{itemize}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east] at ($(current page.north east)+(-1cm,-1.5cm)$){\begin{tabular}{|c|c|}\hline
0&0\\\hline
0&0\\\hline
1&1\\\hline
0&0\\\hline
0&1\\\hline
1&0\\\hline
\end{tabular}};
\end{tikzpicture}
\end{frame}
\end{document}