Hi Jacques, Hi Klaus,
You can do also :
%%%%%%%%%%%%%%
\version "2.18.2"
UN_E = -\tweak self-alignment-X #CENTER -\markup\large\bold\with-color
#magenta "1E"
{
g2 \mf ^\UN_E
}
%%%%%%%%%%%%%%
Cheers,
Pierre
2015-02-13 15:36 GMT+01:00 Klaus Blum <[email protected]>:
> Salut Jacques,
>
> defining your command as a function should do the trick:
>
> %---------------------------------------------------
>
> \version "2.18.2"
>
> UN_E = #(define-music-function (parser location) ()
> #{
> -\tweak TextScript.self-alignment-X #CENTER
> -\markup\large\bold\with-color #magenta "1E"
> #})
>
> {g2 \mf ^\UN_E}
>
> %----------------------------------------------------
>
> Cheers,
> Klaus
>
>
>
> --
> View this message in context:
> http://lilypond.1069038.n5.nabble.com/Encapsulating-tweak-and-markup-in-a-variable-tp171826p171827.html
> Sent from the User mailing list archive at Nabble.com.
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user