[racket] scribble items
40 minutes ago, Mark Carter wrote:
> #lang scribble/manual
>
> @itemlist{ @item{Foo} @item{Bar} }
>
> but it gives me
> itemlist: contract violation, expected: item?, given: " "
> [...]
>
> What gives?
You're using {}s around the items, which means that the spaces are
passed as arguments too, so `itemlist' barfs. To fix it, use []s:
@itemlist[ @item{Foo} @item{Bar} ]
(This is in contrast to `itemize' that works with {}s too -- it just
ignores all-whitespace arguments. That's because it predated the
"discovery" that it's better to use []s.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!