[sage-support] Using Sage String in LaTeX

2008-12-30 Thread H . S . Rai
I am trying to print symbol and their description in LaTeX. On sage console things appear to work fine, but whan processed through sagetex, it reports error. ! Undefined control sequence. \text {breadth of

[sage-support] Re: Reading data from file

2008-12-30 Thread H . S . Rai
On Mon, Dec 29, 2008 at 7:33 AM, David Joyner wrote: > > sage: f = open("mydatafile.txt") > sage: l1 = f.readline() Thanks to William and David for helping me. I may able to achieved what I targeted with following code: f = open('example01Data.txt') varList = [x.split(' // ') for x in f.readlin

[sage-support] Re: how do i embed sage in latex using \input files?

2008-12-30 Thread dsoto
this feature you describe would be an excellent addition to sagetex. this would allow the user to attach filename.sage to a sage session while developing the file and then use the file without editing in the latex document. i use this workflow but have to edit out the \begin and \end commands whe

[sage-support] Re: Bug in load_session

2008-12-30 Thread William Stein
On Tue, Dec 30, 2008 at 1:32 PM, M. Yurko wrote: > > I have recently been using save_session a bit, and I uncovered what I > believe is a bug. If the worksheet of the session that I'm trying to > save contains a cython function, then load_session chokes. For > example: This is a bug. Thanks fo

[sage-support] precision is not set to lowest when compositing a real with a float

2008-12-30 Thread ggrafendorfer
Hi, I'm not sure, but I guess this is considered as a bug, please let me know and I report it to trac: sage: a = RealField(100)(5) + float(5); type(a); a.prec() 100 sage: a = float(5) + RealField(100)(5); type(a); a.prec() 100 the same happens with multiplication, actually there are 2 issues:

[sage-support] Bug in load_session

2008-12-30 Thread M. Yurko
I have recently been using save_session a bit, and I uncovered what I believe is a bug. If the worksheet of the session that I'm trying to save contains a cython function, then load_session chokes. For example: var1 = 1 var2 = 2 var3 = srange(1,1) var4 = range(1,3000) var5 = 1234.123456 %cyt

[sage-support] Re: Problem with the wiki

2008-12-30 Thread M. Yurko
Thanks, it works once I use your link. On Dec 30, 10:59 am, mabshoff wrote: > On Dec 30, 7:55 am, "M. Yurko" wrote: > > Hi, > > > I just tried to access the wiki, and it keeps giving me this message: > > > Warning: > > You triggered the wiki's surge protection by doing too many requests > > in

[sage-support] Re: Problem with the wiki

2008-12-30 Thread mabshoff
On Dec 30, 7:55 am, "M. Yurko" wrote: Hi, > I just tried to access the wiki, and it keeps giving me this message: > > Warning: > You triggered the wiki's surge protection by doing too many requests > in a short time. > Please make a short break reading the stuff you already got. > When you re

[sage-support] Problem with the wiki

2008-12-30 Thread M. Yurko
I just tried to access the wiki, and it keeps giving me this message: Warning: You triggered the wiki's surge protection by doing too many requests in a short time. Please make a short break reading the stuff you already got. When you restart doing requests AFTER that, slow down or you might get

[sage-support] Labels for vertices of a graph

2008-12-30 Thread giovanni.marche...@ds.unifi.it
Is there a simple way to define a method that adds labels to the vertices of a graph or digraph? I would like to have something like G.show(labels = ['a', 'b', 'c']) when G is a graph with vertices [0,1,2]. Apparently, this is possible for graphs defined as dictionaries, but not for graphs de

[sage-support] Re: regarding jsMath

2008-12-30 Thread Harald Schilly
On Dec 30, 10:52 am, Brett Nakashima wrote: > Click on the link above and download _one_ of the tex font tarballs. > Untar it into ~/.fonts, if the directory doesn't exist, try creating > it. > > As I said, that worked for me in ubuntu, ... After that, you should probably also do a "fc-cache -

[sage-support] Re: regarding jsMath

2008-12-30 Thread Brett Nakashima
On Dec 29, 8:58 pm, "William Stein" wrote: > On Mon, Dec 29, 2008 at 8:54 PM,   wrote: > > > Hi > > I got sage installed (compiled from source). > > > However, when I check the Typeset checkbox in the sage notebook I get > > the following error > > "It looks like jsMath failed to set up properl

[sage-support] Re: regarding jsMath

2008-12-30 Thread freewill1729
Thanks Mr. Stein for the website link. Finally I could find the actual problem. The fonts folder should be present in the same folder as jsmath.js , which was not the case. After putting the fonts folder in the same folder as jsmath.js, things started to work. On Dec 30, 1:01 pm, freewill1...@gm

[sage-support] Re: bug/feature? increasing precision of a complex number

2008-12-30 Thread John Cremona
2008/12/30 John Cremona : > > I think that is a very good example, showing more clearly than the > original post what the problem is, and convincing me that the > behaviour of .n() should be changed as discussed earlier. I am > opening a ticket for this now. > http://trac.sagemath.org/sage_trac

[sage-support] Re: bug/feature? increasing precision of a complex number

2008-12-30 Thread John Cremona
2008/12/29 ggrafendorfer : > > Hi All, > thanks for all the answers, especially for John Cremona for being the > only one recognizing what I actually wanted to point out :-) > It's probably my fault, I'll take away obscuring examples the next > time and try to focus on the issue > > For better und

[sage-support] Re: regarding jsMath

2008-12-30 Thread freewill1729
I tried hard, but still I couldn't rectify the problem. I am using debian 4.0r0 and sage version is 3.1.4. I found that jsmath comes as a package in debian and I installed it. I even downloaded latest version of jsMath. None of the methods are working fine. It appears that some configuration is