[tex-live] texdoc error
Manuel Pégourié-Gonnard
mpg at elzevir.fr
Mon Sep 1 20:51:06 CEST 2008
Philip TAYLOR a écrit :
> If you could send me a trivial working example,
I was indeed trying to do a minimal working/failing example, and I think
I got one. Use the two following files:
% begin contents of d:\mpg\program.tlu
os.execute ('start "" "d:\\mpg\\presentation.pdf"')
% end program.tlu
(where you replace d:\\mpg\\presentation.pdf with the path to an
exsiting pdf file, with \ escaped)
% begin contents of wrapper.tlu
command = {}
command[0] = 'texlua'
command[1] = '"texlua"'
command[2] = '"d:/mpg/program.tlu"'
-- kpse.set_program_name("texlua") -- sic!
ret=os.spawn(command)
os.exit(ret)
% end wrapper.tlu
Now you can type 'texlua wrapper.tlu' in a command line: it works.
Then you uncomment the call to kpse.set_program_name and try again: it
fails with the (in)famous AR9 "internal error" we're talking about since
the beginning of this thread.
Then you keep the line uncommented and change your file associations in
windows to open pdf with another pdf viewer (say sumatrapdf) it works again.
This sounds like black magic to me. Anyway, it mostly look like a
texlua/kpse/AR9 problem now, so unless someone has a briliant idea, I'll
forward the previous example to the luatex mailing list.
Manuel.
More information about the tex-live
mailing list