Andrew Stacey


About
Andrew Stacey
Information about my research, teaching, and other interests.

By: Andrew Stacey
Contact details


Andrew Stacey


blosxom icon


Thu, 18th Aug 2011 (HowDidIDoThat :: LaTeX)

A Random Grid of Shapes

This is a short LaTeX package which greats a random grid of shapes. At the moment, the shapes are harded coded to be red triangles, black squares, and a red square. The package file can be downloaded here. A simple example is:

 \documentclass{article}
\usepackage{tikz}
\usepackage{randomgrid}

\begin{document}
\begin{tikzpicture}
 \matrix[matrix of shapes,row sep=1cm,column sep=1cm,odd one out] {\\};
 \end{tikzpicture}
 \end{document}

This produces the following:

random grid of shapes

A more detailed explanation of the ideas behind this package can be found on the TeX-SX blog.

[Full link]
Last modified on:
Thu, 18th Aug 2011