[luatex] Getting the extra primitives?
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Feb 16 12:04:05 CET 2010
On 16/02/2010 10:55, Taco Hoekwater wrote:
>
>
> Joseph Wright wrote:
>>
>> This is LuaTeX, Version beta-0.40.6-2009110118 (Web2C 2009)
>> (format.ltx
>> ! LuaTeX error wrong number of arguments
>> stack traceback:
>> [C]: in function 'enableprimitives'
>> <\directlua>:1: in main chunk.
>> l.27 }
>>
>> ?
>> ! Emergency stop.
>> l.27 }
>>
>> What did I get wrong?
>
> That depends on line 1-26 of your input file.
>
> Best wishes,
> Taco
>
Hello Taco,
Hmm, very odd: after moving the lines around the problem has gone away,
even putting everything back as it was. Not sure quite what I messed up:
sorry for the noise.
Next question, which is sort-of related (now I have some primitives!).
LuaTeX doesn't have \pdfstrcmp, so what is the best way to do
\def\somefunction#1#2{%
\ifnum\pdfstrmp{\unexpanded{#1}}{\unexpanded{#2}} = 0\relax
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
}
\def\someotherfunction#1#2{%
\ifnum\pdfstrmp{#1}{#2} = 0\relax
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
}
in LuaTeX? Obviously "using Lua", but I'm still trying to get the hang
of things.
--
Joseph Wright
More information about the luatex
mailing list