# Which TeX distribution? (Undefined control sequence)

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

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

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