Re: [racket-users] Scribble: Typeset equations using Latex packages amsmath and amssym

2015-09-24 Thread Marc Kaufmann
Thanks Alex, To avoid dealing with escapes like that, you could use the raw-string > package, which lets you do this: > raco pkg install raw-string > > #lang raw-string/raw-string racket/base #\$ > > When I add the package via raco and change the #lang line as you suggest, I get the following

Re: [racket-users] Scribble: Typeset equations using Latex packages amsmath and amssym

2015-09-24 Thread Alex Knauth
> On Sep 24, 2015, at 7:51 AM, Marc Kaufmann 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

Re: [racket-users] Scribble: Typeset equations using Latex packages amsmath and amssym

2015-09-24 Thread Norman Gray
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

[racket-users] Scribble: Typeset equations using Latex packages amsmath and amssym

2015-09-23 Thread Marc Kaufmann
Hi all, I had a hard time to get any equations into my scribble document, as writing \begin{equation*} f(x) = x^2 \end{equation*} would be turned into "$\backslash$begin...", which meant that it wouldn't actually show up as an equation but as garbage text with "begin{equation*}" and so on

Re: [racket-users] Scribble: Typeset equations using Latex packages amsmath and amssym

2015-09-23 Thread Alexander D. Knauth
> On Sep 23, 2015, at 8:53 AM, Marc Kaufmann wrote: > #lang racket/base > > (require scribble/base > scribble/core) > > (provide equation*) > > (define (mymath start end . strs) > (make-element (make-style "relax" '(exact-chars)) `(,start ,@strs ,end))) >