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 explain it.  The 
function 'latex_extra_preamble' doesn't set the preamble, it tells you what 
it is, so if you execute

from sage.misc.latex import latex_extra_preamble 
latex_extra_preamble() 

then you'll get a long string containing the preamble.  (The standard 
documentation says that the function "Return the string containing the 
user-configured preamble".)  If you use your three lines, then it evaluates 
each of them, but only prints the return value of the last one, which is the 
string '\\newcommand...'.  It doesn't modify the preamble.

-- 
John

-- 
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
URL: http://www.sagemath.org

Reply via email to