summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/automata/example.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-07-16 16:30:43 +0000
committerKarl Berry <karl@freefriends.org>2007-07-16 16:30:43 +0000
commita139ebaf3bcef1c8ad4177ead9ac6ed426f6b6e0 (patch)
tree956ca4f0b861b9d488a3d17375953394cab420ec /Master/texmf-dist/doc/metapost/automata/example.tex
parentf3105f85f6529b65da9843627709258f82d384fa (diff)
new metapost package automata 0.1 (4jul07)
git-svn-id: svn://tug.org/texlive/trunk@4617 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/metapost/automata/example.tex')
-rw-r--r--Master/texmf-dist/doc/metapost/automata/example.tex36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/automata/example.tex b/Master/texmf-dist/doc/metapost/automata/example.tex
new file mode 100644
index 00000000000..d84c855c67f
--- /dev/null
+++ b/Master/texmf-dist/doc/metapost/automata/example.tex
@@ -0,0 +1,36 @@
+\documentclass{article}
+\usepackage{a4wide}
+\usepackage[english]{babel}
+\usepackage[latin1]{inputenc}
+\selectlanguage{english}
+\usepackage{amsmath,url,graphics,verbatim}
+\DeclareGraphicsRule{*}{mps}{*}{}
+
+\begin{document}
+
+\title{An example of automaton generated\\with the MetaPost package \url{automata.mp}}
+\author{Gabriele Puppis\\
+ \emph{Dipartimento di Matematica e Informatica, Università di Udine, Italy}\\
+ \url{gabriele.puppis@dimi.uniud.it}}
+
+\maketitle
+
+This \LaTeX\ document shows how to include a picture generated with MetaPost.
+By default, the extension of a file generated with MetaPost is a number
+(e.g., \url{.0}), so you should use the package \url{graphics} and the command
+\verb \DeclareGraphicsRule{*}{mps}{*}{} to make \LaTeX\ recognize these
+extensions as files in PS format.
+
+The file \url{example.mp} contains the MetaPost source code that was used to generate
+the automaton in Figure \ref{fig:example}. This file should be compiled with MetaPost
+(e.g., run ``\verb mp \verb -tex=latex \verb example.mp '' from the shell command
+line). Such an example uses the package \url{automata.mp} to easily draw the states
+and the transitions of the automaton (you can find some documentation inside the files
+\url{example.mp} and \url{automata.mp}).
+
+\begin{figure}[!!h]
+\centering\includegraphics{example.0}
+\caption{An example pf automaton}\label{fig:example}
+\end{figure}
+
+\end{document} \ No newline at end of file