[racket] Integrating scribble and LaTeX

From: Eric Tanter (etanter at dcc.uchile.cl)
Date: Wed Jun 29 13:46:57 EDT 2011

Hi all,

I'm trying again with this question from last week. 

Thanks,

-- Éric


On Jun 23, 2011, at 6:53 PM, Eric Tanter wrote:

> [...] is there a way to get scribble to generate a "minimal pdf", instead of a whole page?
> 
> For instance, from the following code:
> 
> #lang scribble/manual
> @(require scribble/eval)
> @def+int[
> (define add 
> (λ (n)
>   (λ (m)
>     (+ m n))))
> (define add2 (add 2))
> (add2 5)
> ]
> 
> can I get a correct-size pdf to include (as a figure) in a latex document?
> 
> I guess I'm asking for the --pdf equivalent of --latex-section. 
> 
> That would then address my need directly (including nice looking scheme code in papers), without going into the (indeed) hairy issues with latex.
> 
> -- Éric




Posted on the users mailing list.