pocmatos
2019-1-24 13:59:55

@soegaard2 trying in metapict to draw a rectangle with some text centered inside the rectangle. I see dot-label used in the docs but with no actual documentation. Is there a function that just writes something centered on a coordinate?


pocmatos
2019-1-24 14:15:12

Just noticed the use of label-bot, there must be a collection of such functions, right?


pocmatos
2019-1-24 14:41:16

and noticed label-cnt… awesome! @soegaard2 what’s the best way to integrate a metapict into a scribble document? I tried @examples with a #:result-only but complains with-window is undefined.


soegaard2
2019-1-24 14:47:20

@pocmatos The list of label functions is here: https://github.com/soegaard/metapict/blob/master/metapict/label.rkt


soegaard2
2019-1-24 14:47:42

The names were taken from Metapost - but I am not too fond of them.


soegaard2
2019-1-24 14:48:03

Wrt to using metapict from Scribble:


soegaard2
2019-1-24 14:48:30

Scribble ought to insert picts directly in the text.


soegaard2
2019-1-24 14:49:00

So I expect @(draw fullcircle) to be enough to insert a drawing of a circle.


soegaard2
2019-1-24 14:51:59

However, if you want to use @examples then you need to require metapict in the environment that examples uses.


jesse
2019-1-24 15:38:23

@soegaard2 is this some kind of Racket pict/Metapost thing?


soegaard2
2019-1-24 15:38:56

pocmatos
2019-1-24 15:43:46

@soegaard2 works wonders! Thanks!


jesse
2019-1-24 15:44:21

nice! I’ve been looking for such a thing. I’ll definitely take a look (I write my books with Pollen, targeting ConTeXt, which is deep in the Metapost world.)


pocmatos
2019-1-24 15:45:05

@jesse this metapict thing is pretty cool… beautifully done, straight into pdf.


jesse
2019-1-24 15:53:12

another @soegaard2 joint (https://en.wikipedia.org/wiki/Spike_Lee_filmography , first paragraph)


jerome.martin.dev
2019-1-24 15:53:41

The documentation is gorgeous. :+1:


soegaard2
2019-1-24 15:54:36

Thanks!


bill_temps
2019-1-24 16:00:37

Should someone give Scribble and Pollen their own pages on Wikipedia? Or at least separate topics on the Racket page?


soegaard2
2019-1-24 16:18:36

@bill_temps The reasoning behind Wikipedia is somewhat opaque. https://en.wikipedia.org/wiki/Wikipedia:Notability


bill_temps
2019-1-24 16:41:12

@soegaard2 Yes, I know. Asking for opinions or votes. More specifically, I propose adding an entry for Pollen to the Wikipedia disambiguation page. “Scribble” doesn’t yet have a disambiguation page. Thus, four questions: should Pollen and Scribble be mentioned in Wikipedia at all? Should there be disambiguation entries for Pollen and Scribble (in the Racket context); and should these point to separate articles; or should they point to topics on the Racket page? (And are there any volunteers?)


ssoucie
2019-1-25 01:19:11

@ssoucie has joined the channel