ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt expression evaluation in Lua
@ 2010-06-10 19:17 Jaroslav Hajtmar
  2010-06-10 19:24 ` luigi scarso
  0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Hajtmar @ 2010-06-10 19:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


I apologize for maybe a trivial question, but I found it nowhere.
It is possible in Lua to find value of counter (or dimension) that has 
been set in ConTeXt?

Eg.

\newcounter\mycount
\newdimension\mydimen

\mycount=5
\mydimen=12pt
% It will be the parameterS of Lua function


\startluacode
LuaFunction("Filename.csv", VALUEOFCOUNTER("\\the\\mycount"), 
VALUEOFDIMENSION("\\the\\mydimen"))

\stopluacode

Thanx Jaroslav

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-10 20:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-10 19:17 ConTeXt expression evaluation in Lua Jaroslav Hajtmar
2010-06-10 19:24 ` luigi scarso
2010-06-10 20:02   ` Jaroslav Hajtmar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).