Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4792 > unrolled thread
| Started by | Themis Matsoukas <tmatsoukas@me.com> |
|---|---|
| First post | 2011-09-06 08:08 +0000 |
| Last post | 2011-09-07 09:45 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | Themis Matsoukas <tmatsoukas@me.com> |
|---|---|
| Date | 2011-09-06 08:08 +0000 |
| Subject | Invoking pdflatex from a notebook |
| Message-ID | <j44kdn$973$1@smc.vnet.net> |
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
[toc] | [next] | [standalone]
| From | JUN <noeckel@gmail.com> |
|---|---|
| Date | 2011-09-07 09:45 +0000 |
| Message-ID | <j47ef4$l4h$1@smc.vnet.net> |
| In reply to | #4792 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web