[racket-users] build-path/convention-type failure

2017-10-23 Thread David Storrs
The signature for build-path/convention-type is: (build-path/convention-type type base sub ...) → path-for-some-system? type : (or/c 'unix 'windows) base : (or/c path-string? path-for-some-system? 'up 'same) sub : (or/c (and/c (or/c path-string? path-for-some-system?)

Re: [racket-users] Open source projects

2017-10-23 Thread Guthrie Price
Thank you all so much for your comments (the resulting discussion was also entertaining and unexpected). If I were to implement path auto-completion, would it be useful if it wasn’t integrated into DrRacket? I am not precisely sure what I would be adding this functionality to if not DrRacket. On

Re: [racket-users] Science graphics with Racket?

2017-10-23 Thread Lawrence Bottorff
This is amazing! Thank you very much! On Mon, Oct 23, 2017 at 4:49 PM, Jens Axel Søgaard wrote: > I forgot to show how to make a graph. > > #lang racket > (require racket/draw metapict metapict/graph) > > (set-curve-pict-size 300 300) ; width and height of image >

Re: [racket-users] Science graphics with Racket?

2017-10-23 Thread Jens Axel Søgaard
Here is how to do it using MetaPict: #lang racket (require racket/draw metapict) (set-curve-pict-size 300 300) ; width and height of image (ahlength 1.0); size of arrow head (define p (with-window (window -12 12 -12 12) ; xmin, xmax, ymin, ymax (draw

Re: [racket-users] Science graphics with Racket?

2017-10-23 Thread Jens Axel Søgaard
I forgot to show how to make a graph. #lang racket (require racket/draw metapict metapict/graph) (set-curve-pict-size 300 300) ; width and height of image (ahlength 1.0); size of arrow head (define (f x) (sin x)) (define p (with-window (window -12 12 -12 12) ;

Re: [racket-users] Science graphics with Racket?

2017-10-23 Thread Jon Zeppieri
On Mon, Oct 23, 2017 at 3:04 PM, Lawrence Bottorff wrote: > I'd like to use Racket to generate scalable (svg?) graphics like gnuplot or > GeoGebra does. For example, I'd like to create a cartesian coordinate graph > system, then draw functions on it. One thing in particular

Re: [racket-users] build-path/convention-type failure

2017-10-23 Thread Matthew Flatt
At Mon, 23 Oct 2017 18:56:27 -0400, David Storrs wrote: > The signature for build-path/convention-type is: > [...] > What gives? The blue-box contract on `build-path/convention-type` in the documentation does not encode all of the constraints of the function (in much the same way that the

Re: [racket-users] proposed doc fix?

2017-10-23 Thread Robby Findler
The code is in drracket/private/tools.rkt; I think that that value (the thing inside the outer listof) ends up in the `spec` field of an `installed-tool` field and my read of the code suggests that it should be (or/c string? (listof string?)), but I'm not completely confident in that. Robby On

[racket-users] `raco pkg install` from private GitHub repo?

2017-10-23 Thread Matthew Butterick
Seems like this has been asked before. But the exact search query is eluding me. One can do `raco pkg install http://url/to/public/git/repo`. Is it possible to use a private repo as the target of `raco pkg install`? (IIRC, no.) What is the least painful workaround? Make a local clone of the

[racket-users] Science graphics with Racket?

2017-10-23 Thread Lawrence Bottorff
I'd like to use Racket to generate scalable (svg?) graphics like gnuplot or GeoGebra does. For example, I'd like to create a cartesian coordinate graph system, then draw functions on it. One thing in particular would be to draw a graph of a circle based on the standard form of a circle, e.g., x^2

Re: [racket-users] Can anyone help me with a change?

2017-10-23 Thread Josh Paley
John, If your name is ever submitted for sainthood, I'll sign the documents. Many thanks from a grateful teacher! (Now I need to learn how to do this stuff myself...) Regards, Josh On Sun, Oct 22, 2017 at 8:58 PM, John Clements wrote: > Okay, this might now be

[racket-users] Changing code fonts and turning off Unicode replacement in Scribble LaTeX output?

2017-10-23 Thread David Christiansen
Hi all, I'm working on a set of lecture notes in Scribble, and the code blocks contain identifiers that are Greek letters (namely, capital gamma and lowercase rho). I'd like to render a pretty PDF as well as HTML output. In the resulting LaTeX, however, the code includes things like