Skip to content

Commit

Permalink
[MMD] include the figure into the PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 22, 2009
1 parent c10a89c commit 3f1f4a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/book-to-latex
Expand Up @@ -4,6 +4,7 @@ use Pod::PseudoPod::LaTeX;

print <<'HEADER';
\documentclass[11pt,a4paper,oneside]{report}
\usepackage{graphics,graphicx}
\begin{document}
HEADER
Expand Down
4 changes: 4 additions & 0 deletions src/multi-dispatch.pod
Expand Up @@ -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
Expand Down

0 comments on commit 3f1f4a1

Please sign in to comment.