3

(FYI I am new to LaTeX)

I'm trying to compile a TeX document that someone else has given me. I had BasicTex installed, and it didn't seem to work. My friend said he uses TeX Live, so I tried installing that but I get the same error after typing pdftex document.tex:

! Undefined control sequence.
l.1 \documentclass
                  [final,hyperref={pdfpagelabels=false}]{beamer}

I'm guessing that means the distribution I have installed does not support this tag, is that right? How can I find out which distribution I should install?

  • 7
    Use pdflatex document.tex not pdftex. – Ulrike Fischer May 24 '12 at 14:55
  • 1
    I just wanted to note that BasicTeX is TeXLive. – morbusg May 24 '12 at 19:19
  • 1
    Since you are new to LaTeX, you should read the FAQ. – Reinstate Monica - M. Schröder May 28 '12 at 13:57
14

Your document is a LaTeX document, not plain TeX. Use the pdflatex command on it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.