Re: [sage-support] Re: Use latex tags in variable names?
That was exactly what I wanted. Thank you very much! Joon On Tue, Aug 2, 2011 at 12:44 AM, John H Palmieri jhpalmier...@gmail.comwrote: On Monday, August 1, 2011 8:28:57 PM UTC-7, Joon wrote: Hi, I just started using Sage, and I have a question about variable names. I skimmed through the documentation but could not find any answers. Is it possible to used latex tags in variable names so when I do show(var) I get the latex output? For example, I want to do: p_1star = var('p_1^*') Try: sage: p_1star = var('p_1star', latex_name='p_1^*') -- 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 -- 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: Use latex tags in variable names?
On Aug 2, 4:16 pm, joonpy joonp...@gmail.com wrote: That was exactly what I wanted. Thank you very much! Note that you could have discovered this feature by typing var? and looking at the examples there. John Joon -- 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
Re: [sage-support] Re: Use latex tags in variable names?
I actually found Sage's documentation hard to follow. This ? business looks really helpful. Thanks for the tip again! -Joon On Tue, 02 Aug 2011 10:35:22 -0500, John Cremona john.crem...@gmail.com wrote: On Aug 2, 4:16 pm, joonpy joonp...@gmail.com wrote: That was exactly what I wanted. Thank you very much! Note that you could have discovered this feature by typing var? and looking at the examples there. John Joon -- 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: Use latex tags in variable names?
On Monday, August 1, 2011 8:28:57 PM UTC-7, Joon wrote: Hi, I just started using Sage, and I have a question about variable names. I skimmed through the documentation but could not find any answers. Is it possible to used latex tags in variable names so when I do show(var) I get the latex output? For example, I want to do: p_1star = var('p_1^*') Try: sage: p_1star = var('p_1star', latex_name='p_1^*') -- 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