[racket] Making a section optional in Scribble

From: Daniel Prager (daniel.a.prager at gmail.com)
Date: Tue Dec 16 18:53:58 EST 2014

Is there an easy way to include / exclude a section based on a flag?

E.g. In the following example, I want to include section two for some folk,
but not for others.

#lang scribble/base

@section{Section one}

Section one is for everyone.

@(when some-condition

   @section{Section two}

   "Section two is for some, but not all.")

I've tried splitting section two into a second file and conditionally
including it, but that caused level confusion.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141217/60171b8c/attachment.html>

Posted on the users mailing list.