How are you starting up Sage? If you're starting up sage via

/path/into/folder/sage

then you'll have to do

/path/into/folder/sage -b


On Mar 10, 2009, at 8:52 PM, nsauer wrote:

>
> Thanks for the help. I made the changes
> but failed to recompile. Here is what I did:
> (test is my home name) where is this sage binary?
>
> Laptop-3:~ test$ sage -b
> -bash: sage: command not found
>
> Laptop-3:/ test$ sage -b
> -bash: sage: command not found
>
> Laptop-3:sage test$ sage -b
> -bash: sage: command not found
>
> sage: sage -b
> ---------------------------------------------------------------------- 
> -----
> NameError                                 Traceback (most recent call
> last)
>
> /Users/test/<ipython console> in <module>()
>
> NameError: name 'b' is not defined
> sage:
>
> Norbert
>
>
> On Mar 10, 2:28 pm, John H Palmieri <[email protected]> wrote:
>> On Mar 10, 1:00 pm, nsauer <[email protected]> wrote:
>>
>>> Thanks for your reply;
>>
>>> As I am completely new to sage I do not know how to
>>> perform the indicated change. I looked at the file
>>> sage/devel/sage/sage/matrix0.pyx
>>> but could not figure out how and where to add
>>> the function sage.matrix.matrix0.set_latex_delimiters('[',']')
>>
>> If you want to make a change just for your own personal use (that is,
>> switching to square brackets, not implementing set_latex_delimiters),
>> then in the line
>>
>>         return "\\left(\\begin{array}{%s}\n"%format + s + "\n\\end
>> {array}\\right)"
>>
>> change '\\left(' to '\\left[' and similarly change '\\right)' to '\
>> \right]'.  Run 'sage -b' to recompile the changed file.  If you're
>> going to be using 0 x n matrices, or n x 0 matrices, then you should
>> also change the parentheses to brackets in this line (36 lines
>> earlier):
>>
>>   return "()"
>>
>> --
>> John
> >


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to