1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
# mpgraphics package
# Matthew Bertucci 2/19/2022 for v0.3
#include:graphicx
#include:color
#include:moreverb
#include:xkeyval
#include:ifplatform
#include:iftex
#include:ifpdf
#keyvals:\usepackage/mpgraphics#c
metapost={%<MetaPost options%>}
epstopdf={%<epstopdf options%>}
compilation=#on,off
debug=#on,off
runs=%<integer%>
#endkeyvals
\begin{mpdisplay}
\end{mpdisplay}
\begin{mpinline}
\end{mpinline}
\begin{mpdefs}
\end{mpdefs}
\begin{ltxpreamble}
\end{ltxpreamble}
\mpgOff
\mpgOn
\NoProcess
\NoProcess[ranges]
\configure[mpgraphic][keyvals]
#keyvals:\configure
width=##L
height=##L
scale=%<factor%>
color=#%color
linecolor=#%color
background=#%color
linewidth=##L
rulesep=##L
#endkeyvals
\ArrayIterator{array}{arg}#*
\Array{name}[length%plain]{arg}#*
\BeforeMPDEFSStream#*
\BeforeMPGStream#*
\DeclareArray{name}#*
\MPDEFSverbatimwrite{file}#*
\MPGCutFile#*
\MPGgraphicsProcess#*
\MPGgraphicsinclude#*
\MPGinlinegraphicsinclude#*
\MPGverbatimwrite{file}#*
\NotIfFileExists{file}{code}#*
\OnlyIfFileExists{file}{code}#*
\addToArray{array}{arg}#*
\clearArray{array}#*
\endMPDEFSverbatimwrite#*
\endMPGhook#*
\endMPGverbatimwrite#*
\getArraylength{array}#*
\hyphencheck%<<arg1>%>-%<<arg2>%>-%<<arg3>%>#*
\mpgfigname#*
\mpgnoprocess#*
\theArrayIndex#*
\theCtr#*
\thearraylength#*
\thempgfig#*
\therecordCtr#*
\thezeroCtr#*
|