Sorry for forget to attach a test file.
Below is a minimal test file.

\documentclass{book}

\title{foo}
\author{foo}

\begin{document}
\maketitle
\end{document}

Later I found that the problem seems to be related to the file name. While the 
file name contains space, lualatex fails, otherwise it performs good. eg, with 
the minimal test file as above, if I name the finale "a b.tex", in terminal, 
The following is produced

$ cat a\ b.tex 
\documentclass{book}

\title{foo}
\author{foo}

\begin{document}
\maketitle
\end{document}


$ lualatex a\ b.tex 
This is LuaTeX, Version beta-0.60.1-2010052109 (TeX Live 2010/pretest) (rev 
3685) 
 restricted \write18 enabled.
("./a b.tex"
LaTeX2e <2009/09/24>
LuaTeX adaptation of babel <v3.8l-luatex-1.4> and hyphenation patterns for engl
ish, dumylang, nohyphenation, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/bk10.clo))

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.6 \begin{document}
                    
? 




On Jun 10, 2010, at 10:43 AM, Khaled Hosny wrote:

> On Thu, Jun 10, 2010 at 10:31:09AM +0100, Yan Zhou wrote:
>> Dear all,
>> 
>> I am trying out TeX Live 2010 pretest. I tried to compile an old document 
>> with lualatex. It compiles perfectly with pdflatex, but with lualatex, it 
>> fails. Below it the error message.
>> 
>> ! LaTeX Error: Missing \begin{document}.
>> 
>> See the LaTeX manual or LaTeX Companion for explanation.
>> Type  H <return>  for immediate help.
>> ...                                              
>> 
>> l.429 \begin{document}
>> 
>> 
>> It looks rather strange. Luatex stop at the line of  \begin{document} but 
>> complain that \begin{document} is missing. Is there any extra setup steps 
>> needed for luatex?
> 
> Without a test file there is hardly anything we can do.
> 
> -- 
> Khaled Hosny
> Arabic localiser and member of Arabeyes.org team
> Free font developer


Reply via email to