* A question about the node library in luatex
@ 2008-05-26 10:00 Jin-Hwan Cho
2008-05-26 10:08 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Jin-Hwan Cho @ 2008-05-26 10:00 UTC (permalink / raw)
To: mailing ConTeXt users list for
I am trying a few tests with luatex.
1. Made a format file "luaetex.fmt" by "luatex --ini etex.ini"
and a lua file "luaetex.lua" containing just one line "node.types()"
2. Test file "test.tex" is as follows:
\directlua0{node.types()}
\bye
3. Run "luatex --fmt=luaetex.fmt test". Then there is no problem.
4. Instead, "luatex --lua=luaetex.lua --fmt=luaetex.fmt test" causes
an error.
Why don't we use the node library in the lua file "luaetex.lua"?
Thanks in advance, ChoF.
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A question about the node library in luatex
2008-05-26 10:00 A question about the node library in luatex Jin-Hwan Cho
@ 2008-05-26 10:08 ` Hans Hagen
2008-05-26 10:34 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2008-05-26 10:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jin-Hwan Cho wrote:
> I am trying a few tests with luatex.
>
> 1. Made a format file "luaetex.fmt" by "luatex --ini etex.ini"
> and a lua file "luaetex.lua" containing just one line "node.types()"
that's rather useless lua
make that
for k, v in ipairs(nodes.types()) do
print(k,v)
end
or so; also keep in mind that some libraries are initialized and
available a bit later (after all, there is no need to initialize nodes
when just processing lua code)
> 2. Test file "test.tex" is as follows:
>
> \directlua0{node.types()}
> \bye
just a function
> 3. Run "luatex --fmt=luaetex.fmt test". Then there is no problem.
>
> 4. Instead, "luatex --lua=luaetex.lua --fmt=luaetex.fmt test" causes
> an error.
what error
> Why don't we use the node library in the lua file "luaetex.lua"?
?
hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A question about the node library in luatex
2008-05-26 10:08 ` Hans Hagen
@ 2008-05-26 10:34 ` Taco Hoekwater
2008-05-26 11:52 ` Jin-Hwan Cho
0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2008-05-26 10:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
>> Why don't we use the node library in the lua file "luaetex.lua"?
>
> ?
From the manual:
Commandline processing happens very early on. So early, in fact, that
none of TeX's initializations have taken place yet. For that reason,
the tables that deal with typesetting, like tex, token, node and pdf,
are off-limits during the execution of the startup file
Best wishes,
Taco
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A question about the node library in luatex
2008-05-26 10:34 ` Taco Hoekwater
@ 2008-05-26 11:52 ` Jin-Hwan Cho
0 siblings, 0 replies; 4+ messages in thread
From: Jin-Hwan Cho @ 2008-05-26 11:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
On May 26, 2008, at 7:34 PM, Taco Hoekwater wrote:
>>> Why don't we use the node library in the lua file "luaetex.lua"?
>>
>> ?
>
> From the manual:
>
> Commandline processing happens very early on. So early, in fact,
> that
> none of TeX's initializations have taken place yet. For that reason,
> the tables that deal with typesetting, like tex, token, node and
> pdf,
> are off-limits during the execution of the startup file
Thanks a lot.
Actually I wanted to load "font-otf.lua" in the file "luaetex.lua",
but there
were bunch of "node" in that file. I must change my mind.
Best regards, ChoF.
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-26 11:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-26 10:00 A question about the node library in luatex Jin-Hwan Cho
2008-05-26 10:08 ` Hans Hagen
2008-05-26 10:34 ` Taco Hoekwater
2008-05-26 11:52 ` Jin-Hwan Cho
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).