1

I'm having an issue with my code in Latex. The pdf is running clearly, but the editor (Overleaf) tells me that I'm missing a \begin{document} here in three spots: enter image description here

I'm also having getting a warning from Overleaf about \hbox:

enter image description here

Thank you! I just started learning LaTeX yesterday so I'm not very experienced.

2
  • Welcome to TeX.SE! Please do not show code in images, we simply can not copy it and test it on our own computer. Please --as ususal here -- show us a short compilable tex code resulting in your error ...
    – Mensch
    Commented Apr 10, 2020 at 19:27
  • Off-topic: You only have to specify \theoremstyle once per style. If it doesn't change, all \newtheorem statements will use the same style. Commented Apr 10, 2020 at 20:03

1 Answer 1

1

(too long for a comment, hence posted as an answer)

The little x's are telling you that three \newtheorem instructions contain syntax errors. Specifically, you mustn't provide two optional arguments (stuff in square brackets). One optional argument is ok, but two optional arguments are not.

My hunch is that you should omit [section] in all three cases.

The warning message will go away if you delete the unnecessary and counterproductive \\ directives before and after the figure environment.

And, by all means, delete the \eject statement.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .