Re: [racket-users] scribble and optional latex arguments

2017-03-05 Thread Robby Findler
Oh sorry. What you have done is what I would do. Robby On Sun, Mar 5, 2017 at 9:58 AM David Van Horn wrote: > That's what I'm doing. > > On Sun, Mar 5, 2017 at 10:48 AM, Robby Findler > wrote: > > Define two different commands at the latex level? > > > > Robby > > > > On Sun, Mar 5, 2017 at 9:

Re: [racket-users] scribble and optional latex arguments

2017-03-05 Thread David Van Horn
That's what I'm doing. On Sun, Mar 5, 2017 at 10:48 AM, Robby Findler wrote: > Define two different commands at the latex level? > > Robby > > On Sun, Mar 5, 2017 at 9:39 AM David Van Horn wrote: >> >> I'm trying to make a wrapper for a latex command that has an optional >> argument. My current

Re: [racket-users] scribble and optional latex arguments

2017-03-05 Thread Robby Findler
Define two different commands at the latex level? Robby On Sun, Mar 5, 2017 at 9:39 AM David Van Horn wrote: > I'm trying to make a wrapper for a latex command that has an optional > argument. My current solution is to do the following to wrap a > command called `\foo`: > > (define (foo #:opt

[racket-users] scribble and optional latex arguments

2017-03-05 Thread David Van Horn
I'm trying to make a wrapper for a latex command that has an optional argument. My current solution is to do the following to wrap a command called `\foo`: (define (foo #:opt [o #f] x) (if o (make-multiarg-element (make-style "SfooOpt" '(multicommand)) (list (