<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 05/03/2025 12:30, Joseph Wright
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d475dbf4-5412-4529-aca0-ee08274b4c2a@texdev.net"><br>
Yes - token.new() creates a character token with the given catcode
-
<br>
compare with token.create() which will default to the current
catcode
<br>
table. All covered (a bit) in the LuaTeX manual.
<br>
</blockquote>
<p>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 :</p>
<p><font face="monospace">\immediate\useimageresource{foo.pdf}%</font></p>
<p>yet when I paste that into an otherwise empty LuaTeX source file
and attempt to compile it, I am told :</p>
<p><font face="monospace">This is LuaTeX, Version 1.18.0 (TeX Live
2024) <br>
restricted system commands enabled.<br>
(./untitled-5.tex<br>
! Missing number, treated as zero.<br>
<to be read again> <br>
{<br>
l.1 \immediate \useimageresource {<br>
foo.pdf}<br>
? <br>
</font></p>
<p>and indeed, there does not seem to be any formal definition of
either <font face="monospace">\useimageresource </font>or <font
face="monospace">\loadimageresource </font>— they are <i>discussed</i>,
but never <i>defined</i>, as far as I can see (certainly not a
formal syntax definition).</p>
<p>-- <br>
<i>** Phil.</i><br>
</p>
</body>
</html>