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

asked 2015-07-06 16:41:20 +0200

eod gravatar image


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:



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


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?


edit retag flag offensive close merge delete


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 20:28:59 +0200 )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: (Here you can see an example use of this environment: )

Peter Luschny gravatar imagePeter Luschny ( 2015-07-09 11:17:01 +0200 )edit