diff options
Diffstat (limited to 'info/drawing-with-metapost/src/verbatim-with-infont.mp')
-rw-r--r-- | info/drawing-with-metapost/src/verbatim-with-infont.mp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/info/drawing-with-metapost/src/verbatim-with-infont.mp b/info/drawing-with-metapost/src/verbatim-with-infont.mp new file mode 100644 index 0000000000..7e4081a8e8 --- /dev/null +++ b/info/drawing-with-metapost/src/verbatim-with-infont.mp @@ -0,0 +1,13 @@ +prologues := 3; +outputtemplate := "%j.eps"; +beginfig(1); + string s; s = "\TeX\ sets maths like this $e=mc^2$"; + draw ("1. " & s) infont defaultfont; + draw ("2. " & s) infont "texnansi-lmr10" shifted 20 down; + draw ("3. " & s) infont "cmtt10" shifted 40 down; + draw ("4. " & s) infont "texnansi-lmtt10" shifted 60 down; + bboxmargin := 14; + picture p; p = currentpicture; fill bbox currentpicture withcolor (1,1,31/32); draw p; + draw bbox p; +endfig; +end. |