As has been discussed on Tex.stackexchange \typein breaks in luatex as it sets \endlinechar to a value not allowed in luatex: http://tex.stackexchange.com/questions/12435/incompatibilities-between-lualatex-and-typein Philipp suggested a patch which seems to work fine. Could this patch been added to lualatex.ini? -- Ulrike Fischer