<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><div>How to write raw (untransformed) text on the output of scribble (#lang scribble/base) ?</div>
<div>I *really* miss the LaTeX equations, so I&#39;d like the $, \, ^, etc. to not be translated at the generation of the tex file.</div>
<div>I suppose this bypass is exactly what should be avoided, but I&#39;m greedy and I want the best of Scribble and LaTeX.</div><div><br></div><div>The `literal&#39; and `verbatim&#39; functions don&#39;t solve the problem.</div>
</blockquote><div><br></div><div>Found! </div><div><br></div><div>In scribble/latex-render.ss, line 257, I added the following line (DrScheme 4.2.4):</div><div>[(raw) (core-render e &#39;exact)]</div><div><br></div><div>Now in my scribble file (with #lang scribble/base), I defined:</div>
<div><div><div>@(define (math . text)</div><div>   (make-element </div><div>    &#39;raw</div><div>    @list{$@|text|$}))</div><div><br></div><div>And now I can use:</div><div>@math{\lambda^2=\sum_i{5+i}}</div></div><div>
<br></div></div><div>(warning: math is already defined in scribble/manual, so in case of requiring the latter, except-in must be used)</div><div>Now thanks to Scribble writing LaTeX reports will be a piece of cake. Hopefully.</div>
<div><br></div><div>If anyone knows a way that does not involve modifying &quot;core&quot; files, please let me know.</div><div><br></div><div>Laurent</div><div></div></div><div><br></div>