Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4804
| From | JUN <noeckel@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Invoking pdflatex from a notebook |
| Date | 2011-09-07 09:45 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j47ef4$l4h$1@smc.vnet.net> (permalink) |
| References | <j44kdn$973$1@smc.vnet.net> |
On Sep 6, 1:08 am, Themis Matsoukas <tmatsou...@me.com> wrote: > I am trying to invoke pdflatex from inside a Mathematica notebook but I can't get it to work. Standard shell commands work fine. For example the following gives me a listing of the current directory: > > SetDirectory@NotebookDirectory[]; > Import["!ls -a", "Text"] > > ". > . > DS_Store > debug.nb > test copy.tex > test.tex > unix shell.nb" > > But when I evaluate > > Import["!pdflatex test.tex", "Text"] > > nothing happens. I am running 8.0.1 on a Mac (Lion) and my latex installation is Texlive-2011. > > Themis Themis, unless Lion works completely differently from Snow Leopard, I bet that the path to your TeX installation isn't contained in the $PATH environment variable that Mathematica sees. Look for that directory in the output of this Mathematica command: Environment["PATH"] If you can't find the TeX direcotry, you have to add it. A simple way to do this is to type the following in the Terminal: defaults write ~/.MacOSX/environment PATH $PATH (of course this assumes pdflatex worked for you in Terminal, meaning that $PATH contains the correct info when an interactive shell has been initialized). Jens
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Invoking pdflatex from a notebook Themis Matsoukas <tmatsoukas@me.com> - 2011-09-06 08:08 +0000 Re: Invoking pdflatex from a notebook JUN <noeckel@gmail.com> - 2011-09-07 09:45 +0000
csiph-web