all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: pdflatex not found?
@ 2015-10-26 22:18 Peter Davis
  2015-10-27  0:14 ` Nick Dokos
  0 siblings, 1 reply; 28+ messages in thread
From: Peter Davis @ 2015-10-26 22:18 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

Nick Dokos <ndokos@gmail.com> writes:


> Peter Davis <pfd@pfdstudio.com> writes:
>
>> I'm trying to export PDF from org, but I'm getting the error:
>>
>> pdflatex: Command not found. [3 times]
>>
>> I've checked the definition of exec-path, and it includes
>> "/usr/texbin", which is where tcsh tells me the executable is.
>>
>> Any ideas?
>>
>
> Backtrace?

Sorry. Here's the backtrace:

Debugger entered--Lisp error: (error "PDF file ./test.pdf wasn't produced")
  signal(error ("PDF file ./test.pdf wasn't produced"))
  error("PDF file ./test.pdf wasn't produced")
  org-latex-compile("./test.tex")
  #[(file) "\301\b!\207" [file org-latex-compile] 2]("./test.tex")
  org-export-to-file(latex "./test.tex" nil nil nil nil nil #[(file) "\301\b!\207" [file org-latex-compile] 2])
  org-latex-export-to-pdf(nil nil nil nil)
  (org-open-file (org-latex-export-to-pdf nil s v b))
  (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b)))
  (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b))))(nil nil nil nil)
  org-export-dispatch(nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)

This seems less useful to me than the *Messages* buffer:

Debug on Error enabled globally
org-babel-exp processing...
executing Dot code block...
Wrote /var/folders/d4/xb7t0gbd0f97p6494kz5xzdnmlncz8/T/babel-2213VOW/ob-input-22136yU
Code block evaluation complete.
Saving file /Users/davisp/Dropbox/HMH/test.tex...
Wrote /Users/davisp/Dropbox/HMH/test.tex
Processing LaTeX file ./test.tex...
pdflatex: Command not found. [3 times]
Entering debugger...
Mark set
End of buffer

I did verify that the shell, my default of tcsh, does show pdflatex at the right location, /usr/texbin/pdflatex

Thanks,
-pd

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: pdflatex not found?
@ 2015-10-27 16:12 Peter Davis
  2015-10-27 16:40 ` Rainer M Krug
  0 siblings, 1 reply; 28+ messages in thread
From: Peter Davis @ 2015-10-27 16:12 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: Nick Dokos, emacs-orgmode, Rainer M Krug

Rainer M Krug <Rainer@krugs.de> writes:

>>
>> Sorry. It's OS X 10.10.5, using GNU Emacs 24.5.1
>
> I thought so.
>
> OK - you have pdflatex in the terminal? If yes, you have to bring the
> PATH from the terminal into emacs. I use
>
> I use the package exec-path-from-shell for this (and use-package in general):
>
> (use-package exec-path-from-shell
>   :ensure t
>   :config 
>   (exec-path-from-shell-initialize)
>   (exec-path-from-shell-copy-env "LC_ALL")
>   (exec-path-from-shell-copy-env "LANG")
>   )
>
> so
> (require 'exec-path-to-shell)
> (exec-path-from-shell-initialize)
>
> should do this.
>

Thanks, Rainer. This also raises a question:

If I run emacs from Finder, which shell governs its behavior? I use both zsh and tcsh in iTerm 2. (

I think I have tcsh set as my default, but I haven't figured out how to get Ruby/Rails, etc. running from there, so I still use zsh
for some development.)

Thanks!
-pd

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: pdflatex not found?
@ 2015-10-27 13:43 Peter Davis
  2015-10-27 13:55 ` Fatma Başak Aydemir
  2015-10-27 15:40 ` Rainer M Krug
  0 siblings, 2 replies; 28+ messages in thread
From: Peter Davis @ 2015-10-27 13:43 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: Nick Dokos, emacs-orgmode

Rainer M Krug <r.m.krug@gmail.com> writes:

> Envoyé de mon iPhone
>
>> Le 27 oct. 2015 à 01:14, Nick Dokos <ndokos@gmail.com> a écrit :
>> 
>> Peter Davis <pfd@pfdstudio.com> writes:
>> 
>>> Nick Dokos <ndokos@gmail.com> writes:
>> ...
>> Yes, probably, but if I can get people to submit backtraces when getting
>> an error, we can cut down the email volume by a factor of 2.43 (making up
>> fictitious data to bolster my case...) In all seriousness, at least it
>> shows that you are not going down some strange path.

I think the actual number is more like 2.17, but let's not quibble.

>> 
>> What happens if you say M-x shell-command RET pdflatex RET?

Not found.

>> Somebody suggested running "which pdflatex" in your shell - what does
>> that say?

Still not found. However, adding it to ~/.tcshrc seems to fix the problem. That makes sense, but leaves two questions:

1) Why am I able to run pdflatex (without specifying the path) just from the shell running in a terminal window?

2) What's the point of defining the emacs exec-path, since I needed to define the shell's PATH variable anyway?

>> And you say it should be in /usr/texbin - what happens if you invoke
>> it with an absolute path: "/usr/texbin/pdflatex" in your shell?
>
> Imiight have missed it - but which OS are you using?

Sorry. It's OS X 10.10.5, using GNU Emacs 24.5.1

Thanks!
-pd

^ permalink raw reply	[flat|nested] 28+ messages in thread
* pdflatex not found?
@ 2015-10-26 19:26 Peter Davis
  2015-10-26 19:50 ` John Hendy
  2015-10-26 20:03 ` Nick Dokos
  0 siblings, 2 replies; 28+ messages in thread
From: Peter Davis @ 2015-10-26 19:26 UTC (permalink / raw)
  To: emacs-orgmode


I'm trying to export PDF from org, but I'm getting the error:

pdflatex: Command not found. [3 times]

I've checked the definition of exec-path, and it includes "/usr/texbin", which is where tcsh tells me the executable is.

Any ideas?

Thank you!

-pd

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2015-10-28 12:40 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 22:18 pdflatex not found? Peter Davis
2015-10-27  0:14 ` Nick Dokos
2015-10-27  5:45   ` Rainer M Krug
2015-10-27 16:07   ` Charles C. Berry
  -- strict thread matches above, loose matches on Subject: below --
2015-10-27 16:12 Peter Davis
2015-10-27 16:40 ` Rainer M Krug
2015-10-27 13:43 Peter Davis
2015-10-27 13:55 ` Fatma Başak Aydemir
2015-10-27 15:37   ` Nick Dokos
2015-10-27 15:48     ` Rainer M Krug
2015-10-27 15:51     ` John Kitchin
2015-10-27 15:58       ` Rainer M Krug
2015-10-27 16:06         ` Cook, Malcolm
2015-10-28 12:40           ` Alan Schmitt
2015-10-27 15:44   ` Rainer M Krug
2015-10-27 16:19     ` Nick Dokos
2015-10-27 16:45       ` Rainer M Krug
2015-10-27 17:02         ` Peter Davis
2015-10-27 17:50           ` Nick Dokos
2015-10-27 17:59             ` Peter Davis
2015-10-27 18:30               ` Rainer M Krug
2015-10-27 17:14         ` Nick Dokos
2015-10-27 15:40 ` Rainer M Krug
2015-10-26 19:26 Peter Davis
2015-10-26 19:50 ` John Hendy
2015-10-26 20:29   ` Myles English
2015-10-26 21:43     ` Charles C. Berry
2015-10-26 20:03 ` Nick Dokos

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.