LaTeX Error: Missing \begin{document} The solution Delete all files except.tex, and run it again. It’s ok!!