summaryrefslogtreecommitdiff
path: root/macros/latex/exptl/graphicp/descend.mp
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/exptl/graphicp/descend.mp
Initial commit
Diffstat (limited to 'macros/latex/exptl/graphicp/descend.mp')
-rw-r--r--macros/latex/exptl/graphicp/descend.mp34
1 files changed, 34 insertions, 0 deletions
diff --git a/macros/latex/exptl/graphicp/descend.mp b/macros/latex/exptl/graphicp/descend.mp
new file mode 100644
index 0000000000..193612a443
--- /dev/null
+++ b/macros/latex/exptl/graphicp/descend.mp
@@ -0,0 +1,34 @@
+%
+% descend.mp -- a MetaPost figure that descends far below the baseline
+% by pts@fazekas.hu at Wed Feb 5 00:28:41 CET 2003
+%
+
+% input plain;
+
+% message jobname;
+
+extra_endfig := extra_endfig
+ & "special ("
+ & ditto & "%%HiResBoundingBox: " & ditto
+ & "&decimal xpart llcorner currentpicture &" & ditto & " " & ditto
+ & "&decimal ypart llcorner currentpicture &" & ditto & " " & ditto
+ & "&decimal xpart urcorner currentpicture &" & ditto & " " & ditto
+ & "&decimal ypart urcorner currentpicture );";
+
+prologues:=2; % 2 == TeX
+
+%beginfig(-1)
+beginfig(1)
+%string extra_endfig;
+ %boxit a (btex Essai etex);
+ %fill bpath a witchcolor .5[red,white];
+ %drawboxed(a);
+ pair A, B, C;
+ A:=(-5bp,-28bp); B:=(1cm,-28bp); C:=(-5bp,28bp);
+ draw A--B--C--cycle;
+ draw 1/2[A,B] -- C;
+ draw 1/2[B,C] -- A;
+ draw 1/2[C,A] -- B;
+endfig;
+
+end;