[luatex] lua scripts
T T
t34www at googlemail.com
Thu Apr 21 00:03:32 CEST 2011
On 20 April 2011 21:26, Bob Tennent <rdt at cs.queensu.ca> wrote:
>
>> Ask on the MikTeX list.
>
> I did. They sent me here.
Who did? Odd advice. We are not developing MikTeX. I can tell you
all about script wrapping in TeX Live, but not in MikTeX. This is not
something standardized, like TDS.
>
>> AFAIR, MikTeX automatically creates exe stubs
> for perl and batch scripts located under <TEXMF>/scripts. I wouldn't
> be surprised if the same is done for (TeX)Lua scripts.
>
> That would seem sensible. But it doesn't happen if you just put a lua
> script under <TEXMF>/scripts and hit "Refresh FNDB"; perhaps it happens
> when a MikTeX package is being put together.
I just tried, it doesn't seem to work even for perl / batch scripts.
Maybe I remember it wrong.
Anyway, on MikTeX 2.9 the following batch works (should be a single
line in case it gets broken):
@for /f "delims=" %%I in ('kpsewhich --format=texmfscripts
%~n0.lua') do texlua %%I %*
(If you save it as foo.bat, it will search and launch foo.lua script.)
Cheers,
Tomek
More information about the luatex
mailing list