I need to insert a table with two comumns in a beamer block.
I used the following code
Code: Select all
\documentclass[xcolor={dvipsnames}]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{graphicx,tabularx}
\usepackage{ragged2e}
%\usepackage{etoolbox}
% \apptocmd{\frame}{\justifying}{}{}
\let\olditem\item
\renewcommand\item{\olditem\justifying}
\usepackage[english]{babel}
\usetheme{Warsaw}
\hyphenpenalty 10000
\justifying
%\setbeamertemplate{footline}{\insertframenumber/\inserttotalframenumber}
\setbeamertemplate{footline}[frame number]
\begin{document}
\begin{frame}{Various Bayesian control charts}
\begin{block}
\setlength{\tabcolsep}{0.8cm}
%\begin{table}[bth]
%\caption{Various Bayesian Control Charts} \centering
%\setlength{\tabcolsep}{0.8cm}
\begin{tabular}{l|l}
{\color{Blue}Type of the chart} & {\color{Blue}Adaptive parameters} \\\hline
Basic Bayesian control chart&k\\
VSS Bayesian control chart& k, n\\
VSI Bayesian control chart& k, n, h\\
\end{tabular}
\end{block}
\end{frame}
\end{document}