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

2
votes
0answers
17 views

sagetex with breqn ? break line sagetex equations

When using sagetex, it often produces very long equations that are not visible anymore because they go over the page width. How to fix that? I could work around it by loading the .sagetex.sage into ...
0
votes
1answer
40 views

How do I write a custom command to enable Sage in Texmaker?

Asking by request to get a screenshot answer to figure out how to enable Sage in Texmaker as I apparently can't figure it out on my own.
1
vote
1answer
63 views

Strange result when trying to use sagetex

As a result of another question I'm trying to use Sagetex. I performed the install as directed, and even got the compile to succeed, insofar as there are no fatal errors, but it appears that sagetex ...
0
votes
1answer
23 views

Sagetex : Avoiding printing code

I was trying to use the Sagetex code below. However when I generate the graph inside latex, I'd like to avoid the code being printed out before the graph. How could I go about doing that? ...
0
votes
1answer
28 views

Sagetex: problems with layout, and sage results

I am writing an article with some embedded Sage code, using Sagetex for the purpose. Mostly it works well, with multiple uses of the sageexample environment. However, there are several things I'd ...
2
votes
2answers
107 views

Translate sage input to latex without simplifying

In sage it doesn't seem possible to print latex code of an expression without simplifying it in some way. For example \sage(x/x) should translate to \frac{x}{x} instead of 1, see this question on ...
0
votes
1answer
127 views

Is it possible to emulate a Sage session with SageTeX?

I'm editing an existing calculus book that uses Sage to demonstrate concepts. The existing book has Sage code listings that show what output the user will see if they duplicate the commands. For ...
1
vote
1answer
122 views

Having trouble getting SageTeX working

According to the Make SageTeX known to TeX, the preferred way to let TeX know about SageTeX is to copy the tex folder found at SAGE_ROOT/local/share/texmf/tex (which in my OS X case is ...
0
votes
1answer
60 views

Is it possible to sagetex without Sage installation?

Is it possible to use sagetex without Sage installation if I have an account in the Sagemath Cloud?
0
votes
0answers
104 views

How to run LuaLaTeX or sagetex?

I have OSX. Texlive2014 is installed. I am using Texmaker. But I cannot compile a simple lualatex or sagetex source file. I get lots of errors. I have to install something or set something in the ...
3
votes
1answer
151 views

How to pass a function defined in sagetex to pgfplots

Is there any way to pass a function defined in sagtex to pgfplots for plotting? See the following example. \documentclass{article} \usepackage{pgfplots} \usepackage{sagetex} \begin{document} ...
0
votes
0answers
51 views

How to use sage recursively (term reusage)?

I want to use sage not only for calculations in the LaTeX source, but for maximal text reusage (e.g. in order to avoid typos in large sums). The following example illustrates my problem and shows my ...
4
votes
2answers
106 views

How to store values in variables in sagetex?

The sagetex documentation (S. 5) says Also keep in mind that everything you send to Sage is done within one Sage session. This means you can define variables and reuse them throughout your LaTeX ...
4
votes
2answers
202 views

How to pass parameters to Sage from Sagetex?

I haven't found a way to pass parameters to a sagesilent environment, so I wonder if it's possible. My final purpose is to combine sagetex with probsoln. The package probsoln lets you manage a problem ...
1
vote
2answers
133 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
62 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
211 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 ...
3
votes
1answer
159 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
188 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
61 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
84 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
215 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
457 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} ...
5
votes
0answers
303 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 ...
1
vote
0answers
183 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
308 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
1k 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
204 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
226 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
271 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
426 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 ...