Ask Your Question

Beetle B.'s profile - activity

2018-04-16 05:31:06 +0200 received badge  Notable Question (source)
2017-02-23 00:17:00 +0200 received badge  Popular Question (source)
2012-08-16 22:38:39 +0200 received badge  Editor (source)
2012-08-16 22:37:55 +0200 answered a question SageTeX on Linux. pdflatex isn't running Sage

OK, searching around I see that John is indeed correct - one has to run Sage outside of pdflatex.

Posting this here so that someone can mark it as resolved - I don't have enough karma to do so...

2012-08-16 16:19:06 +0200 commented question SageTeX on Linux. pdflatex isn't running Sage

That's a bit of a bummer. I'm actually writing my .tex document in Emacs (org mode, actually) and using its export capability to run pdflatex. It would be a pain to have to do it manually each time.

2012-08-16 12:41:49 +0200 asked a question SageTeX on Linux. pdflatex isn't running Sage

I manually installed Sage into ~/sage-5.2 (i.e. not using my distro's package management tool).

I included in my LaTeX document the example of plotting a sine wave into my .tex file (from the tutorial). When I run pdflatex on it, I get:

Package sagetex Warning: Graphics file sage-plots-for-statistics.tex/plot-0.png on page 3 does not exist. Plot command is on input line 129.

Package sagetex Warning: there were undefined Sage formulas and/or plots. Run Sage on statistics.sagetex.sage, and then run LaTeX on statistics.tex again

It's clear it's not running Sage. It generates the .sage file, though.

I included ~/sage-5.2 into my path, as well as ~/sage-5.2/local/bin/ and it still doesn't pick Sage up.

Ideas?