MetaPost uses a language based on that of Metafont to produce precise technical illustrations. Its output is scalable PostScript or SVG, rather than the bitmaps Metafont creates. This tag is compatible with {diagrams}.

learn more… | top users | synonyms

8
votes
0answers
121 views

Union of Paths in MetaPost

I'd like to compute the union of a collection of outlines in MetaPost. I'm aware of the buildcycle macro (in combination with cutbefore and cutafter). However, that macro is not very useful because I ...
6
votes
0answers
112 views

How to define a sort of reference in METAPOST?

Assume we are defining a canvas abstract data type in METAPOST, where some tasks are gathered. I would like to define a kind of reference to the last added task, but I do not know METAPOST good enough ...
6
votes
0answers
86 views

Is this a bug in the pfb file or a bug in metapost's “glyph”?

I've only recently started playing with metapost's "glyph". I've discovered (MWE below) an anomaly with the paths in serifs for the cm font set from these experiments. Starting point: it seems that ...
5
votes
0answers
63 views

metaobj point as object

i give a first look to metaobj package and i try to define a triangle (almost as in the manual). So here's the EDIT (fpast request) code : input metaobj; vardef newTriangle@# text options= ...
4
votes
0answers
73 views

Processing metafont source with metapost

I have a file say test.mp that contains: outputtemplate := "%j-%c.eps"; mode=localfont; mag=100.375; input cmr10.mf; When I run mpost as follow: mpost&mfplain test.mp Some of the glyphs ...
4
votes
0answers
192 views

Use fancy page numbering using Metapost graphic

ConTeXt is a great TeX format specially since Metapost is tightly integrated into it that producing page numbering style like is easily implemented if you know Metapost (which I admit I don't, ...
2
votes
0answers
21 views

Different results of running metapost on two systems

I have a problem with a metapost and LaTeX file. I use LaTeX and metapost on two different macs, both with the same version of OS X (10.9.5) and both with, as far as I can tell the same installation ...
2
votes
0answers
172 views

MetaPost to PDF in Texmaker (miktex)

I am trying to make the MPost command in Texmaker work. I am using the Texmaker in windows 7 with miktex. So far I used the example document below. When using the windows console I was able to use ...
2
votes
0answers
95 views

Omitting visibility marker in MetaUML

Is there a way to omit the visibility (lock symbol) marker in MetaUML Class objects? If I just refrain to use one I get a protected marker as a default. A short example (note: the LaTeX builder has ...
0
votes
0answers
29 views

Metapost - ! I can't find file `mpIdZQs7.aux'

I try to compile a simple metapost graphic with a TeX label (for subscript). The problem is that when I try to run 'mpost --tex=latex file.mp' I get an error. Looking through log files it seems that ...
0
votes
0answers
29 views

Unexplainable MetaPost Errors with drawarrow & math

I've run into some trouble with MetaPost's unhelpful errors, and cannot figure out why the snippet below kicks the following error: ! Extra tokens will be flushed. to be read again ...
0
votes
0answers
76 views

click button and next picture will be shown

I would like to create presentation and export to GIF, for example. I have three files: obr1.mp, obr2.mp, and obr3.mp (which is my pictures drawn). I want have .tex file, where I could press space ...
0
votes
0answers
163 views

Im trying to set up a graph but keep gettin error “isolated expression”

beginfig(1); numeric u; path xaxis,yaxis; Scale: 1=u u=0.5in; yaxis= (0,-4.1u)--(0,4.2u); xaxis= (-4.1u,0)--(4.2u,0); pickup pencircle scaled 1pt; drawarrow xaxis; drawarrow yaxis; pickup pencircle ...