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

0
votes
1answer
51 views

Is it possible to make Beamer pause-handout mode compatible with SageTeX?

I use SageTeX with Beamer for my classes. I need two sets of pdf files, one with the pause for the screen and the handout one to save trees. I use MikTeX under Windows. To get both I start with two ...
1
vote
0answers
52 views

An 'equals to' statement to the side of your matrix using LaTeX

so I am using Sage and I am trying to get the statement {B_{old}}^{-1} = beside my matrix \[ \begin{pmatrix} 0 & 0 & 0 & 0 & 0 & 0 & -1 \\ 1 & {3\over10} & 0 & ...
2
votes
1answer
82 views

Using Sagetex on cloud.sagemath.com, is it possible to make Sageblock code wrap automatically?

Creating a LaTeX document on the Sage Math Cloud. Whenever I use a sageblock, I end up with endless typesetting warnings because the notes and code inside the sageblock does not automatically wrap ...
2
votes
1answer
70 views

Using SageTeX with siunitx

I have the following problem: I'd like to do calculations using SageTeX and use the result in an siunitx expression, so that (for example) \SI{\sage{3.5^2}}{kg m} would give me the same result as ...
3
votes
1answer
85 views

Passing files to SAGE on Mac OS X

System: Mac OS X 10.9.2 Sage Version 6.1.1, Release Date: 2014-02-04 TexLive 2013 installation I'm trying to pass a file generated by LaTex (sagetex.sty) that is in SAGE format to my local ...
1
vote
0answers
46 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 ...
4
votes
0answers
67 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
1
vote
0answers
109 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 ...
6
votes
2answers
262 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
0answers
218 views

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

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 ...
0
votes
0answers
129 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}{ ...
3
votes
1answer
237 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 ...
6
votes
1answer
832 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?
2
votes
2answers
171 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 ...
4
votes
1answer
176 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?
2
votes
1answer
227 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
2answers
356 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 ...