I was wondering if anyone ever tried to typeset slides with a grid layout, ie. something like (see below the tikz grid showing it).
Expected functionalities:
- ability to write text or place image across several columns on the fly (ie. provide kind of start coordinate/ size of frame containing text or image + text aligned on a grid)
- compatibility with [c] option for frame (or similar)
- I don't care about the crappy blocks from beamer (less is better)
- would appreciate to get something in the vein of http://www.treesmapsandtheorems.com/barriers/
Starting point code (but no need to stick to it), where the grey block could be text and the yellow block an image:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{calc}
\setbeamertemplate{headline}{}
\setbeamertemplate{navigation symbols}{}
\usebackgroundtemplate%
{%
\begin{tikzpicture}[overlay,remember picture]
\draw[step=.4cm,gray,thin] (current page.south east) grid (current page.north west);
\draw[thick] ($(current page.north west)+(.4cm,-.4cm)$) rectangle ($(current page.north west)+(6cm,-1.6cm)$); % frametitle
\draw[thick] ($(current page.south west)+(0cm,.4cm)$) rectangle (current page.south east); % footer
\draw[thick] ($(current page.south west)+(1cm,.8cm)$) rectangle ($(current page.north west)+(3.4cm,-2.4cm)$);
\draw[thick] ($(current page.south west)+(3.8cm,.8cm)$) rectangle ($(current page.north west)+(6.2cm,-2.4cm)$);
\draw[thick] ($(current page.south west)+(6.6cm,.8cm)$) rectangle ($(current page.north west)+(9cm,-2.4cm)$);
\draw[thick] ($(current page.south east)+(-3.4cm,.8cm)$) rectangle ($(current page.north east)+(-1cm,-2.4cm)$);
\end{tikzpicture}
}
\setbeamercolor{footline}{fg=white,bg=black}
\begin{document}
\begin{frame}
\begin{tikzpicture}[overlay,remember picture]
\fill[yellow] ($(current page.center)+(.2,1.6cm)$) rectangle ($(current page.east)+(-1cm,-1.6cm)$);
\fill[gray] ($(current page.center)+(-.2,2.4cm)$) rectangle ($(current page.west)+(1cm,-2.4cm)$);
\end{tikzpicture}
\end{frame}
\end{document}
Note: if a ConTeXt solution is much convenient to use (less code to type), please feel free to share.
columns
environment of beamer? – Paul Gaborit Jul 27 '14 at 8:35columns
... What is you problem withcolumns
? – Paul Gaborit Jul 27 '14 at 8:40[t]
option ofcolumns
environment? – Paul Gaborit Jul 27 '14 at 10:18