latex \cancel not rendering

142 views
Skip to first unread message

dbjohn

unread,
Jun 6, 2010, 7:31:16 AM6/6/10
to sage-support
I only recently discovered the latex \cancel command but it is not
rendering on the sage online version I am using. Other latex command
such as \frac, \times etc are working. Is this command available in
sage's latex abilities, do I need to install a package perhaps?

Rob Beezer

unread,
Jun 6, 2010, 11:55:37 AM6/6/10
to sage-support
The Sage notebook uses jsMath to render mathematics. jsMath only
implements a (large) subset of TeX, so it is likely that \cancel is
not part of its capabilities. You can see much of what is possible
at:

http://www.math.union.edu/~dpvc/jsMath/symbols/welcome.html

Rob

dbjohn

unread,
Jun 6, 2010, 12:33:49 PM6/6/10
to sage-support
Is there any links or guides that could show me how to extend the
latex capabilities of Sage. Would it be very complicated?

Rob Beezer

unread,
Jun 6, 2010, 1:28:43 PM6/6/10
to sage-support
I'm working on a guide. Still in *very* rough draft stage, but might
be readable in Trac (just click on the version 2 patch). Feedback
welcome.

http://trac.sagemath.org/sage_trac/ticket/9027

Mike Witt

unread,
Jun 6, 2010, 3:15:19 PM6/6/10
to sage-s...@googlegroups.com
On 06/06/2010 10:28:43 AM, Rob Beezer wrote:
> I'm working on a guide. Still in *very* rough draft stage, but might
> be readable in Trac (just click on the version 2 patch). Feedback
> welcome.

Here is some feedback: (1) This is very useful. I just read through it
and
learned some things that I never knew about sage/latex interaction.
(2) I rarely use the notebook interface, but most of what I do with sage
ends up constructing latex for output (from the command line). I gather,
from the lack of discussion about this mode, that my usage is
atypical(?)
(3) I think it would be helpful to have some information on how to
create objects with "custom" latex representations.

-Mike

Rob Beezer

unread,
Jun 7, 2010, 1:42:08 AM6/7/10
to sage-support
Mike,

Thanks for having a look. I hope to get back to this and tidy it up
in the next few weeks.

(2) This all seems more complicated in the notebook (with jsMath,
etc), and I do think most folks begin in the notebook. If you like
the command-line (I do too), then you don't need as much
guidance. ;-) that was my thought anyway.

(3) For any object in Sage (ie built as a class) define the _latex_()
method to return a latex representation (string of latex commands to
place inside dollar signs), then everything else is free.

Rob
Reply all
Reply to author
Forward
0 new messages