I need to insert a table with two comumns in a beamer block.
I used the following code
Code: Select all
Code, edit and compile here:
\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} \\\hlineBasic 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}