When I compile my document with latex on the terminal, there is no problems. Everything is fine. However, When I try it via Emacs (Cntrl C-C, which makes a call to Latex) I get the folowing error saying:
Missing \begin{document}
I'm a little confused. What happens?
Here is an example:
\documentclass[onecolumn,amsmath,amssymb,aps,pra,floatfix,]{revtex4-1}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{float}
\usepackage[tight,footnotesize]{subfigure}
\usepackage{color}
\begin{document}
\title{Title}
% \author{Totoro}
\date{\today}
\maketitle
\section{Introduction}
We consider the simplified equation of motion.
\end{document}
Here how it looks like:

As I said, compiling the document with latex from a terminal works fine. Normally, I use Emacs for editing and compiling. So this strange behavior is extremly inconvient!