Greetings, all.

On 24 Sep 2015, at 13:12, Alex Knauth wrote:

Ah, I actually had tried that and was about to send you the error code for bad syntax. But then I realised that it complained about me defining $ as the equivalent of math-inline, which of course clashes with #\$.


Oh.
Well, if you can change the #\$ to a different character, say #\^, then you can use ^[\begin{equation*}] instead, to avoid clashes.

At the risk of a slight tangent...

Recall that (La)TeX allows fairly extensive reallocation of functionality to characters: the escape character doesn't have to be backslash, the math-open character doesn't have to be dollar.

In my experience, when generating (La)TeX, it's useful to do some category-code magic -- even using non-ASCII characters for some of the categories -- and generate LaTeX accordingly. The resulting LaTeX looks weird, but completely avoids a whole class of escaping headaches.

Thus:

    This is ^Aemph^Bemphasised^C text, and standard LaTeX.

I can fill in further details if that would be useful.

All the best,

Norman


--
Norman Gray  :  http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to