Thanks. Yours command work :)

I used

from sage.misc.latex import latex_extra_preamble
latex_extra_preamble()
'\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}'

which I found in the standard documentation. And it does not work.
Perhaps, someone can check whether it is a bug.


On Jun 21, 7:26 am, John H Palmieri <jhpalmier...@gmail.com> wrote:
> On Monday, June 20, 2011 7:22:32 PM UTC-7, pong wrote:
>
> > 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?
>
> How did you set the latex preamble?  I did this; this is the recommended
> way:
>
> latex.add_to_preamble('\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}')
>
> --
> 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