On Jan 29, 2:09 am, lutusp <lut...@gmail.com> wrote:
> > Give some examples, please.
>
> var("y R")
>
> a(y,R) = pi * (2*R - y) * y
>
> lbl = text("$\int \  " + latex(a(y,R)) + "$",(3,20))
>
> view(lbl)
>  ... Graphics object consisting of 1 graphics primitive (not
> displayed)
> show(lbl)
>  ...  Unknown control sequence '\texttt'

When I evaluate "lbl", I don't get a picture; something is broken in
the "text" command.  Because there is no picture, "show" defaults to
trying to print a text description, leading to this message.  The
patch fixes it so the text description prints correctly.  I don't know
why "text" is broken, but  I bet someone can help.

By the way, if I run

var("y R")
a(y,R) = pi * (2*R - y) * y
lbl = text("$\int \  " + r"{\left(2 R - y\right)} \pi y" + "$",
(3,20))

then executing "lbl" or "show(lbl)" produce a picture.  If I change
the last line to

lbl = text("$\int \  " + r"{\left(2 \, R - y\right)} \pi y" + "$",
(3,20))   # insert \, between 2 and R

I get an error.

> No graphics shown.
>
> > By the way, have you tried the patch I mentioned in my other message today?
>
> I initially dealt with Sage problems that way, but the patches keep
> changing with each new version while the problem remains unsolved. I
> eventually concluded it was simpler not to upgrade. The present
> problem is less severe in earlier versions.

Then why do you bother posting things that look like requests for
help?

--
John

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to