<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>I am able to use texshop and create pdf files out of tex/latex code. But if I use the same file on the terminal it says:</div><div><div>machine-1:~ sahilseth$ pdflatex ./paper1.tex </div><div>This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)</div><div> restricted \write18 enabled.</div><div>entering extended mode</div><div>! I can't find file `./paper1.tex'.</div><div><*> ./paper1.tex</div><div>                </div><div>(Press Enter to retry, or Control-D to exit)</div><div>Please type another input file name: </div><div> for me the location of this file is: <span class="Apple-style-span" style="font-family: Arial; ">/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls I can either enter it in, but that is not the best way to go about it.</span></div><div><font class="Apple-style-span" face="Arial">One way as people have been suggesting to to copy article.cls into the same folder as the tex file and proceed, but there must be a way to tell pdflatex to get the files from texlive. If I use texshop there are no errors, all runs smoothly</font></div><div><div>Thanks,</div><div>Sahil</div></div></div></body></html>