Thanks, Matthew. Maybe some examples in the docs of the preferred way
to use `racketinput` with single- and multi-line results would be good.
For a long time, I've been doing both of the following, and I could
always see that they were wrong:
(racketinput (+ 1 2)
At Mon, 7 Mar 2016 18:55:15 -0700, Matthew Flatt wrote:
> (I think the documentation should say that `racketinput` uses the
> 'code-inset style, and I'll fix that.)
On closer inspection, the missing documentation seems to be that
`racketresult` doesn't use the 'code-inset style, while
If you want input and output to be together as an interaction, I
recommend using `examples` (from `scribble/example`) with `eval:alts`
to provide a result manually.
If "the same vertical line" just means "the same style of vertical
line", you could use
@nested[#:style 'code-inset
In Scribble, how does one use `racketresultblock` in combination with
`racketinput`, such that the result expression is formatted with the
same vertical line that the input expression has?
(I know how to do this with `racketresult`, but not for multi-line results.)
Neil V.
--
You received
4 matches
Mail list logo