Questions tagged [luamplib]

package to typeset Meta­Post code into a `LuaTeX` doc­u­ment, using LuaTeX’s built-in Meta­Post Li­brary(`lua` `mplib`)

Filter by
Sorted by
Tagged with
2
votes
1answer
68 views

How to draw graphs of standard functions using mpgraph?

Is it possible to draw graph of standard functions using mpgraph (probably using lua, mplib)? For example something like gdraw(sin(x)+cos(x)), gdraw(2x+3) and in general gdraw(f(x)) where f(x) is ...
4
votes
1answer
77 views

Using Lua functions with mplib and mpgraph

This question has reference to the question Error with Lua, Luamplib and Mpgraph I am trying to use lua functions inside mplib. The detailed code is here. \documentclass{article} \usepackage{luacode}...
4
votes
1answer
76 views

Error with Lua, Luamplib and Mpgraph

The following code works fine. \documentclass{article} \usepackage{luamplib} \begin{document} \begin{mplibcode} input graph ; beginfig(0) ; draw begingraph(5cm,3cm) gdraw (0,0) for x = 1 ...
2
votes
1answer
46 views

Metapost bounding box and penwidth

When clipping a picture to a bounding box in metapost, extra space outside of the drawn area is included. When this extra space is removed with bboxmargin := 0; it appears that the picture is clipped ...
2
votes
1answer
41 views

Latex command inside metapost label

This is a minimal code example. \documentclass[12pt]{article} \usepackage{luamplib} \begin{document} \begin{mplibcode} beginfig(1) label(btex A-\textbf{B} etex,origin); endfig; \end{mplibcode} \end{...
1
vote
0answers
38 views

luamplib: global definitions without inheritance

Is there a way of globally metapost macros using luamplib and without enabling inheritance for mplibcode code blocks? It seems possible since it appears that this is what luamplib does when setting ...
3
votes
2answers
82 views

background color with \mpcolor

I'm using following code and I would like to make the color of the background correspond to that of the beamer style. I tried the command background:=\mpcolor{block body example.bg}; but it does not ...
1
vote
1answer
161 views

luamplib Multiple beginfigures

I'd like to include a METAPOST file that contains multiple beginfig blocks in my LuaLaTeX document. I'm including the file using input filename ; within a mplibcode environment, but this just places ...
3
votes
1answer
198 views

OpenType MPlib labels with luatex-plain

I am trying to get the luamplib to work with the luatex-plain -format. I installed BasicTeX2014, and then did tlmgr install context. Then I did luatex --ini /usr/local/texlive/2014basic/texmf-dist/...
7
votes
2answers
342 views

Is it possible to pass options to mpost.exe using luamplib?

I would like to use the development version of metapost with luamplib. I've switched over the executable mpost.exe which is presumable called by luamplib somewhere along the line. Now, I would like ...