summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mpgraphics
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-04 23:12:02 +0000
committerKarl Berry <karl@freefriends.org>2013-04-04 23:12:02 +0000
commit3282d3692e4e917cffaaf1ce14f6cf16bc5aa32d (patch)
tree862d833328d363508afc0d05c8acbff5a270666d /Master/texmf-dist/doc/latex/mpgraphics
parent2752d98618b0edbbbdb94d1b975daa6857badcc0 (diff)
mpgraphics (4apr13)
git-svn-id: svn://tug.org/texlive/trunk@29655 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 -> 158013 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..775c009a974
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mpgraphics/README
@@ -0,0 +1,23 @@
+_________________
+The mpgraphics package
+v0.3
+
+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
+Vafa.Khalighi@student.uts.edu.au
+
+Copyright © 2011-2012
+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..9d00760aa53
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mpgraphics/mpgraphics.pdf
Binary files differ