Sorry, I forgot including the list.

Am 13.07.2015 um 15:16 schrieb Simon Albrecht:
Hello Javier,

the relevant doc section would be <http://lilypond.org/doc/v2.18/Documentation/extending/new-markup-command-definition>. See the attached solution.

HTH, Simon

Am 12.07.2015 um 03:08 schrieb Javier Ruiz-Alma:
I have a markup variable preformatted to specific font size.

I wish to use the same variable elsewhere, but override the font-size to smaller size. Can this be done?

Snippet:
%*************************

\version "2.18.2"

thisText = \markup { \abs-fontsize #20 "My Text" }

\markup {
   \column {
     \fill-line { \thisText }
     \fill-line { \null }
\fill-line { \override #'(font-size . 10) \thisText } % <----this doesn't work
   }
}

%**************************


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user


\version "2.18.2"

#(define-markup-command
  (flex-abs-fontsize layout props text)
  (markup?)
  #:properties ((abs-size 20))
  "As \\abs-fontsize, but allows overriding the value"
  (interpret-markup layout props
    (markup #:abs-fontsize abs-size text)))

thisText = \markup { \flex-abs-fontsize "My Text" }

\markup {
   \column {
     \fill-line { \thisText }
     \fill-line { \null }
     \fill-line { \override #'(abs-size . 10) \thisText }  %  <----this doesn't work
   }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to