[racket-dev] Scribble: feature request - module paths for image

2013-02-15 Thread David Van Horn
I have a scribble document that is built from two distinct locations, which makes using the Scribble image form nearly impossible since it takes a path relative to the build location. (My work around is symbolic links in the file system.) What would solve my problem is the ability to pass a

Re: [racket-dev] Scribble: feature request - module paths for image

2013-02-15 Thread Jay McCarthy
Does define-runtime-path work? Should it? On Fri, Feb 15, 2013 at 8:42 AM, David Van Horn dvanh...@ccs.neu.edu wrote: I have a scribble document that is built from two distinct locations, which makes using the Scribble image form nearly impossible since it takes a path relative to the build

Re: [racket-dev] Scribble: feature request - module paths for image

2013-02-15 Thread David Van Horn
On 2/15/13 10:47 AM, Jay McCarthy wrote: Does define-runtime-path work? Yes, for some value of yes. This works (specific to my context, but easy to generalize): #lang scribble/base @(require racket/runtime-path) @(require (for-syntax racket/base)) @(define-runtime-module-path-index id

Re: [racket-dev] Scribble: feature request - module paths for image

2013-02-15 Thread Matthew Flatt
Does `collection-file-path' work? Here's a small example: #lang scribble/base @image[(collection-file-path heart.png icons)] I think this is closer to your example (but untested): #lang scribble/base @(define (fig name) (collection-file-path name book figures)) @image[#:suffixes

Re: [racket-dev] Scribble: feature request - module paths for image

2013-02-15 Thread David Van Horn
On 2/15/13 3:34 PM, Matthew Flatt wrote: #lang scribble/base @(define (fig name) (collection-file-path name book figures)) @image[#:suffixes '(.png .pdf) (fig quick-lists1)] Excellent! Thank you, this works (I figured I was making things worse than they had to be, but man is it

Re: [racket-dev] Scribble: feature request - module paths for image

2013-02-15 Thread Sam Tobin-Hochstadt
On Fri, Feb 15, 2013 at 3:36 PM, David Van Horn dvanh...@ccs.neu.edu wrote: On 2/15/13 3:34 PM, Matthew Flatt wrote: #lang scribble/base @(define (fig name) (collection-file-path name book figures)) @image[#:suffixes '(.png .pdf) (fig quick-lists1)] Excellent! Thank you, this