title: Emacs shell command not found
body: <p>I work on Mac OS X 10.5.8. I am trying to learn emacs. I am very new to it and today tried to enter shell commands from within emacs. I entered <code>pdflatex filename</code>. However, it gives me an error saying</p>
  
  <pre><code>/bin/bash: pdflatex: command not found
  </code></pre>
  
  <p>I have LaTeX installed and pdflatex works fine from the command line in the terminal. </p>
  
  <p>I get a similar error for a command <code>lsd</code> that I have defined in my <code>.bash_profile</code> file. This works fine too on the command line in the terminal. </p>
  
  <p>The command <code>ls</code> works fine in the emacs shell. </p>
  
  <p>Does anyone have an idea what might be happening. </p>
  
  <p>How I can get emacs to recognize all the commands that work fine on the command line in the terminal.
  Is there anyway I can make the environment used by emacs shell and terminal command line identical?
  If so, is there any reason you would recommend against doing so? I know very little of both bash and emacs.</p>
  
  <p>Thank you very much.</p>