Choice of processor

Philip Taylor P.Taylor at Hellenic-Institute.Uk
Wed Mar 5 13:42:38 CET 2025


On 05/03/2025 12:30, Joseph Wright wrote:
>
> Yes - token.new() creates a character token with the given catcode -
> compare with token.create() which will default to the current catcode
> table. All covered (a bit) in the LuaTeX manual.

Thank you Joseph.  I have read (and re-read) the LuaTeX manual, but I 
have not found it entirely satisfactory — for example, on page 235, near 
the bottom, there is an example line which reads :

\immediate\useimageresource{foo.pdf}%

yet when I paste that into an otherwise empty LuaTeX source file and 
attempt to compile it, I am told :

This is LuaTeX, Version 1.18.0 (TeX Live 2024)
  restricted system commands enabled.
(./untitled-5.tex
! Missing number, treated as zero.
<to be read again>
{
l.1 \immediate \useimageresource {
                                 foo.pdf}
?

and indeed, there does not seem to be any formal definition of either 
\useimageresource or \loadimageresource — they are /discussed/, but 
never /defined/, as far as I can see (certainly not a formal syntax 
definition).

-- 
/** Phil./

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20250305/8ee01872/attachment-0001.htm>


More information about the texhax mailing list.