[racket] Integrating scribble and LaTeX
Quoth Matthew Flatt:
> At Tue, 21 Jun 2011 15:39:06 -0500, Don Blaheta wrote:
> > If I put a single
> > example in a file and then run
> >
> > scribble --latex myfile.scrbl
> >
> > I get a LaTeX file that is an entire \document, not one that I can
> > \include elsewhere.
>
> I've added a `--latex-section' mode to `scribble', [...]
Thanks! I'll pull down the new version and play with it.
Regarding the ensuing discussion: I'm not going to particularly defend
LaTeX or its design choices, and I've done some medium-level LaTeX
hacking and seen much of the awfulness. I would never suggest trying to
integrate Scribble with LaTeX so that the same document could
incorporate hacking on both sides. My brain melts a little bit just to
contemplate a Scribble function taking as input the "return value" of a
LaTeX "macro", whatever that might mean---they're operating on such
different levels.
But there does seem to be a fairly large category of Scribble use cases
that aren't really involving any of the true power of the language, just
some of its nifty and/or convenient surface features. I get that the
--latex-section option will be somewhat fragile, but I think that's
fine; it gives me a learning curve and, eventually, an upgrade path. :)
--
-=-Don Blaheta-=-dblaheta at monm.edu-=-=-<http://www.monmsci.net/~dblaheta/>-=-
"I stayed up all night playing poker with tarot cards. I got a full
house and four people died." --Steven Wright