ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 09 Jul 2015 04:17:01 -0500Sagetex on Windows: Using miktex and sage on virtualbox. How to make it work?http://ask.sagemath.org/question/27264/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! Mon, 06 Jul 2015 09:41:20 -0500http://ask.sagemath.org/question/27264/sagetex-on-windows-using-miktex-and-sage-on-virtualbox-how-to-make-it-work/Comment by Peter Luschny for <p>Hello!</p>
<p>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.</p>
<p>For me, the following code:</p>
<blockquote>
<pre><code>\documentclass{article}
\usepackage{sagetex}
\begin{document}
For example, there are
$\sage{number_of_partitions(1269)}$
integer partitions of $1269$.
\end{document}
</code></pre>
</blockquote>
<p>Gives this output: </p>
<blockquote>
<p>For example, there are ?? integer partitions of 1269.</p>
</blockquote>
<p>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.</p>
<ul>
<li><p>Is sagetex supposed to work out of the box, just installing it on miktex and having sage installed on virtualbox?</p></li>
<li><p>If not, is there an official procedure to make it work? e.g. documentation about sagetex on windows?</p></li>
</ul>
<p>Thanks! </p>
http://ask.sagemath.org/question/27264/sagetex-on-windows-using-miktex-and-sage-on-virtualbox-how-to-make-it-work/?comment=27293#post-id-27293Note 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/latex-in-cloud.html (Here you can see an example use of this environment: http://tex.stackexchange.com/a/254349 )Thu, 09 Jul 2015 04:17:01 -0500http://ask.sagemath.org/question/27264/sagetex-on-windows-using-miktex-and-sage-on-virtualbox-how-to-make-it-work/?comment=27293#post-id-27293Comment by kcrisman for <p>Hello!</p>
<p>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.</p>
<p>For me, the following code:</p>
<blockquote>
<pre><code>\documentclass{article}
\usepackage{sagetex}
\begin{document}
For example, there are
$\sage{number_of_partitions(1269)}$
integer partitions of $1269$.
\end{document}
</code></pre>
</blockquote>
<p>Gives this output: </p>
<blockquote>
<p>For example, there are ?? integer partitions of 1269.</p>
</blockquote>
<p>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.</p>
<ul>
<li><p>Is sagetex supposed to work out of the box, just installing it on miktex and having sage installed on virtualbox?</p></li>
<li><p>If not, is there an official procedure to make it work? e.g. documentation about sagetex on windows?</p></li>
</ul>
<p>Thanks! </p>
http://ask.sagemath.org/question/27264/sagetex-on-windows-using-miktex-and-sage-on-virtualbox-how-to-make-it-work/?comment=27267#post-id-27267You 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.Mon, 06 Jul 2015 13:28:59 -0500http://ask.sagemath.org/question/27264/sagetex-on-windows-using-miktex-and-sage-on-virtualbox-how-to-make-it-work/?comment=27267#post-id-27267