Re: [racket-users] Using GraphViz inside of Scribble?

2021-01-28 Thread 'William J. Bowman' via Racket Users
I realized I forgot to include this stub: > (define (run-dot str format) > (define cmd (string-append "dot -y -T" format)) > (match (process cmd) > [(list stdout stdin pid stderr ctl) > (write-string str stdin) > (newline stdin) > (close-output-port stdin) > (cond

Re: [racket-users] Using GraphViz inside of Scribble?

2021-01-28 Thread Tim Meehan
Thanks for the ideas  On Wed, Jan 27, 2021 at 11:42 PM William J. Bowman wrote: > I've been using graphviz inside Scribble for a bit. > I found the package a bit inflexible and didn't produce output to my > liking, so > I just rolled my own 'dot->svg' for HTML output: > > > (require (only-in

Re: [racket-users] Using GraphViz inside of Scribble?

2021-01-27 Thread 'William J. Bowman' via Racket Users
I've been using graphviz inside Scribble for a bit. I found the package a bit inflexible and didn't produce output to my liking, so I just rolled my own 'dot->svg' for HTML output: > (require (only-in xml cdata) > scribble/html-properties) > (define (dot->svg . rest) > (elem #:style >

Re: [racket-users] Using GraphViz inside of Scribble?

2021-01-27 Thread Sorawee Porncharoenwase
Here’s how to add graphviz to Pollen . The same technique can be used for Scribble, but you would want to use image as the tag

[racket-users] Using GraphViz inside of Scribble?

2021-01-27 Thread Tim Meehan
IMHO, Racket's documentation is the gold standard. I tell everyone I work with that we should document things this well. Until now, I haven't seen any room for potential improvements. Now, I like ASCII art as much as the next person, but when I was reading the documentation for the GUI class