[plt-scheme] String escape sequences hurt!

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Mar 14 09:17:27 EST 2006

You might try to add a reader extension that defines some new kind of
string literal syntax (perhaps using a different delimiter) that has
different rules for escaping characters.

Robby

At Tue, 14 Mar 2006 14:03:24 +0000, "Paulo J. Matos" wrote:
> Hi all,
> 
> I'm having a problem with developing of slides.
> I've developed a module which I sent to the list sometime ago which
> generates latex formulas so they get inserted automatically in a
> slide. The big problem is that one has to typeset the latex code as a
> string for example:
> (latex-formula "x^2") will insert the latex formula with x squared in
> the same way (bitmap ...) would insert a bitmap image. The problem is
> evident if I try to typeset an equation or other command:
> (latex-formula "\sum_{i = 1}^10 \varphi i^\theta")
> will not work since \ is interpreted as an escape sequence. 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... but I have not had
> the time to search how to disconnect the escape chars. I don't this is
> possible to do in a straightforward way, still I think it would be
> nice to latex-formula to catch the raw string and then insert
> automatically the escape characters for the delight of plt-scheme. I
> would like suggestions, oppinions, help! :)
> 
> Thanks a lot,
> 
> --
> Paulo Jorge Matos - pocm at sat inesc-id pt
> Web: http://sat.inesc-id.pt/~pocm
> Computer and Software Engineering
> INESC-ID - SAT Group
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.