Dear Gavin,

I am aware of these resources. My question is about docs of those Metapost libs which are in the distribution in Metapost directory.

On Thu, Jan 11, 2024 at 9:12 PM Gavin via ntg-context <ntg-context@ntg.nl> wrote:
Hi Shiv,

I am working with MetaPost in ConTeXt. Here are the resources I use, roughly in the order I search when trying to solve a problem.

- MetaFun Manual (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf) This is most comprehensive and helpful source.
- MetaPost Manual (http://mirrors.ctan.org/systems/doc/metapost/mpman.pdf) This is not specific to ConTeXt, but it is very useful.
- The MetaFun page on the ConTeXt wiki (https://wiki.contextgarden.net/MetaFun_-_MetaPost_in_ConTeXt) Other pages in the wiki’s graphics area are also helpful. (https://wiki.contextgarden.net/Graphics) Searching the wiki for specific documentation on things like chemical structures is a little hit-or-miss, but often quite useful.
-The mailing list. I have the most luck with very specific questions that include a minimal working example. It should include the appropriate \starttext…\stoptext or \startMPpage…\stopMPpage, so that it can be typeset as-is.

If you want to do 3D, you may want to get Lua involved for calculations. I use

- Programming in LuaTeX page on the wiki (https://wiki.contextgarden.net/Programming_in_LuaTeX)
- Programming in Lua, 4th ed.
by Roberto Ierusalimschy (https://www.amazon.com/gp/product/8590379868)

If you provide an example of what you hope to accomplish with MetaPost, we might have more specific recommendations. Below are two graphs that I made in TikZ, which I hope to convert to MetaPost (actually LMTX). These are from my chapter on elliptical orbits.

I hope that helps you get started.

Gavin

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________


--
Respect,
Shiv Shankar Dayal