diff --git a/bin/book-to-latex b/bin/book-to-latex index baa46b6..1dcc5ac 100644 --- a/bin/book-to-latex +++ b/bin/book-to-latex @@ -4,6 +4,7 @@ use Pod::PseudoPod::LaTeX; print <<'HEADER'; \documentclass[11pt,a4paper,oneside]{report} +\usepackage{graphics,graphicx} \begin{document} HEADER diff --git a/src/multi-dispatch.pod b/src/multi-dispatch.pod index 0a224fd..bd7e04b 100644 --- a/src/multi-dispatch.pod +++ b/src/multi-dispatch.pod @@ -199,6 +199,10 @@ narrowness of a match. play(Paper, Paper); play(Rock, Paper); +=for figure + \includegraphics[width=0.8\textwidth]{mmd-table.pdf} + \caption{Who wins the \emph{Rock, Paper, Scissors} game?} + \label{fig:mmd-rock-paper-scissors} This example demonstrates how a popular game can be decided completely by multi dispatch. Boths players independently select a symbol (either