1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: I keep getting an error on MikTeX

  1. Jul 25, 2011 #1
    1. The problem statement, all variables and given/known data

    I don't know what's going on, but i can't compile anything

    I keep getting the following error

    This was my input

  2. jcsd
  3. Jul 25, 2011 #2


    User Avatar
    Science Advisor
    Homework Helper

    Hmm, unfortunately, the forum tries to render the \LaTeX code.
    The "Missing \begin{document}" error - apart from the obvious cause - also occurs when you put some stuff in the pre-amble which is not expected there. For example.
    Code (Text):

    would also produce the error, because when LaTeX encounters the text "Hello" it expects that you should have written \begin{document} already.

    Did you put a backslash before \documentclass, or is that just the quote being mangled? Otherwise, maybe you can post the document again using
    Code (Text):
  4. Jul 26, 2011 #3
    The stupid backslash!!

    Thank you very much! you just saved my life.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook