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

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 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.