[sage-support] Re: latex_extra_preamble

2011-06-21 Thread pong
Oops! John, you are absolutely right. I misread the documentation. Thanks. On Jun 21, 11:52 am, John H Palmieri wrote: > On Tuesday, June 21, 2011 9:17:14 AM UTC-7, pong wrote: > > > Thanks. Yours command work :) > > > I used > > > from sage.misc.latex import latex_extra_preamble > > latex_extra_

[sage-support] Re: latex_extra_preamble

2011-06-21 Thread John H Palmieri
On Tuesday, June 21, 2011 9:17:14 AM UTC-7, pong wrote: > > Thanks. Yours command work :) > > I used > > from sage.misc.latex import latex_extra_preamble > latex_extra_preamble() > '\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}' > Do you mean you executed this in a Sage cell? That would

[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?

2011-06-21 Thread Jason Grout
On 6/21/11 12:23 PM, Chris Seberino wrote: On Jun 21, 7:56 am, kcrisman wrote: For clarification, this creates a "raw" string. You should also be able to use \\tan, which "escapes" the \ so that it doesn't have a special meaning to Python. I imagine similar issues are going to happen for L

[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?

2011-06-21 Thread Chris Seberino
On Jun 21, 7:56 am, kcrisman wrote: > For clarification, this creates a "raw" string.  You should also be > able to use \\tan, which "escapes" the \ so that it doesn't have a > special meaning to Python. I imagine similar issues are going to happen for Latex commands that begin with n and r the

[sage-support] Re: notebooks perfect in Firefox but different issues in Chrome and Internet Explorer

2011-06-21 Thread Chris Seberino
On Jun 21, 7:58 am, kcrisman wrote: > Let us know if this helps.  I agree it is suboptimal. Since there may be other inconsistencies between browsers, it seems safer to just have all students use Firefox. That is fine with me. I had other unrelated browser incompatibility issues with some onl

[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-21 Thread Chris Seberino
On Jun 21, 9:09 am, Rolf wrote: > This question may sound somehow out of place, but maybe you can offer > some help. > Where in the documentation did you find something about this fancy > notation to include variables into your html()? I found it on one of the published worksheets not in officia

[sage-support] Re: latex_extra_preamble

2011-06-21 Thread pong
Thanks. Yours command work :) I used from sage.misc.latex import latex_extra_preamble latex_extra_preamble() '\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}' which I found in the standard documentation. And it does not work. Perhaps, someone can check whether it is a bug. On Jun 21, 7:26 am,

[sage-support] Re: latex_extra_preamble

2011-06-21 Thread John H Palmieri
On Monday, June 20, 2011 7:22:32 PM UTC-7, pong wrote: > > Thank you for your tips. > > I use SAGE 4.7 > %latex_debug shows that latex complains about \floor is an undefined > control sequence (as if the latex_extra_preamble() has no effect) > > ! Undefined control sequence. > \floor > > l

[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-21 Thread Rolf
>   html('The Number: $%f$'%(5 * 10**exponent)) >   html('In Scientific Notation: $5 \cdot 10^{%d}$'%exponent) This question may sound somehow out of place, but maybe you can offer some help. Where in the documentation did you find something about this fancy notation to include variables into your

[sage-support] Re: install R packages on OS X

2011-06-21 Thread Kirill Vankov
> You shouldn't have to move it anywhere; Sage doesn't have to live > anyplace in particular.  Is it only after you move it that you > encounter problems?    Maybe you have permission issues there? Yes, the problems were only with R packages and only after I moved entire sage folder. I did not wa

[sage-support] Re: notebooks perfect in Firefox but different issues in Chrome and Internet Explorer

2011-06-21 Thread kcrisman
> The slider of interact widget didn't work for one student in Internet > Explorer. Is it possible this is an older version of IE? Unfortunately, IE uses completely different javascript ideas, or so the experts tell me. I'm not sure there is a short-term solution to this. > The html text was m

[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?

2011-06-21 Thread kcrisman
On Jun 20, 10:37 pm, Nils Bruin wrote: > On Jun 20, 2:13 pm, Chris Seberino wrote: > > > Is there a problem with Latex commands that begin with \t for some > > reason? > > That's just python's string escaping. Use html(r'$\tan$') instead. For clarification, this creates a "raw" string. You sh

[sage-support] function of vector variables

2011-06-21 Thread Dmitry Shkirmanov
Hello, i think that my question is simple one, but i have not found answer in the reference manual. I need a function of vector variables. For example: var("x1,x2,x3") x=vector([x1,x2,x3]) Is it possible to define a function of the vector variable "x", something like this: f(x)=sum(x[i]*x[i]for i i