Does anyone out there have a cute way of previewing images generated by MetaPost? As far as I can tell, after making the .mp file there is a bit a process for viewing the file. I figure there aught to be an easy script to write that would convert the .mp file to a .pdf, and then open the .pdf with Adobe, or something along those lines, but I lack the ability to write BASH code, or even know the proper terminology to use to talk about such scripts. (BASH code, shell scripts... Something)
Edit: I forgot to mention, I was looking for such a script that would run automatically after compiling in TexMaker. Again, I assume there must be a way to do such a thing, but I don't know how. I want to be able to click the "MPost" build option, and then see a preview, without needing to go through the trouble manually running the conversion command.
mptopdf? Note that one complication is that there need not be a one-to-one mapping from.mpto.pdf, so the situation is rather unlike the usual.texcase. (There need not be such a mapping there either but there usually is. That's not so for an.mpfile.) – cfr Mar 22 '15 at 21:12\convertMPtoPDFcommand... – Malipivo Mar 22 '15 at 21:16mptopdf, but much more friendly) for previewing MetaPost programs: https://users.dimi.uniud.it/~nicola.vitacolonna/home/software/metapost-texshop/. They were devised for TeXShop, but they can be run from any Unix command line, and so they should be compatible with any editor which can launch external tasks. I don't know about their compatibility with Windows. – Franck Pastor Mar 22 '15 at 21:34luamplibpackage: https://www.ctan.org/pkg/luamplib. In combination with thestandaloneclass, it produces ready-to-use PDF outputs. I've often used it this way myself on this site, for example here: http://tex.stackexchange.com/questions/234116/how-to-fill-an-area-below-sine-wave/234158#234158 – Franck Pastor Mar 22 '15 at 21:48araraor something to convert them and maybe even to open the results. (Or you can configure your editor to open the results.) But the question remains: which PDF should be opened? All of them? Some of them? – cfr Mar 22 '15 at 22:46prologues:=3and anoutputtemplatewith an extension of.eps. If you open the.epsfile in Skim, and turn on the "check for file changes" option (on the Sync tab), it will automagically update the PDF copy when the.epschanges. – Thruston Mar 22 '15 at 22:59nv-metapostandnv-metafun) don't choose: they both create a PDF file that includes all the figures defined in the MetaPost file (each figure having its own page), and they both open this multiple-paged PDF for viewing. – Franck Pastor Mar 23 '15 at 07:34