12 Dec
2011
12 Dec
'11
11:44 p.m.
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