Sagetex on Windows: Using miktex and sage on virtualbox. How to make it work?

asked 2015-07-06 09:41:20 -0500

J.Abe. gravatar image

Hello!

I've installed sagetex (2009-06-26) using the miktex package manager. I use Sage 6.7 on Oracle's Virtual Box, as recommended for windows users.

For me, the following code:

\documentclass{article}
\usepackage{sagetex}

\begin{document}

For example, there are
$\sage{number_of_partitions(1269)}$
integer partitions of $1269$.

\end{document}

Gives this output:

For example, there are ?? integer partitions of 1269.

All the sage commands just give "??" in the latex document. I've been looking at the documentation, but it doesn't seem to be for windows.

  • Is sagetex supposed to work out of the box, just installing it on miktex and having sage installed on virtualbox?

  • If not, is there an official procedure to make it work? e.g. documentation about sagetex on windows?

Thanks!

edit retag flag offensive close merge delete

Comments

You will have to run Sage on the .sagetex.sage (or similar) file that is generated, and then run LaTeX again in this situation, I suspect. I don't think you've done anything to have it automatically run Sage and then LaTeX again. Hopefully the documentation you were reading should say something about that.

kcrisman gravatar imagekcrisman ( 2015-07-06 13:28:59 -0500 )edit

Note that you installed sagetex on Windows (as indicated by miktex) whereas Sage is running on Red Hat Linux in the box. Did you make sure that these two worlds speak correctly with each other? Let me propose something different which will probably make your life much easier: Get an account on SageMathCloud and use sagetex there. Read this: http://sagemath.blogspot.de/2013/08/l... (Here you can see an example use of this environment: http://tex.stackexchange.com/a/254349 )

Peter Luschny gravatar imagePeter Luschny ( 2015-07-09 04:17:01 -0500 )edit