Am Montag, den 12.12.2011, 23:13 +0100 schrieb Mojca Miklavec:

[…]

> One more example. One thing that would most probably work (I didn't
> try it) would be the following:
> 
> \startGNUPLOTscript[name]
> plot sin(x) t '$\pi = \ctxlua{math.pi()}$'
> \stopGNUPLOTscript

It has some syntax errors, but that is what I tried first and it worked
great. Here is a full example.

        \usemodule[gnuplot]
        
        \startGNUPLOTscript[pi]
        plot pi t '$π = \ctxlua{context(math.pi)}$'
        \stopGNUPLOTscript
        
        \starttext
        \useGNUPLOTgraphic[pi]
        
        \blank
        \CONTEXT\ \contextmark\ \contextversion
        \stoptext


Thanks,

Paul

Attachment: gnup.pdf
Description: Adobe PDF document

\usemodule[gnuplot]

\startGNUPLOTscript[pi]
plot pi t '$π = \ctxlua{context(math.pi)}$'
\stopGNUPLOTscript

\starttext
\useGNUPLOTgraphic[pi]

\blank
\CONTEXT\ \contextmark\ \contextversion
\stoptext

Attachment: signature.asc
Description: This is a digitally signed message part

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to