From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: hajtmar@gyza.cz
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Finding values of the context macros inside Lua functions (=expansion inside Lua functions?)
Date: Sun, 17 Jul 2011 14:53:03 +0200 [thread overview]
Message-ID: <579F54E4-80CD-4356-8294-3A5FBA13ABAC@googlemail.com> (raw)
In-Reply-To: <4E22D89C.6060609@gyza.cz>
Am 17.07.2011 um 14:42 schrieb Jaroslav Hajtmar:
> Thanx Wolfgang.
> But I guess I was wrong to express..
>
> I need to pass parameter '\\macroI' to the function and turn it up a inside luafunction expand to its value.
Not possible.
> Ie when \def\macroI{6}
>
> Then I need when I make in your example \ctxlua{test("\\macroI")} get the result :
> "The argument “6” is a positive number" and not result "The argument “6” is a string."
That’s odd because for me
\ctxlua{test("\macroI")}
results in
The argument “6” is a positive number.
and
\ctxlua{test("\\macroI")}
in
The argument “6” is a string.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-07-17 12:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-17 12:01 Jaroslav Hajtmar
2011-07-17 12:19 ` Wolfgang Schuster
2011-07-17 12:42 ` Jaroslav Hajtmar
2011-07-17 12:53 ` Wolfgang Schuster [this message]
2011-07-17 13:10 ` Jaroslav Hajtmar
2011-07-17 13:40 ` Wolfgang Schuster
2011-07-17 13:49 ` Jaroslav Hajtmar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=579F54E4-80CD-4356-8294-3A5FBA13ABAC@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=hajtmar@gyza.cz \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).