SageTeX is a package enabling Sage mathematics software to be used from within LaTeX documents in a wide variety of ways, similar to Sweave in R.

learn more… | top users | synonyms

6
votes
1answer
697 views

Using SageTeX within Windows

Sage 5.5 was just released. It is a Linux native, is there a way to use it within windows with minimal constraints?
6
votes
2answers
206 views

How to just print the calculation using sagetex

I want a command \simp which takes an algebraic expression E_1 and outputs E_1 = E_2 where E_2 is the simplified form of E_2. To do so I tried to use sagetex like this: \documentclass{article} ...
4
votes
1answer
149 views

Making AUCTeX aware of SageTeX

When you compile a file with AUCTeX, it will prompt you to re-run LaTeX and BibTeX as necessary. Is there a way to get it to also run sage when using SageTeX?
4
votes
0answers
50 views

Using comma as a decimal mark with SageTeX [closed]

There are a lot of questions about how-to use comma instead of dot in standart LaTeX documents. But how i can do this in documents with SageTeX? P.S. I use online editor cloud.sagemath.com
4
votes
0answers
190 views

Sage + Latex - How to change a font for axes label?

I use Sage and LaTeX and when I do this: \begin{sagesilent} p2 = list_plot(zip(H, f(5)), True, color='blue', axes_labels=[u'$H,$ ΠΊΠΌ',u'$\mu, c$']) p2.fontsize(14) \end{sagesilent} and run sage ...
3
votes
1answer
218 views

Is it possible to integrate sage in kile?

I'm using sagetex to output the result of computations directly on LaTeX. I'm using Kile as my editor. The usual procedure for compilation is: compile LaTeX on Kile. goto terminal and load the Sage ...
2
votes
2answers
156 views

Runaway argument error when creating a macro for code that works outside a macro

I'm certain my problem is due to my almost complete lack of understanding of LaTeX's expansion rules... I wrote some code, which uses the SageTeX package to keep track of a list of answers to ...
2
votes
1answer
213 views

Layout of Sagetex in Tex (using Kile)

If you have something like: \begin{sagesilent} G=Graphics() H=Graphics() var('x') G+=plot(cos(x),(x,0,pi)) H+= text("$\cos(x)$", (1, 1), fontsize=16, color='black') \end{sagesilent} \[ ...
1
vote
1answer
311 views

Using quotes inside sageplot environment in SageTeX

Here's the question: how do I get the following to work in SageTeX? The quotes always lead to an error. \sageplot{plot(cos(x),(x,0,pi),label='$\cos(x)$')} Double quotes, escaping them, ... nothing ...
1
vote
0answers
28 views

using sagetex hebrew

i wrote some code in sagtex and it run ok i use in \sagestr macro however when i insert the following 2 lines \usepackage[utf8x]{inputenc} \usepackage[english,hebrew]{babel} i cannot complie the ...
1
vote
0answers
75 views

Is it possible to use `lualatex`'s DVI output with `fontspec` without getting font-related errors?

Is it possible to use lualatex's DVI output with fontspec without getting font-related errors? I want to use the (eps-based) output of sagetex with a lualatex generated document with fontspec. As ...
0
votes
0answers
114 views

How to make a package using sagetex and sage-commands

I am trying to make my own package building on sagetex. It starts with \RequirePackage{sagetex} and I want it to execute some 'sagesilent' code as for instance \newcommand{\loadsagefunction}{ ...