[racket] missing \ in tex output

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Thu Feb 21 16:42:41 EST 2013

Ignore this, it was due to an errant redefinition of FigureTarget in my style.tex

\renewcommand{\FigureTarget}[1]{}

On 02/21/2013 01:28 PM, Jon Rafkind wrote:
> 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}}
>                                                   \end{FigureMulti}
> ?
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users


Posted on the users mailing list.