|
From: | Urs Liska |
Subject: | Getting an override into a markup function |
Date: | Fri, 25 Sep 2015 10:58:57 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
When rotating markups they are by default rotated by their center, seemingly resulting in a horizontal shift (by half their width): { c'2 ^\markup \rotate #90 "This is a long markup" c } This can be handled by overriding the self-alignment-X property: { \override TextScript.self-alignment-X = #LEFT c'2 ^\markup \rotate #90 "This is a long markup" c } Now I want to pack this rotated text in a markup function and wrote this: #(define-markup-command (verticalText layout props text)(markup?) (interpret-markup layout props #{ \markup \rotate #90 #text #})) { c'2 ^\markup \verticalText "This is a long markup" } which brings me to the original result of the shifted markup. I don't seem to find a way how to incorporate the override into a markup command. Any help would be much appreciated. Thanks Urs
[Prev in Thread] | Current Thread | [Next in Thread] |