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.

please help
Attachments
Relatório- Lei de Stefan-Boltzmann.lyx
file with error
(12.27 KiB) Downloaded 59 times

Stefan Kottwitz
Site Admin
Posts: 9397
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
Site admin

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
(4.19 KiB) Downloaded 49 times
Screenshot_1.jpg (45.34 KiB) Viewed 463 times

Stefan Kottwitz
Site Admin
Posts: 9397
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
Site admin

Return to “LyX”

Who is online

Users browsing this forum: No registered users and 5 guests