1 | initial version |

Given a document `something.tex`

using SageTeX,
the steps for typesetting are:

one round of typesetting with latex

for instance with this terminal command:

`$ pdflatex something.tex`

This produces a file

`something.sagetex.sage`

.one round of running Sage on that file

for instance with this terminal command:

`$ sage something.sagetex.sage`

This requires

`sage`

to be somewhere in your`PATH`

.This prepares all the Sage output for the next round of typesetting.

two rounds of typesetting with latex

for instance with this terminal command:

`$ pdflatex something.tex $ pdflatex something.tex`

This produces the desired file

`something.pdf`

.

`sage`

is not in my `PATH`

?Here is one way to get it there.

start Sage

in Sage, run this command:

`sage: !sudo ln -sf $SAGE_ROOT/sage /usr/local/bin`

type in the password for your user account on your mac

quit Sage

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.