# [plt-scheme] String escape sequences hurt!

On 14/03/06, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>* At Tue, 14 Mar 2006 14:03:24 +0000, "Paulo J. Matos" wrote:
*>* > So I've
*>* > been typing something like:
*>* > (latex-formula "\\sum_{i = 1}^10 \\varphi i^\\theta")
*>* > all the time, which is error prone and very ugly...
*>*
*>* Here strings or a reader extension is probably the right approach. But
*>* also consider the simple hack of abusing symbols, just because
*>* backslash doesn't escape inside symbol-quoting vertical bars:
*>*
*>* (latex-formula '|\sum_{i = 1}^10 \varphi i^\theta|)
*>*
*
Thanks a lot for all the solutions provided. The here strings seem a
nice approach. :)
Cheers,
Paulo Matos
>* Of course, that doesn't help if you frequently typeset vertical bars.
*>*
*>* Matthew
*>*
*>*
*
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group