lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Roman Numeral rehearsal marks?


From: N. Andrew Walsh
Subject: Re: Roman Numeral rehearsal marks?
Date: Wed, 24 Oct 2018 18:39:42 +0200

Hi Thomas, Ben

for some reason, neither of your codes seem to work: I always get arabic numerals in a box if I use \mark \default. I think something is overriding that setting elsewhere in my config files; I'll try to track it down. The MWE Ben sent works just as I want it to on its own, but not in the main document. I'll have to do some digging.

Thanks!

A

On Wed, Oct 24, 2018 at 5:10 PM Thomas Morley <address@hidden> wrote:
Am Mi., 24. Okt. 2018 um 17:02 Uhr schrieb Ben <address@hidden>:

> This should be what you need (see attached)

We do have 'number-format', so one could do:

#(define-public (format-roman-mark-numbers mark context)
  (make-bold-markup (number-format 'roman-upper mark)))

#(define-public (format-boxed-roman-mark-numbers mark context)
  (make-bold-markup (make-box-markup (number-format 'roman-upper mark))))

\layout {
  \context {
    \Score
    markFormatter =
      %#format-roman-mark-numbers
      #format-boxed-roman-mark-numbers
    %% 2.21.0
    %markFormatter = #(format-mark-generic '(roman box bold mixedcase))
  }
}
{
    \mark \default
    R1
    \mark \default
    R1
}

Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]