[plt-scheme] scheme in captions in SLaTeX?

From: Doug Orleans (dougo at place.org)
Date: Sun Jun 5 18:53:48 EDT 2005

Robby Findler writes:
 > At Sun, 5 Jun 2005 18:22:26 -0400, Doug Orleans wrote:
 > > How does one put \scheme{} inside a \caption{} using SLaTeX?  
 > 
 > Sometimes, you have to stick things in boxes to make slatex happy. Try
 > this:
 > 
 > \begin{schemeregion}
 > \newsavebox{\mybox}
 > \sbox{\mybox}{
 > \begin{schemebox}
 > (lambda (x) (x x))
 > \end{schemebox}}
 > 
 > \begin{figure}
 > 
 > A figure.
 > 
 > \caption{\usebox{\mybox}}
 > \end{figure}
 > \end{schemeregion}

Thanks, this works, except I had to put the schemebox all on one line
because leading and trailing space is significant.

One of these days I want to figure out why this is necessary, but
right now I have this paper to write...

--dougo at place.org



Posted on the users mailing list.