Graphics, Figures & Tableshow to get a pretty table using beamer

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

how to get a pretty table using beamer

Post by NELLLY »

Hello
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}


FAhRz.jpg
FAhRz.jpg (22.67 KiB) Viewed 6290 times
I need the ouput of the table like the second table in the attached image in the colours layout which is much better than the one I used. Is there a solution to get this output or any other making my table looking better.
Last edited by cgnieder on Fri Mar 14, 2014 11:06 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply