[racket-users] Scribble: is there a way to inject content from another file without creating a section?

2019-03-02 Thread Eric Haney
Scribble's include-section is great for splitting the document source into multiple files. I'm looking for a way to inject content from another file without making a numbered section. The motivation for this is to create problem sets for my math classes in a way that I could keep each question

Re: [racket-users] Scribble: is there a way to inject content from another file without creating a section?

2019-03-02 Thread Matthew Flatt
A `#lang scribble/base` module just defines and provides `doc` as an instance of `part`, and `include-section` imports and returns that `doc`. That is, @include-section["x.scrbl"] is equivalent to @(require (rename-in "x.scrbl" [doc x:doc])) @x:doc You could instead extract the part's flow i

Re: [racket-users] Scribble: is there a way to inject content from another file without creating a section?

2019-03-07 Thread Eric Haney
This works exactly like I had hoped, thanks! Now I'm going to see whether I can figure out how to make a macro that works like include-section which will automate the importing and renaming. On Saturday, March 2, 2019 at 1:31:36 PM UTC-7, Matthew Flatt wrote: > > A `#lang scribble/base` module j