Re: [racket-users] using a different "scribble.tex"

2016-01-06 Thread Ben Lerner
I’ve used the invocation scribble --prefix my-prefix.tex with a file my-prefix.tex that starts off \documentclass{book} %% You could use whatever class you need here \PassOptionsToPackage{usenames,dvipsnames}{color} ... I’m not sure whether

Re: [racket-users] How to get information about where an error occurs, in a stack trace context?

2015-11-08 Thread Ben Lerner
On 11/8/2015 9:18 PM, Nota Poin wrote: Or if you insist on command line usage, use error trace. What's wrong with command line usage? Anyway, I was going to say this: http://docs.racket-lang.org/errortrace/using-errortrace.html That seems to enable stack traces that work. Relatedly, is there

Re: [racket-users] Naming for generalization of find-min and find-max?

2015-10-11 Thread Ben Lerner
What about "find-min-by"/"find-max-by"?  (Or, if it's more standard Rackety style, "find-min/by" and "find-max/by", where the slash denotes a variant of an otherwise common function...) Ben On 10/11/2015 6:24 PM, Alex Knauth wrote: H

Re: [racket-users] Scribble: line comment swallows paragraph break

2015-09-17 Thread Ben Lerner
quot; [1] http://pkg-build.racket-lang.org/doc/scribble/reader.html On Thu, Sep 17, 2015 at 8:40 AM, Ben Lerner <bler...@ccs.neu.edu> wrote: If a comment can swallow everything up to a single newline, could

Re: [racket-users] Scribble: line comment swallows paragraph break

2015-09-17 Thread Ben Lerner
If a comment can swallow everything up to a single newline, could it swallow everything up to the first non-whitespace character after the current line? (This is what TeX's % does.) So you wouldn't have to change scribble/decode at all, just the @-reader. Effectively, the only added constrain

Re: [racket-users] Scribble abstraction to attach styles

2015-05-21 Thread Ben Lerner
Probably a CSS fix: assuming you have something like this in your CSS preamble div.question { padding-left: 2em; } to cause the indentation, then something like this will disable the nested one: div.exercise > div.question { padding-left:

[racket] DrRacket 6.1.1 stuck in a gc loop on Windows7x64

2015-02-28 Thread Ben Lerner
I ran into an unfortunate situation last night with DrRacket, where I was editing a single scribble file, and DrRacket basically locked up in a gc loop (the recycle icon was flashing, syntax highlighting was glacially slow, and the entire UI was mostly frozen.) There were two threads which see