Using SageTeX within WindowsCreate a local texmf tree in MiKTeXEmacs interacting with MS Windows: how to minimize windowsTeXworks linux vs windowsHow to just print the calculation using sagetexIs it possible to call/reference sagetex within a latex command?How can i compare values from sagetex with ifthenelse?SageTeX: Number formattingSageTeX and Commenting Out CodeBug with optional arguments in sagetex?Integrating SageTex and Kile/TexStudio in LinuxEditors for Windows with automatic completion, environments etc
Yosemite Fire Rings - What to Expect?
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
System.QueryException unexpected token
PTIJ: Haman's bad computer
Why is it that I can sometimes guess the next note?
It grows, but water kills it
What are the advantages of simplicial model categories over non-simplicial ones?
How can I avoid dust and bubbles when installing window film?
Invalid date error by date command
What if you are holding an Iron Flask with a demon inside and walk into Antimagic Field?
putting logo on same line but after title, latex
What exactly color does ozone gas have?
How can I write humor as character trait?
What is Cash Advance APR?
Plot of a tornado-shaped surface
Can a college of swords bard use blade flourish on an OA from dissonant whispers?
Is there a RAID 0 Equivalent for RAM?
How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?
What features enable the Su-25 Frogfoot to operate with such a wide variety of fuels?
This is why we puzzle
Can disgust be a key component of horror?
Is there a way to get `mathscr' with lower case letters in pdfLaTeX?
Non-trope happy ending?
How do I delete all blank lines in a buffer?
Using SageTeX within Windows
Create a local texmf tree in MiKTeXEmacs interacting with MS Windows: how to minimize windowsTeXworks linux vs windowsHow to just print the calculation using sagetexIs it possible to call/reference sagetex within a latex command?How can i compare values from sagetex with ifthenelse?SageTeX: Number formattingSageTeX and Commenting Out CodeBug with optional arguments in sagetex?Integrating SageTex and Kile/TexStudio in LinuxEditors for Windows with automatic completion, environments etc
Sage 5.5 was just released. It is a Linux native, is there a way to use it within windows with minimal constraints?
windows sagetex
add a comment |
Sage 5.5 was just released. It is a Linux native, is there a way to use it within windows with minimal constraints?
windows sagetex
add a comment |
Sage 5.5 was just released. It is a Linux native, is there a way to use it within windows with minimal constraints?
windows sagetex
Sage 5.5 was just released. It is a Linux native, is there a way to use it within windows with minimal constraints?
windows sagetex
windows sagetex
asked Jan 31 '13 at 0:22
c05772c05772
512214
512214
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
After experimenting, I suggest the following method. It is based on MikTex 2.9, TeXnicCenter, VMWare player (this one is free for home use), Linux Mint 14 with Cinnamon and of course Sage 5.5. It should be similar if you use VirtualBox. The goal was to use windows as most as possible and linux as little as possible, there is no need here to install TexLive in the virtual machine and to coordinate it with MikTeX.
The big picture is this one, it should be enough for a windows geek, it is followed by a more detailed explanantion.
INSTALLATION
- Install a virtualization software (VMWare, Virtual Box, Windows
Virtual PC) - Install a Debian Linux distribution (Mint 14 Cinnamon recommended as closest to the Windows look and feel)
- Share your TeX document directory between the host and the guest operating system with R/W rights
- Download and expand the latest sage package (Ubuntu 32 bit)
- "Install" sage in any user directory, sage being "portable", in windows parlance it is just a move of the directory
- Transfer the sage tex directory to the host operating system
- Make sage "known" to MikTeX, like any other new style or package
UTILIZATION
- "Miktexify" your *.tex file using the sagetex package with pdflatex,
- this generate a new *.sagetex.sage in your TeX directory and some warnings
- Open the guest operating system and start sage in a terminal
- Using a DOS, Linux command cd (change directory) at the sage prompt place the sage program in the shared Host/Guest Tex directory
- load (execute) sage your *.sagetex.sage file,
- this will generate two new files *.sagetex.scmd and *.sagetex.sout in your tx directory
- "Miktexify" your *.tex file again, the result of the sage computation will be written to your pdf output.
The result is just great, really worth the installation effort, it will improve the quality of your document avoiding typos in long expressions.
In the following modus operandi, the places where the Sage documentation is insufficient or not up to date are more detailed
- Install VMWare player from https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0
- Install your favorite Linux distro (but if you read this, you are obviously not a
Linux fan so use Linux Mint 14 with Cinnamon, the closest to windows
so far). http://www.linuxmint.com/edition.php?id=117 - Install VMWare tools
Let suppose that your windows working Tex directory is C:DocumentsMaths and your name is usrx
Within VMWare Virtual Machine Settings, tab Options Enable Shared Folders, always enable, uncheck the read only case in properties (the default is RW so it should not be necessary). In the Hardware tab for network adapter use NAT.
Download the package "sage-5.5-linux-32bit-ubuntu_12.04.1_lts-i86-Linux.tar.lzma" from
http://www.sagemath.org/download.html
and expand it (as a you would do in windows..) in your user directory /home/usrx, rename the directory to sage55 to make it short.
You now have sage installed in the directory /home/usrx/sage55, test it by double clicking the sage icon, choosing run in a terminal (let the directory update run its course)
When you get the sage:
prompt, test it with your favorite instruction, 2+2 may be, if you get 4 you are good to go.
Now, using Nemo, (here Windows users can read Explorer, the file icon at the bottom of the screen) open the directories /home/usrx/sage55/local/share/texmf
where you get a directory tex
, right click and copy it.
From the same nemo double click File System then the icon mnt
(mount) and then hgfs
. If everything went OK, you should find there your windows directory, Maths
shared between the host (Windows) and the guest (Mint 14).
In this directory you paste the tex
directory copied from /home/usrx/sage55/local/share/texmf
Now, we get back to windows but do not close the virtual machine, neither the sage terminal, you will use it for sagetex.
Using Administrator rights copy again this directory to your MikTeX installation with your other particular styles for example (I use one called modified C:Program FilesMiKTeX 2.9texlatexmodified
, e.g.) so that you now have C:Program FilesMiKTeX 2.9texlatexmodifiedtex
).
Update MikTex from the program menu, with the Maintenance (Admin) Setting(admin) Refresh FNDB button as usual.
Now we can try to use sagetex.
From TeXnicCenter, create a sample tex file, such as this one
documentclassarticle
usepackagesagetex
begindocument
Factoring $x^12-y^12$.
With Sage, for the rationals, we find
beginsageblock
L.<x,y>=LaurentPolynomialRing(QQ)
f=x^(12)-y^(12)
endsageblock
[sagef.factor()]
In the real domain we find
[x^12-y^12=(x+y)(x-y)left(x^2+y^2right)left(x^2+y^2+xyright)left(x^2+y^2- xyright)left(x^2+x y sqrt3+y^2right)left(x^2-x y sqrt3+y^2right).]
enddocument
call it SageX.tex, e.g.
Build and view your file once. You will have warnings about unreferenced sage items
and in your /mnt/hgfs/Maths directory, you will find a new file called SageX.sagetex.sage (NOT SageX.sage). The pdf file will have ??
where the answer to the factorization should be.
Go back to the virtual machine, to the sage terminal and sage prompt (sage:)
There you need to type a linux instruction followed by return, (Here the sage manual says that a linux instruction should be typed !cd but this does not work)
sage: cd /mnt/hgfs/Maths
(change to the share windowslinux directory), you should see this answer
/mnt/hgfs/Maths
Now type the instruction
sage: load SageX.sagetex.sage
If all went well you will get the answer
sage: load SageX.sagetex.sage
Processing Sage code for SageX.tex...
Code block begin...end
Inline formula 0
Sage processing complete. Run LaTeX on SageX.tex again.
Back to Windows. In C:DocumentsMaths, you have two new files SageX.sagetex.scmd and SageX.sagetex.sout. Run TeXnicCenter again, you should have no more warnings and the factorization of the polynomial in the rationals, computed by sage, will have replaced the ??
.
Note that as long as you do not modify the sage instruction, you don't need to run sage again, you can modify your text or add new LaTeX code within windows as long as you don't add (or modify) new sage code (or as long as you delete the three *.sage, *.scmd and *.sout files).
Sagetex is a great product so my hope is that some windows users will try the process and be convinced by the product (and also help in improving this text)...
sagetex
can be installed with the package manager in MiKTeX. I cannot judge, though, whether this is the recent version; otherwise regarding “transfer sage directory and make sage known to MiKTeX” I want to point to Create a local texmf tree in MiKTeX. And: For Sage there exists a Windows binary, what actually is a VirtualBox image, as written by you.
– Speravir
Mar 1 '13 at 1:52
I would like to add that this wasn't sufficient for me to work. Sage could not compile plots. Running " sudo apt-get install python-numpy " in the terminal got me what was missing and now it works. But thanks for the step by step tutorial.
– Jean-Sébastien
Feb 6 '14 at 22:57
add a comment |
There is a way to use sagetex on windows:
Step 1: Install miktex 2.9 64-bit, full install.
Step 2: Install Texniccenter 2.02 64-bit (I think another program like texworks, texmaker, winedt, etc will work).
Step 3: Install Sagemath 8.6 64-bit or better.
Step 4: Sagetex version in miktex is different to sagetex version in Sagemath 8.6. Then you should install in miktex same version of sagetex as you have in Sagemath.
This can be done copying al files in **c:Program FilesSageMath 8.6runtimeoptsagemath-8.6localsharetexmftexlatexsagetex** into **c:Program FilesMiKTeX 2.9texlatexsagetex**
Now using sagetex on windows is possible according this:
1.- Use texniccenter to compile your .tex document. Remember you have to load sagetex package: usepackagesagetex
2.- Sagemath installation on windows has 3 shotcurts. You should open Sagemath 8.6, not Sagemath 8.6 Shell or Sagemat 8.6 Notebook. Remember, Sagemath 8.6. After that a shell is opened and when we see sage:, sagemath is ready.
3.- Navigate to folder where our files are using "cd" command, like cd documents. Is important, if your folder's name has spaces placing it between ' ', i.e. cd 'folder 1'
4.- When you are into your destination folder, you can see its contents with "ls". There should be your sagetex.sage file. To process the file you have to write load('file.sagetex.sage') (file is the name of your .tex file) and the procces will start when you press enter.
5.- Finaly, use texniccenter to compile again the .tex file.
When you need to use again sage, you don't need to write the command, because using up arrow on your keyboard will apear the command and you only have to press enter.
I think will be possible automatize 3 steps using postprocessor on texniccenter, but I don't know how to do it right now.
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f96107%2fusing-sagetex-within-windows%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
After experimenting, I suggest the following method. It is based on MikTex 2.9, TeXnicCenter, VMWare player (this one is free for home use), Linux Mint 14 with Cinnamon and of course Sage 5.5. It should be similar if you use VirtualBox. The goal was to use windows as most as possible and linux as little as possible, there is no need here to install TexLive in the virtual machine and to coordinate it with MikTeX.
The big picture is this one, it should be enough for a windows geek, it is followed by a more detailed explanantion.
INSTALLATION
- Install a virtualization software (VMWare, Virtual Box, Windows
Virtual PC) - Install a Debian Linux distribution (Mint 14 Cinnamon recommended as closest to the Windows look and feel)
- Share your TeX document directory between the host and the guest operating system with R/W rights
- Download and expand the latest sage package (Ubuntu 32 bit)
- "Install" sage in any user directory, sage being "portable", in windows parlance it is just a move of the directory
- Transfer the sage tex directory to the host operating system
- Make sage "known" to MikTeX, like any other new style or package
UTILIZATION
- "Miktexify" your *.tex file using the sagetex package with pdflatex,
- this generate a new *.sagetex.sage in your TeX directory and some warnings
- Open the guest operating system and start sage in a terminal
- Using a DOS, Linux command cd (change directory) at the sage prompt place the sage program in the shared Host/Guest Tex directory
- load (execute) sage your *.sagetex.sage file,
- this will generate two new files *.sagetex.scmd and *.sagetex.sout in your tx directory
- "Miktexify" your *.tex file again, the result of the sage computation will be written to your pdf output.
The result is just great, really worth the installation effort, it will improve the quality of your document avoiding typos in long expressions.
In the following modus operandi, the places where the Sage documentation is insufficient or not up to date are more detailed
- Install VMWare player from https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0
- Install your favorite Linux distro (but if you read this, you are obviously not a
Linux fan so use Linux Mint 14 with Cinnamon, the closest to windows
so far). http://www.linuxmint.com/edition.php?id=117 - Install VMWare tools
Let suppose that your windows working Tex directory is C:DocumentsMaths and your name is usrx
Within VMWare Virtual Machine Settings, tab Options Enable Shared Folders, always enable, uncheck the read only case in properties (the default is RW so it should not be necessary). In the Hardware tab for network adapter use NAT.
Download the package "sage-5.5-linux-32bit-ubuntu_12.04.1_lts-i86-Linux.tar.lzma" from
http://www.sagemath.org/download.html
and expand it (as a you would do in windows..) in your user directory /home/usrx, rename the directory to sage55 to make it short.
You now have sage installed in the directory /home/usrx/sage55, test it by double clicking the sage icon, choosing run in a terminal (let the directory update run its course)
When you get the sage:
prompt, test it with your favorite instruction, 2+2 may be, if you get 4 you are good to go.
Now, using Nemo, (here Windows users can read Explorer, the file icon at the bottom of the screen) open the directories /home/usrx/sage55/local/share/texmf
where you get a directory tex
, right click and copy it.
From the same nemo double click File System then the icon mnt
(mount) and then hgfs
. If everything went OK, you should find there your windows directory, Maths
shared between the host (Windows) and the guest (Mint 14).
In this directory you paste the tex
directory copied from /home/usrx/sage55/local/share/texmf
Now, we get back to windows but do not close the virtual machine, neither the sage terminal, you will use it for sagetex.
Using Administrator rights copy again this directory to your MikTeX installation with your other particular styles for example (I use one called modified C:Program FilesMiKTeX 2.9texlatexmodified
, e.g.) so that you now have C:Program FilesMiKTeX 2.9texlatexmodifiedtex
).
Update MikTex from the program menu, with the Maintenance (Admin) Setting(admin) Refresh FNDB button as usual.
Now we can try to use sagetex.
From TeXnicCenter, create a sample tex file, such as this one
documentclassarticle
usepackagesagetex
begindocument
Factoring $x^12-y^12$.
With Sage, for the rationals, we find
beginsageblock
L.<x,y>=LaurentPolynomialRing(QQ)
f=x^(12)-y^(12)
endsageblock
[sagef.factor()]
In the real domain we find
[x^12-y^12=(x+y)(x-y)left(x^2+y^2right)left(x^2+y^2+xyright)left(x^2+y^2- xyright)left(x^2+x y sqrt3+y^2right)left(x^2-x y sqrt3+y^2right).]
enddocument
call it SageX.tex, e.g.
Build and view your file once. You will have warnings about unreferenced sage items
and in your /mnt/hgfs/Maths directory, you will find a new file called SageX.sagetex.sage (NOT SageX.sage). The pdf file will have ??
where the answer to the factorization should be.
Go back to the virtual machine, to the sage terminal and sage prompt (sage:)
There you need to type a linux instruction followed by return, (Here the sage manual says that a linux instruction should be typed !cd but this does not work)
sage: cd /mnt/hgfs/Maths
(change to the share windowslinux directory), you should see this answer
/mnt/hgfs/Maths
Now type the instruction
sage: load SageX.sagetex.sage
If all went well you will get the answer
sage: load SageX.sagetex.sage
Processing Sage code for SageX.tex...
Code block begin...end
Inline formula 0
Sage processing complete. Run LaTeX on SageX.tex again.
Back to Windows. In C:DocumentsMaths, you have two new files SageX.sagetex.scmd and SageX.sagetex.sout. Run TeXnicCenter again, you should have no more warnings and the factorization of the polynomial in the rationals, computed by sage, will have replaced the ??
.
Note that as long as you do not modify the sage instruction, you don't need to run sage again, you can modify your text or add new LaTeX code within windows as long as you don't add (or modify) new sage code (or as long as you delete the three *.sage, *.scmd and *.sout files).
Sagetex is a great product so my hope is that some windows users will try the process and be convinced by the product (and also help in improving this text)...
sagetex
can be installed with the package manager in MiKTeX. I cannot judge, though, whether this is the recent version; otherwise regarding “transfer sage directory and make sage known to MiKTeX” I want to point to Create a local texmf tree in MiKTeX. And: For Sage there exists a Windows binary, what actually is a VirtualBox image, as written by you.
– Speravir
Mar 1 '13 at 1:52
I would like to add that this wasn't sufficient for me to work. Sage could not compile plots. Running " sudo apt-get install python-numpy " in the terminal got me what was missing and now it works. But thanks for the step by step tutorial.
– Jean-Sébastien
Feb 6 '14 at 22:57
add a comment |
After experimenting, I suggest the following method. It is based on MikTex 2.9, TeXnicCenter, VMWare player (this one is free for home use), Linux Mint 14 with Cinnamon and of course Sage 5.5. It should be similar if you use VirtualBox. The goal was to use windows as most as possible and linux as little as possible, there is no need here to install TexLive in the virtual machine and to coordinate it with MikTeX.
The big picture is this one, it should be enough for a windows geek, it is followed by a more detailed explanantion.
INSTALLATION
- Install a virtualization software (VMWare, Virtual Box, Windows
Virtual PC) - Install a Debian Linux distribution (Mint 14 Cinnamon recommended as closest to the Windows look and feel)
- Share your TeX document directory between the host and the guest operating system with R/W rights
- Download and expand the latest sage package (Ubuntu 32 bit)
- "Install" sage in any user directory, sage being "portable", in windows parlance it is just a move of the directory
- Transfer the sage tex directory to the host operating system
- Make sage "known" to MikTeX, like any other new style or package
UTILIZATION
- "Miktexify" your *.tex file using the sagetex package with pdflatex,
- this generate a new *.sagetex.sage in your TeX directory and some warnings
- Open the guest operating system and start sage in a terminal
- Using a DOS, Linux command cd (change directory) at the sage prompt place the sage program in the shared Host/Guest Tex directory
- load (execute) sage your *.sagetex.sage file,
- this will generate two new files *.sagetex.scmd and *.sagetex.sout in your tx directory
- "Miktexify" your *.tex file again, the result of the sage computation will be written to your pdf output.
The result is just great, really worth the installation effort, it will improve the quality of your document avoiding typos in long expressions.
In the following modus operandi, the places where the Sage documentation is insufficient or not up to date are more detailed
- Install VMWare player from https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0
- Install your favorite Linux distro (but if you read this, you are obviously not a
Linux fan so use Linux Mint 14 with Cinnamon, the closest to windows
so far). http://www.linuxmint.com/edition.php?id=117 - Install VMWare tools
Let suppose that your windows working Tex directory is C:DocumentsMaths and your name is usrx
Within VMWare Virtual Machine Settings, tab Options Enable Shared Folders, always enable, uncheck the read only case in properties (the default is RW so it should not be necessary). In the Hardware tab for network adapter use NAT.
Download the package "sage-5.5-linux-32bit-ubuntu_12.04.1_lts-i86-Linux.tar.lzma" from
http://www.sagemath.org/download.html
and expand it (as a you would do in windows..) in your user directory /home/usrx, rename the directory to sage55 to make it short.
You now have sage installed in the directory /home/usrx/sage55, test it by double clicking the sage icon, choosing run in a terminal (let the directory update run its course)
When you get the sage:
prompt, test it with your favorite instruction, 2+2 may be, if you get 4 you are good to go.
Now, using Nemo, (here Windows users can read Explorer, the file icon at the bottom of the screen) open the directories /home/usrx/sage55/local/share/texmf
where you get a directory tex
, right click and copy it.
From the same nemo double click File System then the icon mnt
(mount) and then hgfs
. If everything went OK, you should find there your windows directory, Maths
shared between the host (Windows) and the guest (Mint 14).
In this directory you paste the tex
directory copied from /home/usrx/sage55/local/share/texmf
Now, we get back to windows but do not close the virtual machine, neither the sage terminal, you will use it for sagetex.
Using Administrator rights copy again this directory to your MikTeX installation with your other particular styles for example (I use one called modified C:Program FilesMiKTeX 2.9texlatexmodified
, e.g.) so that you now have C:Program FilesMiKTeX 2.9texlatexmodifiedtex
).
Update MikTex from the program menu, with the Maintenance (Admin) Setting(admin) Refresh FNDB button as usual.
Now we can try to use sagetex.
From TeXnicCenter, create a sample tex file, such as this one
documentclassarticle
usepackagesagetex
begindocument
Factoring $x^12-y^12$.
With Sage, for the rationals, we find
beginsageblock
L.<x,y>=LaurentPolynomialRing(QQ)
f=x^(12)-y^(12)
endsageblock
[sagef.factor()]
In the real domain we find
[x^12-y^12=(x+y)(x-y)left(x^2+y^2right)left(x^2+y^2+xyright)left(x^2+y^2- xyright)left(x^2+x y sqrt3+y^2right)left(x^2-x y sqrt3+y^2right).]
enddocument
call it SageX.tex, e.g.
Build and view your file once. You will have warnings about unreferenced sage items
and in your /mnt/hgfs/Maths directory, you will find a new file called SageX.sagetex.sage (NOT SageX.sage). The pdf file will have ??
where the answer to the factorization should be.
Go back to the virtual machine, to the sage terminal and sage prompt (sage:)
There you need to type a linux instruction followed by return, (Here the sage manual says that a linux instruction should be typed !cd but this does not work)
sage: cd /mnt/hgfs/Maths
(change to the share windowslinux directory), you should see this answer
/mnt/hgfs/Maths
Now type the instruction
sage: load SageX.sagetex.sage
If all went well you will get the answer
sage: load SageX.sagetex.sage
Processing Sage code for SageX.tex...
Code block begin...end
Inline formula 0
Sage processing complete. Run LaTeX on SageX.tex again.
Back to Windows. In C:DocumentsMaths, you have two new files SageX.sagetex.scmd and SageX.sagetex.sout. Run TeXnicCenter again, you should have no more warnings and the factorization of the polynomial in the rationals, computed by sage, will have replaced the ??
.
Note that as long as you do not modify the sage instruction, you don't need to run sage again, you can modify your text or add new LaTeX code within windows as long as you don't add (or modify) new sage code (or as long as you delete the three *.sage, *.scmd and *.sout files).
Sagetex is a great product so my hope is that some windows users will try the process and be convinced by the product (and also help in improving this text)...
sagetex
can be installed with the package manager in MiKTeX. I cannot judge, though, whether this is the recent version; otherwise regarding “transfer sage directory and make sage known to MiKTeX” I want to point to Create a local texmf tree in MiKTeX. And: For Sage there exists a Windows binary, what actually is a VirtualBox image, as written by you.
– Speravir
Mar 1 '13 at 1:52
I would like to add that this wasn't sufficient for me to work. Sage could not compile plots. Running " sudo apt-get install python-numpy " in the terminal got me what was missing and now it works. But thanks for the step by step tutorial.
– Jean-Sébastien
Feb 6 '14 at 22:57
add a comment |
After experimenting, I suggest the following method. It is based on MikTex 2.9, TeXnicCenter, VMWare player (this one is free for home use), Linux Mint 14 with Cinnamon and of course Sage 5.5. It should be similar if you use VirtualBox. The goal was to use windows as most as possible and linux as little as possible, there is no need here to install TexLive in the virtual machine and to coordinate it with MikTeX.
The big picture is this one, it should be enough for a windows geek, it is followed by a more detailed explanantion.
INSTALLATION
- Install a virtualization software (VMWare, Virtual Box, Windows
Virtual PC) - Install a Debian Linux distribution (Mint 14 Cinnamon recommended as closest to the Windows look and feel)
- Share your TeX document directory between the host and the guest operating system with R/W rights
- Download and expand the latest sage package (Ubuntu 32 bit)
- "Install" sage in any user directory, sage being "portable", in windows parlance it is just a move of the directory
- Transfer the sage tex directory to the host operating system
- Make sage "known" to MikTeX, like any other new style or package
UTILIZATION
- "Miktexify" your *.tex file using the sagetex package with pdflatex,
- this generate a new *.sagetex.sage in your TeX directory and some warnings
- Open the guest operating system and start sage in a terminal
- Using a DOS, Linux command cd (change directory) at the sage prompt place the sage program in the shared Host/Guest Tex directory
- load (execute) sage your *.sagetex.sage file,
- this will generate two new files *.sagetex.scmd and *.sagetex.sout in your tx directory
- "Miktexify" your *.tex file again, the result of the sage computation will be written to your pdf output.
The result is just great, really worth the installation effort, it will improve the quality of your document avoiding typos in long expressions.
In the following modus operandi, the places where the Sage documentation is insufficient or not up to date are more detailed
- Install VMWare player from https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0
- Install your favorite Linux distro (but if you read this, you are obviously not a
Linux fan so use Linux Mint 14 with Cinnamon, the closest to windows
so far). http://www.linuxmint.com/edition.php?id=117 - Install VMWare tools
Let suppose that your windows working Tex directory is C:DocumentsMaths and your name is usrx
Within VMWare Virtual Machine Settings, tab Options Enable Shared Folders, always enable, uncheck the read only case in properties (the default is RW so it should not be necessary). In the Hardware tab for network adapter use NAT.
Download the package "sage-5.5-linux-32bit-ubuntu_12.04.1_lts-i86-Linux.tar.lzma" from
http://www.sagemath.org/download.html
and expand it (as a you would do in windows..) in your user directory /home/usrx, rename the directory to sage55 to make it short.
You now have sage installed in the directory /home/usrx/sage55, test it by double clicking the sage icon, choosing run in a terminal (let the directory update run its course)
When you get the sage:
prompt, test it with your favorite instruction, 2+2 may be, if you get 4 you are good to go.
Now, using Nemo, (here Windows users can read Explorer, the file icon at the bottom of the screen) open the directories /home/usrx/sage55/local/share/texmf
where you get a directory tex
, right click and copy it.
From the same nemo double click File System then the icon mnt
(mount) and then hgfs
. If everything went OK, you should find there your windows directory, Maths
shared between the host (Windows) and the guest (Mint 14).
In this directory you paste the tex
directory copied from /home/usrx/sage55/local/share/texmf
Now, we get back to windows but do not close the virtual machine, neither the sage terminal, you will use it for sagetex.
Using Administrator rights copy again this directory to your MikTeX installation with your other particular styles for example (I use one called modified C:Program FilesMiKTeX 2.9texlatexmodified
, e.g.) so that you now have C:Program FilesMiKTeX 2.9texlatexmodifiedtex
).
Update MikTex from the program menu, with the Maintenance (Admin) Setting(admin) Refresh FNDB button as usual.
Now we can try to use sagetex.
From TeXnicCenter, create a sample tex file, such as this one
documentclassarticle
usepackagesagetex
begindocument
Factoring $x^12-y^12$.
With Sage, for the rationals, we find
beginsageblock
L.<x,y>=LaurentPolynomialRing(QQ)
f=x^(12)-y^(12)
endsageblock
[sagef.factor()]
In the real domain we find
[x^12-y^12=(x+y)(x-y)left(x^2+y^2right)left(x^2+y^2+xyright)left(x^2+y^2- xyright)left(x^2+x y sqrt3+y^2right)left(x^2-x y sqrt3+y^2right).]
enddocument
call it SageX.tex, e.g.
Build and view your file once. You will have warnings about unreferenced sage items
and in your /mnt/hgfs/Maths directory, you will find a new file called SageX.sagetex.sage (NOT SageX.sage). The pdf file will have ??
where the answer to the factorization should be.
Go back to the virtual machine, to the sage terminal and sage prompt (sage:)
There you need to type a linux instruction followed by return, (Here the sage manual says that a linux instruction should be typed !cd but this does not work)
sage: cd /mnt/hgfs/Maths
(change to the share windowslinux directory), you should see this answer
/mnt/hgfs/Maths
Now type the instruction
sage: load SageX.sagetex.sage
If all went well you will get the answer
sage: load SageX.sagetex.sage
Processing Sage code for SageX.tex...
Code block begin...end
Inline formula 0
Sage processing complete. Run LaTeX on SageX.tex again.
Back to Windows. In C:DocumentsMaths, you have two new files SageX.sagetex.scmd and SageX.sagetex.sout. Run TeXnicCenter again, you should have no more warnings and the factorization of the polynomial in the rationals, computed by sage, will have replaced the ??
.
Note that as long as you do not modify the sage instruction, you don't need to run sage again, you can modify your text or add new LaTeX code within windows as long as you don't add (or modify) new sage code (or as long as you delete the three *.sage, *.scmd and *.sout files).
Sagetex is a great product so my hope is that some windows users will try the process and be convinced by the product (and also help in improving this text)...
After experimenting, I suggest the following method. It is based on MikTex 2.9, TeXnicCenter, VMWare player (this one is free for home use), Linux Mint 14 with Cinnamon and of course Sage 5.5. It should be similar if you use VirtualBox. The goal was to use windows as most as possible and linux as little as possible, there is no need here to install TexLive in the virtual machine and to coordinate it with MikTeX.
The big picture is this one, it should be enough for a windows geek, it is followed by a more detailed explanantion.
INSTALLATION
- Install a virtualization software (VMWare, Virtual Box, Windows
Virtual PC) - Install a Debian Linux distribution (Mint 14 Cinnamon recommended as closest to the Windows look and feel)
- Share your TeX document directory between the host and the guest operating system with R/W rights
- Download and expand the latest sage package (Ubuntu 32 bit)
- "Install" sage in any user directory, sage being "portable", in windows parlance it is just a move of the directory
- Transfer the sage tex directory to the host operating system
- Make sage "known" to MikTeX, like any other new style or package
UTILIZATION
- "Miktexify" your *.tex file using the sagetex package with pdflatex,
- this generate a new *.sagetex.sage in your TeX directory and some warnings
- Open the guest operating system and start sage in a terminal
- Using a DOS, Linux command cd (change directory) at the sage prompt place the sage program in the shared Host/Guest Tex directory
- load (execute) sage your *.sagetex.sage file,
- this will generate two new files *.sagetex.scmd and *.sagetex.sout in your tx directory
- "Miktexify" your *.tex file again, the result of the sage computation will be written to your pdf output.
The result is just great, really worth the installation effort, it will improve the quality of your document avoiding typos in long expressions.
In the following modus operandi, the places where the Sage documentation is insufficient or not up to date are more detailed
- Install VMWare player from https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0
- Install your favorite Linux distro (but if you read this, you are obviously not a
Linux fan so use Linux Mint 14 with Cinnamon, the closest to windows
so far). http://www.linuxmint.com/edition.php?id=117 - Install VMWare tools
Let suppose that your windows working Tex directory is C:DocumentsMaths and your name is usrx
Within VMWare Virtual Machine Settings, tab Options Enable Shared Folders, always enable, uncheck the read only case in properties (the default is RW so it should not be necessary). In the Hardware tab for network adapter use NAT.
Download the package "sage-5.5-linux-32bit-ubuntu_12.04.1_lts-i86-Linux.tar.lzma" from
http://www.sagemath.org/download.html
and expand it (as a you would do in windows..) in your user directory /home/usrx, rename the directory to sage55 to make it short.
You now have sage installed in the directory /home/usrx/sage55, test it by double clicking the sage icon, choosing run in a terminal (let the directory update run its course)
When you get the sage:
prompt, test it with your favorite instruction, 2+2 may be, if you get 4 you are good to go.
Now, using Nemo, (here Windows users can read Explorer, the file icon at the bottom of the screen) open the directories /home/usrx/sage55/local/share/texmf
where you get a directory tex
, right click and copy it.
From the same nemo double click File System then the icon mnt
(mount) and then hgfs
. If everything went OK, you should find there your windows directory, Maths
shared between the host (Windows) and the guest (Mint 14).
In this directory you paste the tex
directory copied from /home/usrx/sage55/local/share/texmf
Now, we get back to windows but do not close the virtual machine, neither the sage terminal, you will use it for sagetex.
Using Administrator rights copy again this directory to your MikTeX installation with your other particular styles for example (I use one called modified C:Program FilesMiKTeX 2.9texlatexmodified
, e.g.) so that you now have C:Program FilesMiKTeX 2.9texlatexmodifiedtex
).
Update MikTex from the program menu, with the Maintenance (Admin) Setting(admin) Refresh FNDB button as usual.
Now we can try to use sagetex.
From TeXnicCenter, create a sample tex file, such as this one
documentclassarticle
usepackagesagetex
begindocument
Factoring $x^12-y^12$.
With Sage, for the rationals, we find
beginsageblock
L.<x,y>=LaurentPolynomialRing(QQ)
f=x^(12)-y^(12)
endsageblock
[sagef.factor()]
In the real domain we find
[x^12-y^12=(x+y)(x-y)left(x^2+y^2right)left(x^2+y^2+xyright)left(x^2+y^2- xyright)left(x^2+x y sqrt3+y^2right)left(x^2-x y sqrt3+y^2right).]
enddocument
call it SageX.tex, e.g.
Build and view your file once. You will have warnings about unreferenced sage items
and in your /mnt/hgfs/Maths directory, you will find a new file called SageX.sagetex.sage (NOT SageX.sage). The pdf file will have ??
where the answer to the factorization should be.
Go back to the virtual machine, to the sage terminal and sage prompt (sage:)
There you need to type a linux instruction followed by return, (Here the sage manual says that a linux instruction should be typed !cd but this does not work)
sage: cd /mnt/hgfs/Maths
(change to the share windowslinux directory), you should see this answer
/mnt/hgfs/Maths
Now type the instruction
sage: load SageX.sagetex.sage
If all went well you will get the answer
sage: load SageX.sagetex.sage
Processing Sage code for SageX.tex...
Code block begin...end
Inline formula 0
Sage processing complete. Run LaTeX on SageX.tex again.
Back to Windows. In C:DocumentsMaths, you have two new files SageX.sagetex.scmd and SageX.sagetex.sout. Run TeXnicCenter again, you should have no more warnings and the factorization of the polynomial in the rationals, computed by sage, will have replaced the ??
.
Note that as long as you do not modify the sage instruction, you don't need to run sage again, you can modify your text or add new LaTeX code within windows as long as you don't add (or modify) new sage code (or as long as you delete the three *.sage, *.scmd and *.sout files).
Sagetex is a great product so my hope is that some windows users will try the process and be convinced by the product (and also help in improving this text)...
edited Feb 1 '13 at 19:25
answered Jan 31 '13 at 0:22
c05772c05772
512214
512214
sagetex
can be installed with the package manager in MiKTeX. I cannot judge, though, whether this is the recent version; otherwise regarding “transfer sage directory and make sage known to MiKTeX” I want to point to Create a local texmf tree in MiKTeX. And: For Sage there exists a Windows binary, what actually is a VirtualBox image, as written by you.
– Speravir
Mar 1 '13 at 1:52
I would like to add that this wasn't sufficient for me to work. Sage could not compile plots. Running " sudo apt-get install python-numpy " in the terminal got me what was missing and now it works. But thanks for the step by step tutorial.
– Jean-Sébastien
Feb 6 '14 at 22:57
add a comment |
sagetex
can be installed with the package manager in MiKTeX. I cannot judge, though, whether this is the recent version; otherwise regarding “transfer sage directory and make sage known to MiKTeX” I want to point to Create a local texmf tree in MiKTeX. And: For Sage there exists a Windows binary, what actually is a VirtualBox image, as written by you.
– Speravir
Mar 1 '13 at 1:52
I would like to add that this wasn't sufficient for me to work. Sage could not compile plots. Running " sudo apt-get install python-numpy " in the terminal got me what was missing and now it works. But thanks for the step by step tutorial.
– Jean-Sébastien
Feb 6 '14 at 22:57
sagetex
can be installed with the package manager in MiKTeX. I cannot judge, though, whether this is the recent version; otherwise regarding “transfer sage directory and make sage known to MiKTeX” I want to point to Create a local texmf tree in MiKTeX. And: For Sage there exists a Windows binary, what actually is a VirtualBox image, as written by you.– Speravir
Mar 1 '13 at 1:52
sagetex
can be installed with the package manager in MiKTeX. I cannot judge, though, whether this is the recent version; otherwise regarding “transfer sage directory and make sage known to MiKTeX” I want to point to Create a local texmf tree in MiKTeX. And: For Sage there exists a Windows binary, what actually is a VirtualBox image, as written by you.– Speravir
Mar 1 '13 at 1:52
I would like to add that this wasn't sufficient for me to work. Sage could not compile plots. Running " sudo apt-get install python-numpy " in the terminal got me what was missing and now it works. But thanks for the step by step tutorial.
– Jean-Sébastien
Feb 6 '14 at 22:57
I would like to add that this wasn't sufficient for me to work. Sage could not compile plots. Running " sudo apt-get install python-numpy " in the terminal got me what was missing and now it works. But thanks for the step by step tutorial.
– Jean-Sébastien
Feb 6 '14 at 22:57
add a comment |
There is a way to use sagetex on windows:
Step 1: Install miktex 2.9 64-bit, full install.
Step 2: Install Texniccenter 2.02 64-bit (I think another program like texworks, texmaker, winedt, etc will work).
Step 3: Install Sagemath 8.6 64-bit or better.
Step 4: Sagetex version in miktex is different to sagetex version in Sagemath 8.6. Then you should install in miktex same version of sagetex as you have in Sagemath.
This can be done copying al files in **c:Program FilesSageMath 8.6runtimeoptsagemath-8.6localsharetexmftexlatexsagetex** into **c:Program FilesMiKTeX 2.9texlatexsagetex**
Now using sagetex on windows is possible according this:
1.- Use texniccenter to compile your .tex document. Remember you have to load sagetex package: usepackagesagetex
2.- Sagemath installation on windows has 3 shotcurts. You should open Sagemath 8.6, not Sagemath 8.6 Shell or Sagemat 8.6 Notebook. Remember, Sagemath 8.6. After that a shell is opened and when we see sage:, sagemath is ready.
3.- Navigate to folder where our files are using "cd" command, like cd documents. Is important, if your folder's name has spaces placing it between ' ', i.e. cd 'folder 1'
4.- When you are into your destination folder, you can see its contents with "ls". There should be your sagetex.sage file. To process the file you have to write load('file.sagetex.sage') (file is the name of your .tex file) and the procces will start when you press enter.
5.- Finaly, use texniccenter to compile again the .tex file.
When you need to use again sage, you don't need to write the command, because using up arrow on your keyboard will apear the command and you only have to press enter.
I think will be possible automatize 3 steps using postprocessor on texniccenter, but I don't know how to do it right now.
New contributor
add a comment |
There is a way to use sagetex on windows:
Step 1: Install miktex 2.9 64-bit, full install.
Step 2: Install Texniccenter 2.02 64-bit (I think another program like texworks, texmaker, winedt, etc will work).
Step 3: Install Sagemath 8.6 64-bit or better.
Step 4: Sagetex version in miktex is different to sagetex version in Sagemath 8.6. Then you should install in miktex same version of sagetex as you have in Sagemath.
This can be done copying al files in **c:Program FilesSageMath 8.6runtimeoptsagemath-8.6localsharetexmftexlatexsagetex** into **c:Program FilesMiKTeX 2.9texlatexsagetex**
Now using sagetex on windows is possible according this:
1.- Use texniccenter to compile your .tex document. Remember you have to load sagetex package: usepackagesagetex
2.- Sagemath installation on windows has 3 shotcurts. You should open Sagemath 8.6, not Sagemath 8.6 Shell or Sagemat 8.6 Notebook. Remember, Sagemath 8.6. After that a shell is opened and when we see sage:, sagemath is ready.
3.- Navigate to folder where our files are using "cd" command, like cd documents. Is important, if your folder's name has spaces placing it between ' ', i.e. cd 'folder 1'
4.- When you are into your destination folder, you can see its contents with "ls". There should be your sagetex.sage file. To process the file you have to write load('file.sagetex.sage') (file is the name of your .tex file) and the procces will start when you press enter.
5.- Finaly, use texniccenter to compile again the .tex file.
When you need to use again sage, you don't need to write the command, because using up arrow on your keyboard will apear the command and you only have to press enter.
I think will be possible automatize 3 steps using postprocessor on texniccenter, but I don't know how to do it right now.
New contributor
add a comment |
There is a way to use sagetex on windows:
Step 1: Install miktex 2.9 64-bit, full install.
Step 2: Install Texniccenter 2.02 64-bit (I think another program like texworks, texmaker, winedt, etc will work).
Step 3: Install Sagemath 8.6 64-bit or better.
Step 4: Sagetex version in miktex is different to sagetex version in Sagemath 8.6. Then you should install in miktex same version of sagetex as you have in Sagemath.
This can be done copying al files in **c:Program FilesSageMath 8.6runtimeoptsagemath-8.6localsharetexmftexlatexsagetex** into **c:Program FilesMiKTeX 2.9texlatexsagetex**
Now using sagetex on windows is possible according this:
1.- Use texniccenter to compile your .tex document. Remember you have to load sagetex package: usepackagesagetex
2.- Sagemath installation on windows has 3 shotcurts. You should open Sagemath 8.6, not Sagemath 8.6 Shell or Sagemat 8.6 Notebook. Remember, Sagemath 8.6. After that a shell is opened and when we see sage:, sagemath is ready.
3.- Navigate to folder where our files are using "cd" command, like cd documents. Is important, if your folder's name has spaces placing it between ' ', i.e. cd 'folder 1'
4.- When you are into your destination folder, you can see its contents with "ls". There should be your sagetex.sage file. To process the file you have to write load('file.sagetex.sage') (file is the name of your .tex file) and the procces will start when you press enter.
5.- Finaly, use texniccenter to compile again the .tex file.
When you need to use again sage, you don't need to write the command, because using up arrow on your keyboard will apear the command and you only have to press enter.
I think will be possible automatize 3 steps using postprocessor on texniccenter, but I don't know how to do it right now.
New contributor
There is a way to use sagetex on windows:
Step 1: Install miktex 2.9 64-bit, full install.
Step 2: Install Texniccenter 2.02 64-bit (I think another program like texworks, texmaker, winedt, etc will work).
Step 3: Install Sagemath 8.6 64-bit or better.
Step 4: Sagetex version in miktex is different to sagetex version in Sagemath 8.6. Then you should install in miktex same version of sagetex as you have in Sagemath.
This can be done copying al files in **c:Program FilesSageMath 8.6runtimeoptsagemath-8.6localsharetexmftexlatexsagetex** into **c:Program FilesMiKTeX 2.9texlatexsagetex**
Now using sagetex on windows is possible according this:
1.- Use texniccenter to compile your .tex document. Remember you have to load sagetex package: usepackagesagetex
2.- Sagemath installation on windows has 3 shotcurts. You should open Sagemath 8.6, not Sagemath 8.6 Shell or Sagemat 8.6 Notebook. Remember, Sagemath 8.6. After that a shell is opened and when we see sage:, sagemath is ready.
3.- Navigate to folder where our files are using "cd" command, like cd documents. Is important, if your folder's name has spaces placing it between ' ', i.e. cd 'folder 1'
4.- When you are into your destination folder, you can see its contents with "ls". There should be your sagetex.sage file. To process the file you have to write load('file.sagetex.sage') (file is the name of your .tex file) and the procces will start when you press enter.
5.- Finaly, use texniccenter to compile again the .tex file.
When you need to use again sage, you don't need to write the command, because using up arrow on your keyboard will apear the command and you only have to press enter.
I think will be possible automatize 3 steps using postprocessor on texniccenter, but I don't know how to do it right now.
New contributor
edited 5 mins ago
New contributor
answered 12 mins ago
Pedro Jose Moreno GarciaPedro Jose Moreno Garcia
12
12
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f96107%2fusing-sagetex-within-windows%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown