I don’t know if there’s a better more general solution, but does this do what 
you want?
@(define exercise-style (make-style "exercise" (list (attributes '([style . 
"margin-left: 0em"])))))
@(define question-style (make-style "question" (list (attributes '([style . 
"margin-left: 0em"])))))
@(define answer-style (make-style "answer" (list (attributes '([style . 
"margin-left: 0em"])))))

On May 21, 2015, at 2:12 PM, Shriram Krishnamurthi <shri...@gmail.com> wrote:

> Thanks for these replies. Sorry I'm only now getting to them: Google failed 
> to notify me of them.
> 
> The problem with using (nested ...) is that it indents its content even when 
> I don't use the 'inset style. Therefore, if I have (as I do)
> 
> @exercise{@question{...}}
> 
> everything in the exercise ends up nested one level, and the question ends up 
> nested two levels. That's why I rejected the use of `nested` and was looking 
> for alternate solutions.
> 
> How can I get `nested` to not indent? I have exactly what you suggested:
> 
> (define (exercise . t) (nested #:style question-style t))
> (define (question . t)  (nested #:style question-style t))
> 
> where
> 
> (define exercise-style (make-style "exercise" null))
> (define question-style (make-style "question" null))
> 
> and this still leads to the indentation.
> 
> -- 
> 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 to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to