[plt-scheme] String escape sequences hurt!

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Mar 14 09:56:13 EST 2006

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|)

Of course, that doesn't help if you frequently typeset vertical bars.


Posted on the users mailing list.