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.
<recently read> \floor

l.31 $\floor
            {y}$
....

What did I miss here?


On Jun 20, 7:06 pm, John H Palmieri <jhpalmier...@gmail.com> wrote:
> On Monday, June 20, 2011 6:30:07 PM UTC-7, pong wrote:
>
> > In notebook, I want to define \floor{x} as \lfloor x \rfloor so I
> > tried
>
> > from sage.misc.latex import latex_extra_preamble
>
> > latex_extra_preamble()
> > '\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}'
>
> > %latex
> > $\floor{x}, \lfloor x \rfloor$
>
> > shows that \floor{x} does not typeset correctly and the system does
> > recognize both \lfloor and \rfloor
>
> It works for me, in Sage versions 4.6.2, 4.7, and 4.7.1.alpha2.  What
> version are you using?  Try using
>
> %latex_debug
> $\floor{x}, \lfloor x \rfloor$
>
> and see if that tells you anything helpful.
>
> --
> 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