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)
(make-multiarg-element (make-style "SfooOpt" '(multicommand))
(list (decode-string o)
(make-element (make-style "foo" '(command))
And then I have to insert a definition in the latex:
Is there a better way to accomplish this?
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.