I'm trying to create a beamer presentation through Auctex in emacs. In the process I have to include several style packages (subfigure.sty, stmaryrd.sty) in the tex file. However the problem is that when I try to compile the .tex file through Auctex, it throws me an error saying these style files are not available. However I do have a TeXLive installed in my computer and I'm able to compile the same file using TeXworks.
So the question is how can I make sure that the Auctex can read the style files that are installed in my system (I use Ubuntu 11.10 and the TeXLive is installed in /usr/share/texmf-texlive/).
PATH=/usr/local/texlive/2011/bin/i386-linux:$PATH. All the executables (latex,kpsewhich) are all installed in the above mentioned directory – rambalachandran Dec 06 '12 at 12:39PATH, and other environment variables, don't get picked up by GUI applications like Emacs when you set them in.bashrc. There are many questions on Stack Overflow about how to work around this. – Ivan Andrus Jan 17 '13 at 23:15