#(define-markup-command (setcounter layout props name value) (string? number?) "Set the given counter named @var{name} to the given @var{value} and prints out the value. The counter does not yet have to exist." (set! counter-alist (assoc-set! counter-alist name (- value 1))) (interpret-markup layout props (make-counter-markup name)))