[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?
On 6/21/11 12:23 PM, Chris Seberino wrote: On Jun 21, 7:56 am, kcrisman wrote: For clarification, this creates a "raw" string. You should also be able to use \\tan, which "escapes" the \ so that it doesn't have a special meaning to Python. I imagine similar issues are going to happen for Latex commands that begin with n and r then? :) Yes. Anytime I think there might be latex in a string, I use the r"string" raw syntax. \v is also another problem Jason -- 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
[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?
On Jun 21, 7:56 am, kcrisman wrote: > For clarification, this creates a "raw" string. You should also be > able to use \\tan, which "escapes" the \ so that it doesn't have a > special meaning to Python. I imagine similar issues are going to happen for Latex commands that begin with n and r then? :) -- 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
[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?
On Jun 20, 10:37 pm, Nils Bruin wrote: > On Jun 20, 2:13 pm, Chris Seberino wrote: > > > Is there a problem with Latex commands that begin with \t for some > > reason? > > That's just python's string escaping. Use html(r'$\tan$') instead. For clarification, this creates a "raw" string. You should also be able to use \\tan, which "escapes" the \ so that it doesn't have a special meaning to Python. -- 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
[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?
On Jun 20, 2:13 pm, Chris Seberino wrote: > Is there a problem with Latex commands that begin with \t for some > reason? That's just python's string escaping. Use html(r'$\tan$') instead. -- 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