lilypond-user
[Top][All Lists]
Advanced

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

Re: using \markup for #'("text" . "")


From: Mats Bengtsson
Subject: Re: using \markup for #'("text" . "")
Date: Mon, 08 Aug 2005 11:23:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

See for example
http://lists.gnu.org/archive/html/lilypond-user/2005-08/msg00020.html

To understand why this works and not what you tried, you need some
knowledge about the Scheme language. The short story is that you
need the (markup ..) command to be evaluated, not just passed as a
list.

   /Mats

Graham Percival wrote:
To set the text for TextSpanner, one does
  \override TextSpanner #'edge-text = #'("foo" . " ")

How can you use \markup{ foo } instead of "foo" ?  Judging from
11.2.1 Markup construction in scheme, I thought that this would work

  \override TextSpanner #'edge-text = #'( (markup "foo") . "")

but it doesn't.  :(


Christopher -- once we find out how to do this, try adding a
\hspace #1
to the end of your finger string ("1 ").  It may not be ideal, but it
should work.

Cheers,
- Graham

On 6-Aug-05, at 6:54 PM, Christopher Ellis wrote:

  \override TextSpanner #'font-encoding = #'fetaNumber
  \override TextSpanner #'font-size = #-5
  \override TextSpanner #'edge-text = #'("1 " . " ")
  \override TextSpanner #'dash-fraction = #'()
  %\override TextSpanner #'shorten-pair = #'(0 . 0)
  b\startTextSpan c c b\stopTextSpan |


I think this is the best way; hence me question.

% this works as in should in the way that I want,
% however the fingering is not nicely centered like
% a regular fingering instruction. also the line is
too
% close too the fingering.  i am sure that I can get
% close to what I want with the
% commented out "shorten-pair"
% line but it would be nice if I could
% do this spanner with
% the left edge-text centered like a
% fingering and not have
% the line so close to the fingering.





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

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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