summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-03-06 23:02:07 +0000
committerKarl Berry <karl@freefriends.org>2014-03-06 23:02:07 +0000
commit2cae2bb164327cd36f426861958b9e76dbdfb80d (patch)
tree1095ab4ae2e813797ab3e02408060579b1f0ca32 /Master/texmf-dist/doc/luatex
parenteac3699c6b426ce060acf916c17d2b25f06f8818 (diff)
luamplib (2mar14)
git-svn-id: svn://tug.org/texlive/trunk@33111 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex')
-rw-r--r--Master/texmf-dist/doc/luatex/luamplib/NEWS16
-rw-r--r--Master/texmf-dist/doc/luatex/luamplib/luamplib.pdfbin119768 -> 126379 bytes
-rw-r--r--Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex16
-rw-r--r--Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex19
4 files changed, 49 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/luatex/luamplib/NEWS b/Master/texmf-dist/doc/luatex/luamplib/NEWS
index 43da66abb30..24e92825cf4 100644
--- a/Master/texmf-dist/doc/luatex/luamplib/NEWS
+++ b/Master/texmf-dist/doc/luatex/luamplib/NEWS
@@ -1,5 +1,19 @@
History of the luamplib package
+2014/03/01 2.5.3
+ * using \mplibcachedir{<directory path>}, users can change the
+ directory for storing cache files. By default, it is the directory
+ where pdf output file is saved.
+ * at the end of package loading, luamplib searches 'luamplib.cfg',
+ and, when found, reads the file in automatically.
+
+2014/02/24 2.5.2
+ * new macros \mplibmakenocache{...} and \mplibcancelnocache{...} to
+ register/unregister those .mp files that do not need caches.
+ These macros affect the compilation speed only.
+ * added a hack to support graph.mp (in fact, format.mp)
+ * [fix] luamplib now respects percent sign if it is enclosed by quotes.
+
2014/02/19 2.5
* btex ... etex input from external *.mp files will also be processed
by luamplib. However, verbatimtex ... etex will be entirely ignored
@@ -25,7 +39,7 @@
Using this macro, each mplib box can be moved horizontally and/or
vertically.
-2013/12/23 2.11
+2013/12/23 2.1.1
* fix a bug wrt "withoutcolor" option
* fix a bug wrt "char <number> infont <font>" picture
* bypass some ConTeXt commands which raise errors under metafun format
diff --git a/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf b/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf
index c9b1df7af42..0676a222cdf 100644
--- a/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf
+++ b/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
index 993ce15f149..3708916fe51 100644
--- a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
+++ b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
@@ -26,7 +26,8 @@ A%
verbatimtex \lower.2em etex
beginfig(0);
draw origin--(1cm,0) withcolor red;
-draw btex g etex withcolor blue;
+draw btex g\begin{huge}g\end{huge}etex withcolor blue;
+draw bbox currentpicture;
endfig;
beginfig(18);
@@ -100,4 +101,17 @@ u := 10**5*(10**-4);
draw unitsquare scaled u;
endfig;
\end{mplibcode}%
+\mplibsetformat{plain}%
+\begin{mplibcode}
+ input graph;
+ beginfig(0);
+ draw begingraph(100,100);
+ gdraw (10,10)--(30,35)--(50,25)--(70,80)--(90,90);
+ autogrid(otick.bot,);
+ for y=20,40,60,80:
+ grid.lft(format("%e",1000y), y) withcolor .85white;
+ endfor
+ endgraph;
+ endfig;
+\end{mplibcode}%
\end{document}
diff --git a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex
index a2e9dd1489f..ee5a5231d54 100644
--- a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex
+++ b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex
@@ -24,6 +24,12 @@ verbatimtex \lower.2em etex
beginfig(0);
draw origin--(1cm,0) withcolor red;
draw btex g etex withcolor blue;
+draw btex\tracingcommands0 multi
+ line
+ tex code
+ etex shifted (20,0);
+draw textext("\tracingcommands0 textext 50\% color") shifted (10,-10) withcolor .5white;
+draw bbox currentpicture;
endfig;
beginfig(18);
@@ -97,4 +103,17 @@ u := 10**5*(10**-4);
draw unitsquare scaled u;
endfig;
\endmplibcode
+\mplibsetformat{plain}%
+\mplibcode
+ input graph;
+ beginfig(0);
+ draw begingraph(100,100);
+ gdraw (10,10)--(30,35)--(50,25)--(70,80)--(90,90);
+ autogrid(otick.bot,);
+ for y=20,40,60,80:
+ grid.lft(format("%e",1000y), y) withcolor .85white;
+ endfor
+ endgraph;
+ endfig;
+\endmplibcode
\bye