## LaTeX forum ⇒ LyX ⇒ LaTeX error: Missing \begin{document}

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
0zymandias
Posts: 4
Joined: Sun Oct 28, 2018 5:37 pm

### LaTeX error: Missing \begin{document}

That's the error that's showing up when I try to compile and visualize the file in pdf.

Attachments
Relatório- Lei de Stefan-Boltzmann.lyx
file with error

Stefan Kottwitz
Posts: 9223
Joined: Mon Mar 10, 2008 9:44 pm
Could you please post your .log file, as attachment? And perhaps also a pdfLaTeX export? That can be done in the first main (file) menu of LyX. That's because in that case also LaTeX user (such as me) can check and help.

The attachment link is below the text edit field, when editing or writing a post. The same way you added the .lyx file.

Stefan

0zymandias
Posts: 4
Joined: Sun Oct 28, 2018 5:37 pm
Anyways I ended up exporting to LaTeX and doing it from there however I was doing another paper and the same problem arised, here is the log file and PDFLATEX.
Attachments
relatorio.tex
Screenshot_1.jpg (45.34 KiB) Viewed 122 times

Stefan Kottwitz
Posts: 9223
Joined: Mon Mar 10, 2008 9:44 pm
This file runs for me. I don't have the images, so I added the demo option in

\usepackage[demo]{graphicx}

but then it compiles without such an error. Can you attach the .log file for compiling this relatorio.tex?

Stefan