[NTG-context] Re: Metapost docs

2024-01-11 Thread Hans Hagen

On 1/11/2024 4:54 PM, Shiv Shankar Dayal wrote:

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.
If something is not in the metafun, luametafun or another manual, then 
you should not use it as it's likely some low level helper then.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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


[NTG-context] Re: Metapost docs

2024-01-11 Thread Shiv Shankar Dayal
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 
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
___
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
___


[NTG-context] Re: Metapost docs

2024-01-11 Thread Gavin via ntg-context
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



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


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
___


[NTG-context] Re: Metapost docs

2024-01-10 Thread shivshankar . dayal
I have files in my installation like 'mp-form.mkiv, mp-chem.mkiv' and so on.

-- Respect,
Shiv Shankar Dayal
___
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
___


[NTG-context] Re: Metapost docs

2024-01-08 Thread Hans Hagen via ntg-context

On 1/8/2024 1:50 AM, Shiv Shankar Dayal wrote:
I see many libraries for Metapost in Context source. Where are these 
documented? I see Metafun manual as well, but I do not find all the 
included libraries described.


i'm not sure what you mean with library ... can you give an example?

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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