Re: [racket-dev] conditional scribble documents

2012-06-14 Thread Danny Yoo
Just to follow up on this: in my conditional scribble language, I've needed a splicing style for itemlists, because certain items may or may not show depending on context. Just in case this happens to be helpful for anyone else, here's the helper I'm using: ;;;

Re: [racket-dev] conditional scribble documents

2012-05-04 Thread Eli Barzilay
20 minutes ago, Danny Yoo wrote: > ... for example, why not set up files that set some parameter and then > run the program.  You said that you want a `++load my-module.rkt' -- > why not change "my-module.rkt" -> "my-module.scrbl", and just render > it? > > I like this.  But I don'

Re: [racket-dev] conditional scribble documents

2012-05-04 Thread Danny Yoo
... for example, why not set up files that set some parameter and then > run the program. You said that you want a `++load my-module.rkt' -- > why not change "my-module.rkt" -> "my-module.scrbl", and just render > it? > I like this. But I don't want the "configuration" scribble file to itself ge

Re: [racket-dev] conditional scribble documents

2012-04-25 Thread Eli Barzilay
20 minutes ago, Danny Yoo wrote: > > I know I can always hack around Scribble limitations. (How is this different from running any other program that needs to work in several differen ways? ...) > Conditional generation is a common use case. In particular, the use > case I'm considering direct

Re: [racket-dev] conditional scribble documents

2012-04-25 Thread Danny Yoo
On Wed, Apr 25, 2012 at 6:38 PM, Matthias Felleisen wrote: > > For HtDP/2e, I use plain old conditionals and variables. > I used to set an environment variable when I ran a shell > script. Then I converted everything to Racket and set > variables according to shell arguments: > >  $ ./xhtml draft

Re: [racket-dev] conditional scribble documents

2012-04-25 Thread Matthias Felleisen
For HtDP/2e, I use plain old conditionals and variables. I used to set an environment variable when I ran a shell script. Then I converted everything to Racket and set variables according to shell arguments: $ ./xhtml draft creates the draft version of HtDP/2e by setting a *draft variable

[racket-dev] conditional scribble documents

2012-04-25 Thread Danny Yoo
I'm working on building a Scribble extension that lets me write conditional bits of Scribble code. Some use cases: 1. writing a document that can be author-anonymized 2. tutorial material, with solutions to be generated in the document targetted for teachers. I do not want to hide or show conten