Aloha all,
I'm setting up Emacs 23 on my OS X 10.5 MacBook and have run into an
old problem:
Running `LaTeX' on `tsd_135_drr' with ``pdflatex -synctex=1
-interaction=nonstopmode "\input" tsd_135_drr.tex''
/bin/sh: pdflatex: command not found
This is one I've solved before with other emacsen, so I went through
the old steps:
1) make sure exec-path has the path to pdflatex:
("/usr/bin" "/bin" "/usr/sbin" "/sbin"
"/Applications/Emacs23.app/Contents/MacOS/bin" "/usr/texbin")
2) copy the failed command from the output window and see if it runs in
the shell (pre-pending the path to pdflatex in exec-path)
potofo-ou:report dk$ /usr/texbin/pdflatex -synctex=1
-interaction=nonstopmode "\input" tsd_135_drr.tex
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
entering extended mode
LaTeX2e <2009/09/24>
....
I'm stumped.
Carbon Emacs on the same machine does just fine, using /bin/sh and what
appears to me to be a functionally equivalent exec-path (it also has
/usr/texbin).
I've read several approaches to setting path variables on the Mac, but
would like to rely completely on settings in my .emacs for this setup.
Any pointers will be much appreciated.
All the best,
Tom
--
Tom Dye
T. S. Dye & Colleagues, Archaeologists, Inc.
Honolulu, Hawai`i
|
|
0
|
|
|
|
Reply
|
tsd (104)
|
12/6/2009 1:52:09 AM |
|
Tom Dye <tsd@tsdye.com> writes:
> Aloha all,
>
> I'm setting up Emacs 23 on my OS X 10.5 MacBook and have run into an
> old problem:
>
> Running `LaTeX' on `tsd_135_drr' with ``pdflatex -synctex=1
> -interaction=nonstopmode "\input" tsd_135_drr.tex''
> /bin/sh: pdflatex: command not found
>
> This is one I've solved before with other emacsen, so I went through
> the old steps:
> 1) make sure exec-path has the path to pdflatex:
>
> ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
> "/Applications/Emacs23.app/Contents/MacOS/bin" "/usr/texbin")
What makes you think that helps? AUCTeX calls everything through a
shell.
So you better do something like
(setenv "PATH" (concat "my path:" (getenv "PATH")))
>
> 2) copy the failed command from the output window and see if it runs
> in the shell (pre-pending the path to pdflatex in exec-path)
>
> potofo-ou:report dk$ /usr/texbin/pdflatex -synctex=1
> -interaction=nonstopmode "\input" tsd_135_drr.tex
> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
> entering extended mode
> LaTeX2e <2009/09/24>
> ...
>
> I'm stumped.
>
> Carbon Emacs on the same machine does just fine, using /bin/sh and
> what appears to me to be a functionally equivalent exec-path (it also
> has /usr/texbin).
>
> I've read several approaches to setting path variables on the Mac, but
> would like to rely completely on settings in my .emacs for this setup.
>
> Any pointers will be much appreciated.
>
> All the best,
> Tom
--
David Kastrup
UKTUG FAQ: <URL:http://www.tex.ac.uk/cgi-bin/texfaq2html>
|
|
0
|
|
|
|
Reply
|
David
|
12/6/2009 8:48:44 AM
|
|
Tom Dye <tsd@tsdye.com> writes:
> Aloha all,
>
> I'm setting up Emacs 23 on my OS X 10.5 MacBook and have run into an
> old problem:
>
> Running `LaTeX' on `tsd_135_drr' with ``pdflatex -synctex=1
> -interaction=nonstopmode "\input" tsd_135_drr.tex''
> /bin/sh: pdflatex: command not found
>
> This is one I've solved before with other emacsen, so I went through
> the old steps:
> 1) make sure exec-path has the path to pdflatex:
>
> ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
> "/Applications/Emacs23.app/Contents/MacOS/bin" "/usr/texbin")
>
> 2) copy the failed command from the output window and see if it runs
> in the shell (pre-pending the path to pdflatex in exec-path)
This is a known problem. See: (info "(emacs)Mac OS / GNUstep").
So what you need to do is to create
/Users/someusername/.MacOSX/environment.plist with the following in
it:
--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PATH</key>
<string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/texlive/2009basic/bin/universal-darwin</string>
</dict>
</plist>
--8<---------------cut here---------------end--------------->8---
Restart Emacs.app 23 and it will get the env PATH from that file.
Leo
|
|
0
|
|
|
|
Reply
|
Leo
|
12/6/2009 10:06:45 AM
|
|
Aloha David,
Thanks for your response. I appreciate your taking the time to offer
advice. A reply to your question follows.
On 2009-12-05 22:48:44 -1000, David Kastrup <dak@gnu.org> said:
>> 1) make sure exec-path has the path to pdflatex:
>>
>> ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
>> "/Applications/Emacs23.app/Contents/MacOS/bin" "/usr/texbin")
>
> What makes you think that helps? AUCTeX calls everything through a
> shell.
Given the following definition of exec-path (C-h v exec-path), and my
(possibly mistaken) belief that pdflatex is run as a subprocess, it
seemed logical to think that it will help.
exec-path is a variable defined in `C source code'.
Its value is
("/usr/bin" "/bin" "/usr/sbin" "/sbin"
"/Applications/Emacs23.app/Contents/MacOS/bin" "/usr/texbin")
Documentation:
*List of directories to search programs to run in subprocesses.
Each element is a string (directory name) or nil (try default directory).
All the best,
Tom
--
Tom Dye
T. S. Dye & Colleagues, Archaeologists, Inc.
Honolulu, Hawai`i
|
|
0
|
|
|
|
Reply
|
Tom
|
12/6/2009 3:48:26 PM
|
|
Aloha Leo,
Thank you. I appreciate the pointer to the emacs documentation and
your solution to the problem.
All the best,
Tom
On 2009-12-06 00:06:45 -1000, Leo <sdl.web@gmail.com> said:
> Tom Dye <tsd@tsdye.com> writes:
>
>> Aloha all,
>>
>> I'm setting up Emacs 23 on my OS X 10.5 MacBook and have run into an
>> old problem:
>>
>> Running `LaTeX' on `tsd_135_drr' with ``pdflatex -synctex=1
>> -interaction=nonstopmode "\input" tsd_135_drr.tex''
>> /bin/sh: pdflatex: command not found
>>
>> This is one I've solved before with other emacsen, so I went through
>> the old steps:
>> 1) make sure exec-path has the path to pdflatex:
>>
>> ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
>> "/Applications/Emacs23.app/Contents/MacOS/bin" "/usr/texbin")
>>
>> 2) copy the failed command from the output window and see if it runs
>> in the shell (pre-pending the path to pdflatex in exec-path)
>
> This is a known problem. See: (info "(emacs)Mac OS / GNUstep").
>
> So what you need to do is to create
> /Users/someusername/.MacOSX/environment.plist with the following in
> it:
>
> --8<---------------cut here---------------start------------->8---
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
> <key>PATH</key>
>
> <string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/texlive/2009basic/bin/universal-darwin</string>
</dict>
</plist>
--8<---------------cut
>
> here---------------end--------------->8---
>
> Restart Emacs.app 23 and it will get the env PATH from that file.
>
> Leo
--
Tom Dye
T. S. Dye & Colleagues, Archaeologists, Inc.
Honolulu, Hawai`i
|
|
0
|
|
|
|
Reply
|
Tom
|
12/6/2009 3:52:01 PM
|
|
|
4 Replies
1308 Views
(page loaded in 0.058 seconds)
Similiar Articles: File `beamer.cls' not found. - comp.text.texFile `beamer.cls' not found. - comp.text.tex... DVI file gets generated) and so forth and so on. ... [auctex] pdflatex: command not found - comp.text.tex changing ... Changing Dimension Text - comp.cad.microstation[auctex] pdflatex: command not found - comp.text.tex changing ... Margin ... size change for individual frame in beamer? - comp.text.tex ... Why do Image Size Dimensions ... system fails for path with spaces - comp.soft-sys.matlab ...system('C:/Program Files/MiKTeX 2.9/miktex/bin/pdflatex.exe -shell-escape --src -interaction=nonstopmode test-main.tex') fails with ('command not found') Der Befehl ... Aborting unless running pdflatex - comp.text.tex... told you I would kill you if we are not in PDF mode}{Please use pdflatex ... which is used when compiling from AUCTeX ... not in the LaTeX Companion, and I only found ... MiKTeX - Error installing font packages - comp.text.tex> > > !pdfTeX error: pdflatex (file ec-qcrr):Fontec-qcrr at 600 not found > > =A0=3D=3D> Fatal error occurred, no ... Try to run (as user) on a command line. updmap ... simple texture example on OS X, does not work? - comp.graphics.api ...... point to, a simple example ... try them if the pdflatex solution suggested does not ... SAY command on z/OS - Routine not found - comp.lang.rexx ... For example, how about ... Getting MinionPro font to work - comp.text.tex) !pdfTeX error: /usr/texbin/pdflatex (file MinionPro-Regular-Base-aa): Font Mini onPro-Regular-Base-aa at 382 not found ... between the above > two commands. I mean ... Paper tray selection when printing a PDF file - comp.text.pdf ...... we generate PDF files on a server (using pdfLaTeX). ... default printer by Adobe AcrobatReader (through a command ... Meanwhile, I have found out about the "/t" option to ... MikTeX Windows 7 64-bit, can't download packages - comp.text.tex ...... tm/packages/preprint.cab HTTP/1.1 404 Not Found ... there an easy way to do the synchronize from the command ... It's a bummer, because I've used pdflatex for a long time ... emacs vs. xemacs under Windows - comp.emacs... Emacswiki, has a page devoted to this, one that I found ... under Windows that it does on Linux (it may not and ... ignored" - comp.emacs ... tried to run a windows command ... emacs.auctex.general - Re: Enabling pdftex and pdflatex - msg ...Meanwhile I found the following code snippet while ... when I use the TeX-command-master (C-c C- c) command. How can I get AUCTeX to recognize pdftex and pdflatex? osx snow leopard - Installing AucTeX 1.86 over Emacs.app in OS X ...The AUCTeX hooks are now applied. However, trying to latex a document exits with an error: /bin/sh: pdflatex: command not found. It seems that this is a $PATH$ problem. 7/22/2012 10:35:22 PM
|