Oops! John, you are absolutely right.
I misread the documentation. Thanks.
On Jun 21, 11:52 am, John H Palmieri wrote:
> 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_
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
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,
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.
> \floor
>
> l
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.
\floor
l.31 $\floor
{y}$
What did I miss here?
On Jun 20, 7:06 pm, Joh
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}, \