I'm working on a book of chants, using gregorio. The gregorio package requires LuaLaTeX. To simplify the issue, however, I narrowed the error down with this sample .tex file:
\documentclass{scrbook} \begin{document} \title{Title} \maketitle Lorem Lipsum \end{document} Compiling with LaTeX works fine, but when I try it with LuaLaTeX, it produces the following errors:
***snip*** )) (./test.aux) ! Missing number, treated as zero. <to be read again> p l.2 \begin{document} ? ! Illegal unit of measure (pt inserted). <to be read again> p l.2 \begin{document} ? ! Missing number, treated as zero. <to be read again> \begingroup l.2 \begin{document} ? ! Illegal unit of measure (pt inserted). <to be read again> \begingroup l.2 \begin{document} ? ------------------- The output .pdf file has this text at the top of the page:
pagewidth=pageheight= Am I fighting a pointless battle? I can use the {article} document type without issue, but the {scrbook} seems more appropriate. If there's no simple solution, I'll just go with article, but... Any advice?
luatex85.latexandlualatex. Maybe try deleting your.auxfile before recompiling.