Need a scribble identity wrapper. A no-op.

29 views
Skip to first unread message

Hendrik Boom

unread,
Nov 3, 2019, 5:07:20 PM11/3/19
to us...@racket-lang.org
I've tried defining a function that reads a file, and then tries to
pass it back to be part of a scribble document.

Unfortunately, the list returned needs to be processed somehow before I
can return it.

Just returning the raw text results in complaints. Apparently a list
of items needs to bave some kind of prefix or wrapper is if it to be
accepted.

I can get it to work by applying italic to it:

(define (include-here s)
(let* ((in (open-input-file s))
(text (read-inside in))
)
(apply italic text)
)
)

This works just fine, except that I do not want italics.
I really want not to specify a style at all.
Is there some kind of wrapper that lets me do that?

I guess I need something like an identity wrapper.

-- hendrik

William J. Bowman

unread,
Nov 3, 2019, 5:46:52 PM11/3/19
to Hendrik Boom, us...@racket-lang.org
I think ‘elem’ will do what you want.

--
Sent from my phoneamajig
> --
> You received this message because you are subscribed to the Google Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/20191103220714.grt7v4tojaudvgmu%40topoi.pooq.com.

Hendrik Boom

unread,
Nov 3, 2019, 7:34:16 PM11/3/19
to William J. Bowman, us...@racket-lang.org
On Sun, Nov 03, 2019 at 02:46:42PM -0800, William J. Bowman wrote:
> I think ‘elem’ will do what you want.

Indeed. Thank you. That works.

But I haven't been able to find where 'elem' is documented.

-- hendrik

Alexis King

unread,
Nov 3, 2019, 7:51:05 PM11/3/19
to Hendrik Boom, William J. Bowman, us...@racket-lang.org
Reply all
Reply to author
Forward
0 new messages