I don't think the easiest way that you describe is possible.
In my .tex file i write:
\begin{sagesilent}
  a=matrix(QQ,[[1,1],[2,-1],[1,-1]])
\end{sagesilent}
$\sage{a.transpose()}\cdot\sage{a}=\sage{(a.transpose()*a).inverse()}$\
\
The latex-code for the matrices is not visible here. I only get the
resulting .dvi, .ps and .pdf-files.

I found out that the latex()-command in sage uses a file called
latex.py, and even if i haven't done anything in python before, i
think I will be able to edit that file. I have not yet found out how
to compile latex.py to get latex.pyc, and I don't know if I have to do
anything more than that, like rebuilding sage. Is there a chance that
this will work?

On Dec 17, 6:27 pm, "David Joyner" <wdjoy...@gmail.com> wrote:
> The easiest way is probably to simply do a global search+replace of \left(
> and \right) on the file:-)
>
> The much harder way is to create a clone, then track down
> the method for the latex code (try M._latex_??, where M is your matrix),
> edit it and rebuild Sage using "sage -b".
>
> If you think your request is of general interest, you could also ask on
> sage-devel if having a square bracket option is something others would
> want. Maybe someone will implement it!
>
> On Wed, Dec 17, 2008 at 7:08 AM, Geodet <helge.nysae...@gmail.com> wrote:
>
> > I have just begun using sagetex (in Kile on Ubuntu Linux) for writing
> > math lecture notes. I would like sagetex to display the matrices with
> > square brackets [] instead of round brackets or parentheses (). I
> > guess that the change must be done in SAGE, so that the latex()-
> > command produces matrices with square brackets. Do anyone know how
> > this can be done?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to