<div class="gmail_quote">On Sun, Mar 14, 2010 at 14:59, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sun, Mar 14, 2010 at 6:20 AM, Matthew Flatt <<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>> wrote:<br>
> If you create a style with with 'exact-chars property, then the content<br>
> of an element using the style will be rendered to Latex without escapes.<br>
> (I've added the missing documentation for this property.)<br>
><br>
> Here's an example:<br>
><br>
> #lang scribble/base<br>
> @(require scribble/core)<br>
><br>
> @(define (math . strs)<br>
> (make-element (make-style "hbox" '(exact-chars))<br>
> (append '("$") strs '("$"))))<br>
><br>
> @math{\lambda^2=\sum_i{5+i}}<br>
><br>
> The "hbox" in that example could be any suitable Latex command. For<br>
> 'exact-chars to work, the style's name has to be some command.<br>
<br>
</div>Maybe \ensuremath{} is the right choice here?<br>
<font color="#888888"><br></font></blockquote><div><br>Excellent! Exactly what I needed. Thanks.<br> </div></div><br>