summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mpgraphics
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-03-06 00:56:59 +0000
committerKarl Berry <karl@freefriends.org>2011-03-06 00:56:59 +0000
commit0d9de0fdcbe9d6f215c9341651d5b6033d7c673e (patch)
tree7b1f8f7f823b5dcd3705f10297926b9d0fd7e3f3 /Master/texmf-dist/doc/latex/mpgraphics
parent6c3b1b3b55d858db3797bb0c390e6069f7a7110c (diff)
new latex/mpost package mpgraphics (5mar11)
git-svn-id: svn://tug.org/texlive/trunk@21613 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/mpgraphics')
-rw-r--r--Master/texmf-dist/doc/latex/mpgraphics/README23
-rw-r--r--Master/texmf-dist/doc/latex/mpgraphics/mpgraphics-example.ltx32
-rw-r--r--Master/texmf-dist/doc/latex/mpgraphics/mpgraphics.pdfbin0 -> 152981 bytes
3 files changed, 55 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/mpgraphics/README b/Master/texmf-dist/doc/latex/mpgraphics/README
new file mode 100644
index 00000000000..2b1ebecc388
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mpgraphics/README
@@ -0,0 +1,23 @@
+_________________
+The mpgraphics package
+v0.1
+
+mpgraphics allows users to typeset metapost inline and display
+figures in their LaTeX documents with only and only one run of
+LaTeX, or PDFLaTeX, or XelaTeX (no separate runs of mpost).
+mpgraphics achieves this by using shell scape or write 18
+feature so the whole process is automatic and the
+end user do not need to carry out the long process.
+
+______________
+Vafa Khalighi
+vafakhlgh@gmail.com
+
+Copyright © 2011
+Distributed under the LaTeX Project Public License
+It may be distributed and/or modified under the LaTeX Project Public License,
+version 1.3c or higher (your choice). The latest version of
+this license is at: http://www.latex-project.org/lppl.txt
+
+This work is “author-maintained” (as per LPPL maintenance status)
+by Vafa Khalighi.
diff --git a/Master/texmf-dist/doc/latex/mpgraphics/mpgraphics-example.ltx b/Master/texmf-dist/doc/latex/mpgraphics/mpgraphics-example.ltx
new file mode 100644
index 00000000000..6b0d38150b8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mpgraphics/mpgraphics-example.ltx
@@ -0,0 +1,32 @@
+\documentclass{article}
+\usepackage{mpgraphics}
+\begin{document}
+\begin{mpdisplay}
+LaTeX_unitlength := 1.0pt;
+w := 60*LaTeX_unitlength;
+h := 40*LaTeX_unitlength;
+numeric xmin, xmax, ymin, ymax;
+xmin := 1/4; xmax := 6; ymax := 1/xmin; u := 1cm;
+vardef f(expr x) = 1/x enddef;
+xinc := 0.1;
+path pts_f;
+pts_f := (xmin,f(xmin))*u
+for x=xmin+xinc step xinc until xmax:
+.. (x,f(x))*u
+endfor;
+path hline[], vline[];
+hline0 = (0,0)*u -- (xmax,0)*u;
+vline0 = (0,0)*u -- (0,ymax)*u;
+vline0.5 = (0.5,0)*u -- (0.5,ymax)*u;
+vline4 = (4,0)*u -- (4,ymax)*u;
+fill buildcycle(hline0, vline0.5, pts_f, vline4)
+withcolor 0.8[blue,white];
+draw hline0; draw vline0; % draw axes
+draw (0.5,0)*u -- vline0.5 intersectionpoint pts_f;
+draw (4,0)*u -- vline4 intersectionpoint pts_f;
+draw pts_f withpen pencircle scaled 2;
+label.bot(btex $x$ etex, (0.9xmax,0)*u);
+label.lft(btex $y$ etex, (0,0.9ymax)*u);
+label.urt(btex Hello $f(x)$ etex, (0.5,f(0.5))*u);
+\end{mpdisplay}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/mpgraphics/mpgraphics.pdf b/Master/texmf-dist/doc/latex/mpgraphics/mpgraphics.pdf
new file mode 100644
index 00000000000..8abcb45a0b7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mpgraphics/mpgraphics.pdf
Binary files differ