On Apr 6, 5:30 pm, Dan Drake <[EMAIL PROTECTED]> wrote:
> On Sun, 06 Apr 2008 at 04:26PM -0700, John Palmieri wrote:
> > A bit more information: it seems that if I include the line "import
> > sage.misc.latex as latex" in my file, then "latex(a)" gives an error.
>
> I think you want "from sage.misc.latex import latex". Your command above
> gives you access to the latex() function with "latex.latex(a)". The line
> I suggested pulls in the latex() function (which is in the
> sage.misc.latex module) and puts it in the top-level namespace.
>
> (Someone who really knows Python namespaces and module importing should
> check this over; I'm not an expert at that stuff.)

You may be right, I don't know, but the documentation says

  "Put import sage.misc.latex as latex at the top of the file that
defines your class."

(Section 2.7.1, item 1.)  Also, it seems to work with no import
command at all.  I think the documentation needs to be changed.
Delete item 1 altogether?

> Dan
>
> --
> ---  Dan Drake <[EMAIL PROTECTED]>
> -----  KAIST Department of Mathematical Sciences
> -------  http://math.kaist.ac.kr/~drake
>
>  signature.asc
> 1KDownload
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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