LyXLaTeX error: Missing \begin{document}

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

LaTeX error: Missing \begin{document}

Post by 0zymandias »

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 258 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10340
Joined: Mon Mar 10, 2008 9:44 pm

LaTeX error: Missing \begin{document}

Post by Stefan Kottwitz »

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
LaTeX.org admin
0zymandias
Posts: 4
Joined: Sun Oct 28, 2018 5:37 pm

LaTeX error: Missing \begin{document}

Post by 0zymandias »

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 254 times
Screenshot_1.jpg
Screenshot_1.jpg (45.34 KiB) Viewed 4252 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10340
Joined: Mon Mar 10, 2008 9:44 pm

LaTeX error: Missing \begin{document}

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply