I was reading Scribble's include-section code from https://github.com/racket/scribble/blob/master/scribble-lib/scribble/base.rkt and I can't figure out how this makes a section:
(define-syntax (include-section stx) (syntax-case stx () [(_ mod) (with-syntax ([doc-from-mod (datum->syntax #'mod 'doc)]) (unless (module-path? (syntax->datum #'mod)) (raise-syntax-error #f "not a module path" stx #'mod)) #'(begin (require (only-in mod [doc-from-mod doc])) doc))])) Could it be that *any* file read starting with #lang scribble/base is implicitly wrapped with a @section wrapper of some sort? Including, presumably, the top-level one presented on the comand line? (This macro is giving my macro-understanding a real workout.) (If that's not where I should find a current version of scribble, someone please let me know) -- hendrik -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/20191129165800.k5orams7z2act7ly%40topoi.pooq.com.