<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br>On Dec 6, 2013, at 9:15 AM, Michael Jensen wrote:<br><br><blockquote type="cite">hello..<br><br>I've tried implementing the code found here: (pg 45)<br><br><a href="http://con.racket-lang.org/2011/pr-slides.pdf">http://con.racket-lang.org/2011/pr-slides.pdf</a><br><br>and it gives me this:<br><br>open-input-file: cannot open input file<br> path: /home/mikethe1wheelnut/Desktop/racket/math-utilities.rkt<br> system error: No such file or directory; errno=2<br></blockquote><div><br></div>Yes, that code definitely has a dependency on an outside file called "math-utilities.rkt".<div><br><blockquote type="cite"><br>I've also looked at this:<br><br><a href="https://github.com/soegaard/bracket/blob/master/docs/pr-math.rkt">https://github.com/soegaard/bracket/blob/master/docs/pr-math.rkt</a><br><br>but can't figure out how to use it. seems to me the code above is an example.<br></blockquote><div><br></div><div>I would say instead that this code defines some functions that you have to then use. I dug around a little, and wrote a tiny example file. Here it is:</div><div><br></div><div>#lang scribble/manual<br><br>@(require "pr-math.rkt")<br><br>@setup-math<br><br>@title{A Scribble File that uses TeX}<br><br>@author{John Clements}<br><br>@section{Awesome Math Equations!}<br><br>Here's a simple equation, from Jens Soegaard's documentation: <br>@math-in{a*M^{z+2} + b_4*N}.<br><br><br></div><div>When I put this in the same directory as "pr-math.rkt", and click the "Scribble HTML" button, I get docs that look like this:</div><div><br></div><div><img height="230" width="783" apple-width="yes" apple-height="yes" id="0e50de51-75f2-4034-9716-43147e9568f5" src="cid:8B8DAC10-6CFA-4E58-ADF9-84C6D7BF5883@wireless.calpoly.edu"></div><div><br></div><div>Please note that my docs look super-awesome because the new (not-yet-released) version of DrRacket uses Matthew Butterick's CSS.</div></div><div><br></div><div>John</div><div><br></div></body></html>