While tables in books and theses are expected to be sober, presentations at talks are often more colorful. In this recipe, we will take a look at how to add graphical elements, such as rounded borders and shaded colors, to tables.
We will use the beamer
class, which is very popular for doing presentations. We will take an ordinary tabular
environment, put it into a TikZ node, and add shape and color using TikZ.
It's a challenging example, but it shows what we can achieve. Follow these steps:
Choose the
beamer
class, remove thenavigation symbols
argument, and add a background template with some shading:\documentclass{beamer} \setbeamertemplate{navigation symbols}{} \setbeamertemplate{background canvas}[vertical shading]% [top = blue!1, bottom = blue!40]
Load the
booktabs
package for nicer lines:\usepackage{booktabs}
Load TikZ and its
calc
library, and add a background layer:\usepackage{tikz} \usetikzlibrary{calc} \pgfdeclarelayer{background...