[racket] missing \ in tex output

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Thu Feb 21 15:28:19 EST 2013

Scribble is producing a figure that contains _ in the name without preceding \ characters. I will debug the scribble source unless someone has a better idea.

  \Centertext{\Legend{\FigureTarget{\label{t:x28counter_x28x22figurex22_x22enforestx2dmodelx22x29x29}Figure~1: }{t:x28counter_x28x22figurex22_x22enforestx2dmodelx22x29x29}Enforestation}}\end{FigureMulti}

Generated from

  @figure*["enforest-model" "Enforestation"]{ ... }

When I generate a .tex file and change the generated text to

  \Centertext{\Legend{\FigureTarget{\label{t:x28counter_x28x22figurex22_x22enforestx2dmodelx22x29x29}Figure~1: }{t:x28counter\_x28x22figurex22\_x22enforestx2dmodelx22x29x29}Enforestation}}\end{FigureMulti}

then pdflatex is able to generate a pdf file. FWIW this is the error I get without \

$ pdflatex main.tex
! Missing $ inserted.
<inserted text>
l.2077 ...nforestx2dmodelx22x29x29}Enforestation}}

Posted on the users mailing list.