Sagetex and windows 7?

i like this post (click again to cancel)
0
i dont like this post (click again to cancel)

I have sage 5.0 successfully installed on my Windows 7 64 bit machine using Oracle's VM VirtualBox. However, I would like to use sagetex in my LyX 2.0 and TeXworks 0.4.3 editors. How can I accomplish this?

asked May 30 '12

Luis Guzman gravatar image Luis Guzman
21 1 4
http://luisrguzmanjr.word...

I second this, but I have no idea how difficult it would be to implement it.

daniel.e2718 (May 30 '12)
i like this answer (click again to cancel)
1
i dont like this answer (click again to cancel)

@daniel.e2718, it is actually easy to implement. Sage 5.0 comes with sagetex installed. You can verify this by typing at the sage command prompt sage -i | more to view a list of installed packages. You will see sagetex-2.3.3.p2. This means all you have to do is share the windows folder that is your tex working directory. You do this by going to Oracle VM VirtualBox Manager, selecting the Machine->Settings menu path and finally selecting Shared Folders on the left navigation pad. Finally, as The SageTEX package pdf manual states,

To copy the fi les that LATEX needs into your texmf directory (your windows shared folder), simply do

cp -r $SAGE ROOT/local/share/texmf/* HOMEPREFIX/texmf/

You can test your windows tex editor with the provided example.tex now located under your shared folder:

  1. In Windows, build the example.tex file.
  2. In the sage command line process the example.sagetex.sage output file.
  3. Rerun the example.tex file under Windows and all the sage code will be processed in the pdf document.
link

posted Jun 14 '12

Luis Guzman gravatar image Luis Guzman
21 1 4
http://luisrguzmanjr.word...
1

So have you answered your own question? Great work! Unfortunately, I think you don't have enough karma yet to accept your own question :(

kcrisman (Jun 14 '12)

Okay. What do you mean by "tex working directory"?

I'm not familiar with command lines at all, so I don't know if cp -r $SAGE ROOT/local/share/texmf/* HOMEPREFIX/texmf/ needs adjustment -- i.e., do I need to change a directory?

And when you say build the *.tex file, do you mean run PDFLaTeX on it or just write it up?

daniel.e2718 (Jun 20 '12)

See http://www.sagemath.org/doc/installation/sagetex.html for more information. The $SAGE_ROOT band so forth will indeed need adjustment, based on where you have installed Sage and where your Windows directory is (I am not quite sure what HOMEPREFIX is but I bet you can look it up). "Build the file" means to actually run (pdf)LaTeX on it, you are correct.

kcrisman (Jun 21 '12)

That link says $SAGE_ROOT is the location of my Sage installation. I have no idea how to find that out.

daniel.e2718 (Jun 22 '12)

Assuming you are at some point in the command line, where do you go to run Sage? Wherever that is, type pwd and it should probably end with .../sage-x.y.z/ or something, and that would be the Sage root. Without knowing exactly how you're trying to do this, it's difficult to help; maybe opening a different question would be more helpful.

kcrisman (Jun 22 '12)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: May 30 '12

Seen: 257 times

Last updated: Jun 14 '12

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.