* 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
* Re: ConTeXt expression evaluation in Lua
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
0 siblings, 1 reply; 3+ messages in thread
From: luigi scarso @ 2010-06-10 19:24 UTC (permalink / raw)
To: hajtmar, mailing list for ConTeXt users
On Thu, Jun 10, 2010 at 9:17 PM, Jaroslav Hajtmar <hajtmar@gyza.cz> wrote:
>
> 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
google luatexref-t.pdf for luatex beta 0.61.0 or similar
(if I recall correctly it should be the section "The tex library")
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
luigi
___________________________________________________________________________________
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
* Re: ConTeXt expression evaluation in Lua
2010-06-10 19:24 ` luigi scarso
@ 2010-06-10 20:02 ` Jaroslav Hajtmar
0 siblings, 0 replies; 3+ messages in thread
From: Jaroslav Hajtmar @ 2010-06-10 20:02 UTC (permalink / raw)
To: luigi scarso; +Cc: mailing list for ConTeXt users
Thanx Luigi,
You are right. I am stupid, I found bad keywords ...
Thanks for your patience with a beginner
Jaroslav
Dne 10.6.2010 21:24, luigi scarso napsal(a):
> google luatexref-t.pdf for luatex beta 0.61.0
___________________________________________________________________________________
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).