…the snippet: #(define counter-alist '()) #(define-markup-command (counter layout props name) (string?) "Increases and prints out the … …props (markup (number->string newval))))) #(define-markup-command (setcounter layout props name value) (string? number?) "Set the given … …counter-alist (assoc-set! counter-alist name (- value 1))) (interpret-markup layout props (make-counter-markup name))) \markup { Initial value of the …