#! /bin/bash rm -fR mps png mkdir png mkdir mps cd example mpost --tex=latex graphs.mp mpost --tex=latex hexagonalgrid.mp mv graphs.? graphs.??? hexagonalgrid.? hexagonalgrid.??? ../ cd .. echo \\documentclass[twocolumn]{article}\ \\usepackage[dvips]{epsfig}\ \\begin{document}\ \\title{Exemplifier}\ \\author{L. Nobre G.}\ \\date{\\today}\ \\maketitle\ \\begin{center}\ > Exemplifier.tex for a in example/*.mp do b=`basename $a .mp` mpost1.504 --tex=latex example/$b for c in $b.? do echo \\vfill\ \\begin\{tabular\}\{c\}\ \\epsfig\{file=$c\,width=0.9\\columnwidth\} \\\\\ \\texttt\{$c\}\ \\end\{tabular\} \\\\ >> Exemplifier.tex done done echo \\end{center}\\end{document} >> Exemplifier.tex latex Exemplifier.tex dvips -o Exemplifier.ps Exemplifier.dvi ps2pdf Exemplifier.ps #bzip2 Exemplifier.ps rm Exemplifier.aux rm Exemplifier.dvi rm Exemplifier.tex #mv Exemplifier.ps.bz2 doc/ mv Exemplifier.pdf doc/ cp *.? mps/ echo "
MetaPost
Examples"\ $b.mp"" >> MPexamples.html for c in $b.? do ############################################################################### ./laproof.sh $c ./pngmaker.sh $c.eps ############################################################################### echo "" >> MPexamples.html done echo "
" >> MPexamples.html done echo "