lilypond-user
[Top][All Lists]
Advanced

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

Re: Can I make a TextScript occupy no space, potentially colliding?


From: Richard Shann
Subject: Re: Can I make a TextScript occupy no space, potentially colliding?
Date: Sun, 12 Oct 2014 19:29:21 +0100

On Sun, 2014-10-12 at 17:49 +0100, Richard Shann wrote:
> Perfect!

hmm, I spoke a little too soon. It seems that \with-dimensions kills
point-and-click. Understandable with 0 as the dimension, but actually
this doesn't seem to be the issue:

\version "2.18.0"

\score { 
 {
  a1 
  ^\markup \with-dimensions #'(10 . -10) #'(10 . -10) 
  %\with-url #'"some link" 
  {\fontsize #12 A }
 }
} 

with good-sized dimension here there is no point and click. If I
uncomment the \with-url in this code then the A *is* clickable - and the
clickable area is the area of the letter not the 200x200 square.

So, if there is no easy way to get point-and-click back, can I
re-construct the link that point and click would have given using
\with-url? 

(Point-and-click is essential my application...)

Richard





>  I've found that in the documentation as well...
> Thank you very much,
> Richard
> On Sun, 2014-10-12 at 18:40 +0200, Simon Albrecht wrote:
> > Am 12.10.2014 um 18:21 schrieb Richard Shann:
> > > In this code I put a large letter A above the music.
> > > If I uncomment the tweak the letter A is moved elsewhere, but it still
> > > takes up space at the top of the score.
> > > If I uncomment the override, I don't get the space back.
> > >
> > > \version "2.18.0"
> > > \score {
> > >   {
> > >    %\override  TextScript.Y-extent = #'(0 . 0)
> > >    a1
> > >    %-\tweak #'extra-offset #'(7 . -12)
> > >    ^\markup {\fontsize #12 A }
> > >    }
> > > }
> > >
> > > Is there a way to stop LilyPond trying to prevent my TextScript
> > > colliding - to say that it occupies, say, no space?
> > >
> > > Richard
> > Hello Richard,
> > 
> > try:
> > 
> > %%%%%%%%%%%%
> > \version "2.18.0"
> > 
> > \score {
> > 
> > {
> > 
> > a1
> > 
> > %-\tweak #'extra-offset #'(7 . -12)
> > 
> > ^\markup { \with-dimensions #'(0 . 0) #'(0 . 0) \fontsize #12 A }
> > 
> > }
> > 
> > }
> > 
> > %%%%%%%%%%%%
> > 
> > HTH, Simon
> 
> 
> 
> _______________________________________________
> 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]