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

Attachment: chapter07-t-b-8c929184fdcc9da93d1ffe5262fc9842.pdf
Description: Adobe PDF document

Attachment: chapter07-t-b-613fffa20a4b3581222e7b521bef3ace.pdf
Description: Adobe PDF document

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to