David, I created the file, then opened Aquamacs, then opened a .tex file. When I hit the "latex" button, this is what appeared in messages:
(1) This is from the Aquamacs "console" window:
Running `LaTeX' on `Math_review' with ``pdflatex -interaction=nonstopmode "\input" Math_review.tex''
/bin/sh: pdflatex: command not found
LaTeX exited abnormally with code 127 at Wed Jun 25 18:21:42
(2) This is from the Aquamacs "Messages" window.
("/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs")
Loading prestart plugin files ...
Loading /Users/eroche/Library/Application Support/Aquamacs Emacs/site-prestart.el (source)...done
... done.
Loading /Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/check-for-updates.el (source)...done
Aquamacs Mule installed.
Loading cl-macs...done
!! File strings uses old-style backquotes !!
!! File filladapt uses old-style backquotes !!
Loading easy-mmode...done
Loading encoded-kb...done
!! File emulate-mac-keyboard-mode uses old-style backquotes !!
Loading jka-compr...done
uncompressing tree-widget.el.gz...done
Loading /Users/eroche/Library/Preferences/Aquamacs Emacs/Recent Files.el (source)...done
Cleaning up the recentf list...
File /Users/eroche/Documents/Writing/crime2final/Hot_Box/DeCosmo_Africa/DeCosmo_Caribbean_Film_Book_v01.tex removed from the recentf list
File /Users/eroche/Documents/Writing/crime2final/Hot_Box/DeCosmo_Africa/Caribbean_v05.tex removed from the recentf list
Cleaning up the recentf list...done (2 removed)
Defining fontset: lucida11
Defining fontset: lucida12
Defining fontset: lucida13
Defining fontset: lucida14
Defining fontset: monaco11
Defining fontset: monaco12
Loading edmacro...done
Loading /Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/tex-site.el (source)...done
Loading /Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/nxml/rng-auto.el (source)...done
Loading plugins ...
Loading /Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/site-start.el (source)...done
... done.
Loading /Library/Preferences/Aquamacs Emacs/Preferences.el (source)...
Loading /Applications/TeXniscope.app/Contents/Resources/txs-search.el (source)...done
Loading /Library/Preferences/Aquamacs Emacs/Preferences.el (source)...done
Loading /Users/eroche/Library/Preferences/Aquamacs Emacs/Preferences.el (source)...
Restarting server
Loading /Applications/TeXniscope.app/Contents/Resources/txs-search.el (source)...done
Loading /Users/eroche/Library/Preferences/Aquamacs Emacs/Preferences.el (source)...done
Loading /Users/eroche/Library/Preferences/Aquamacs Emacs/customizations.el (source)...done
Mark set [2 times]
Loading /Users/eroche/Library/Preferences/Aquamacs Emacs/frame-positions.el (source)...done
Loading rx...done
Aquamacs is based on GNU Emacs 22, a part of the GNU/Linux system.
It is Free Software: you can improve and redistribute it under the GNU General Public License, version
3 or later. Copyright (C) 2008 Free Software Foundation, Inc. (C) 2008 D. Reitter. No Warranty.
Aquamacs is based on GNU Emacs 22, a part of the GNU/Linux system.
It is Free Software: you can improve and redistribute it under the GNU General Public License, version
3 or later. Copyright (C) 2008 Free Software Foundation, Inc. (C) 2008 D. Reitter. No Warranty.
Get the new Aquamacs 1.4 from
http://aquamacs.org [2 times]
Loading latexenc...done
Loading tex...done
Loading latex...done
Loading font-latex...done
Applying style hooks...
Loading /Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/auctex/style/letter.elc...done
Loading /Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/auctex/style/article.elc...done
Applying style hooks... done
Sorting environment...
Removing duplicates... done
Loading tex-bar...
Source file `/Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/auctex/tex-buf.el' newer than byte-compiled file
Loading tex-bar...done
Loading tex-fold...done
Loading bib-cite...done
Loading reftex...done
Loading reftex-auc...done
Loading reftex-dcr...done
Automatic display of crossref information was turned on
Loading preview...done
Applying style hooks... done
Type `C-c C-l' to display results of compilation.
LaTeX: problems after [0] pages.
Edward M. Roche
emr96@...
On Wednesday, June 25, 2008, at 07:33PM, "David Reitter" <
david.reitter@...> wrote:
>On 25 Jun 2008, at 20:44, Edward M. Roche (江戸浪士) wrote:
>
>>
>> Can any one tell me if they lost latex/tex functionality when
>> upgrading to a newer version of Aquamacs?
>>
>> There is a Tex installation on my mac that works, but Aquamacs seems
>> no longer able to access it.
>
>Yes, there is a problem with reading the environment variables.
>I would be grateful if you could try to find out what influences it.
>You will be able to see a log message in the *Messages* buffer. When
>0 environment variables were imported, that's when you'll have trouble.
>
>The problem seems to be that the shell that is started does not
>actually read the init files (~/.bash_profile etc.), even though it is
>started as a login shell. If you can give any further hints, then
>that would be very helpful.
>
>
>As a workaround, please create a file at
>
>~/Library/Application Support/Aquamacs Emacs/site-prestart.el
>
>and copy and paste the code below in.
>
>Let me know if that fixes the problem for you reliably.
>
>- David
>
>
>
>--
>
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
>
http://aquamacs.org/donate -- Could we help you? Return the favor and
>support the Aquamacs Project!
>
>
>
>;;from mac-extra-functions.el, version 1.63
>
>(defun mac-read-environment-vars-from-shell ()
>"Import the environment from the system's default login shell
>specified in `shell-file-name'."
> (with-temp-buffer
> ;; execute 'printenv' with the default login shell,
> ;; running the shell with -l (to load the environment)
> (setq default-directory "~/") ; ensure it can be executed
> ;; To Do: use call-process instead -> this here
> ;; will invoke two bashes
>
> (let ((shell-login-switch
> (or shell-login-switch
> (if (string-match ".*/\\(ba\\|z\\)sh" shell-file-name)
> "-l"
> (if (string-match ".*/\\tcsh" shell-file-name)
> ""
> (if (string-match ".*/ksh" shell-file-name)
> "" ;; works for ksh
> (message "Could not retrieve login shell environment with login
>shell: %s" shell-file-name)
> ;; won't work for csh, because it doesn't take -l -c ...
> ))))))
>
> (call-process shell-file-name nil
> t nil
> shell-login-switch
> shell-command-switch
> "printenv"))
> (goto-char (point-min))
> (while (re-search-forward "^[A-Za-z_0-9]+=()\s*[^\x]*?
>\s*}\s*$" nil t)
> (replace-match "..." nil nil))
> (goto-char (point-min))
> (while (search-forward-regexp "^\\([A-Za-z_0-9]+\\)=\\(.*\\)$"
>nil t)
> (setenv
> (match-string 1)
> (if (equal (match-string 1) "PATH")
> (concat (match-string 2) ":" (getenv "PATH"))
> (match-string 2))))))
>
>
>
>
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php__
https://lists.sourceforge.net/lists/listinfo/aquamacs-bugs