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
    \expandaft...@firstoftwo
  \else
    \expandaft...@secondoftwo
  \fi
}
\def\someotherfunction#1#2{%
  \ifnum\pdfstrmp{#1}{#2} = 0\relax
    \expandaft...@firstoftwo
  \else
    \expandaft...@secondoftwo
  \fi
}

in LuaTeX? Obviously "using Lua", but I'm still trying to get the hang of things.
--
Joseph Wright

Reply via email to