[sage-support] Re: LatexExpr
2021-11-29 18:05:58 UTC+1, Cyrille Piatecki: > > I often use LatexExpr(r'\text{blabla} x_i =') encapsulated > in show(). It's very easy to use but not if I need single quotes > as in "it's". Is there a way to escape the quotes? LatexExpr(r"\text{there's a way} x_i =") -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/a54bf1d7-d9e8-42bf-867f-be2f577bdab0n%40googlegroups.com.
[sage-support] Re: LatexExpr
Or if you need single and double quotes, delimit the string with """ or ''' (three double-quotes or three single-quotes): r"""here is "some" 'text' """ On Monday, November 29, 2021 at 11:07:21 AM UTC-8 slelievre wrote: > 2021-11-29 18:05:58 UTC+1, Cyrille Piatecki: > > > > I often use LatexExpr(r'\text{blabla} x_i =') encapsulated > > in show(). It's very easy to use but not if I need single quotes > > as in "it's". Is there a way to escape the quotes? > > LatexExpr(r"\text{there's a way} x_i =") > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/ce3ddb95-05d2-46ae-9bfa-e4253527a997n%40googlegroups.com.
Re: [sage-support] Re: LatexExpr
Thanks - Mail d’origine - De: John H Palmieri À: sage-support Envoyé: Mon, 29 Nov 2021 23:47:56 +0100 (CET) Objet: [sage-support] Re: LatexExpr Or if you need single and double quotes, delimit the string with """ or ''' (three double-quotes or three single-quotes): r"""here is "some" 'text' """ On Monday, November 29, 2021 at 11:07:21 AM UTC-8 slelievre wrote: 2021-11-29 18:05:58 UTC+1, Cyrille Piatecki: > > I often use LatexExpr(r'\text{blabla} x_i =') encapsulated > in show(). It's very easy to use but not if I need single quotes > as in "it's". Is there a way to escape the quotes? LatexExpr(r"\text{there's a way} x_i =") -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/ce3ddb95-05d2-46ae-9bfa-e4253527a997n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/488618476.3122984.1638260348678.JavaMail.zimbra%40univ-orleans.fr.
Re: [sage-support] Re: LatexExpr
Thanks John. But LatexExpr(r"\text{there"'"s a way} x_i =") generate a mistake. - Mail d’origine - De: John H Palmieri À: sage-support Envoyé: Mon, 29 Nov 2021 23:47:56 +0100 (CET) Objet: [sage-support] Re: LatexExpr Or if you need single and double quotes, delimit the string with """ or ''' (three double-quotes or three single-quotes): r"""here is "some" 'text' """ On Monday, November 29, 2021 at 11:07:21 AM UTC-8 slelievre wrote: 2021-11-29 18:05:58 UTC+1, Cyrille Piatecki: > > I often use LatexExpr(r'\text{blabla} x_i =') encapsulated > in show(). It's very easy to use but not if I need single quotes > as in "it's". Is there a way to escape the quotes? LatexExpr(r"\text{there's a way} x_i =") -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/ce3ddb95-05d2-46ae-9bfa-e4253527a997n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/1950007382.6200643.1638294382727.JavaMail.zimbra%40univ-orleans.fr.
Re: [sage-support] Re: LatexExpr
2021-11-30 17:46 UTC, Cyrille Piatecki: > > Thanks John. But LatexExpr(r"\text{there"'"s a way} x_i =") > generates a mistake. John's suggestion was that a string that contains both single-quote and double-quote characters can be enclosed by tripled delimiters, using either '''...''' or """...""". More examples: LatexExpr(r"\text{there's a way } x_i =") LatexExpr(r'''\text{there's a way } y' + y" = 0''') LatexExpr(r"""\text{there's a way } y' + y" = 0""") See more on strings, also known as "text sequences", in the Python documentation for built-in types: https://docs.python.org/3/library/stdtypes.html#textseq -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAEcArF2ZmBE66XSAudqt0MOeU82yvt7ctgtoksoFyFX2JuGSZw%40mail.gmail.com.
Re: [sage-support] Re: LatexExpr
Thanks obviously I have not understud the suggestion of John. - Mail d’origine - De: Samuel Lelièvre À: Sage-support Envoyé: Tue, 30 Nov 2021 18:59:04 +0100 (CET) Objet: Re: [sage-support] Re: LatexExpr 2021-11-30 17:46 UTC, Cyrille Piatecki: > > Thanks John. But LatexExpr(r"\text{there"'"s a way} x_i =") > generates a mistake. John's suggestion was that a string that contains both single-quote and double-quote characters can be enclosed by tripled delimiters, using either '''...''' or """...""". More examples: LatexExpr(r"\text{there's a way } x_i =") LatexExpr(r'''\text{there's a way } y' + y" = 0''') LatexExpr(r"""\text{there's a way } y' + y" = 0""") See more on strings, also known as "text sequences", in the Python documentation for built-in types: https://docs.python.org/3/library/stdtypes.html#textseq -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAEcArF2ZmBE66XSAudqt0MOeU82yvt7ctgtoksoFyFX2JuGSZw%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/1841280528.6250938.1638296225757.JavaMail.zimbra%40univ-orleans.fr.