Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

(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?

share|improve this question
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. –  Martin Schröder May 28 '12 at 13:57
add comment

1 Answer

up vote 12 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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