lilypond-user
[Top][All Lists]
Advanced

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

Re: Lines or Boxes without reference to score or stave


From: Richard Shann
Subject: Re: Lines or Boxes without reference to score or stave
Date: Fri, 07 Apr 2017 09:55:32 +0100

On Thu, 2017-04-06 at 16:11 -0500, Guy Stalnaker wrote:
> I thank you because you answered by question.

It seems this didn't get posted to the mailing list, which would be a
shame as this reply seems to be the one that solved your problem.

>  This might be 
> worth an LSR, because it can be used to "draw" a box around anything
> as 
> long as one knows page dimensions by pixels.

It could be that there is nothing like this in the LSR - I *think* the
gsave ... grestore thing was something I devised when customizing
Nicholas Sceaux's title page work, so it could be a trick that is not
widely known...

Richard


> On 4/6/2017 2:05 PM, Richard Shann wrote:
> > On Thu, 2017-04-06 at 13:26 -0500, Guy Stalnaker wrote:
> >> Thanks, Richard, alas, no ... that does nothing that I can discern
> >> except errors in lilypond 2.19.x
> >>
> >>
> >> I'm assuming, therefore, that I don't know what to do with your
> code.
> >> Use \bookTitleMarkup somewhere?
> >>
> > No, I was just thinking you might be able to pick out the bit you
> need.
> > It looks like the relevant bit is
> >
> >   \markup
> >       { \postscript #"
> >                      gsave
> >                      initmatrix
> >                      1 setlinewidth 40 40 moveto 517 0 rlineto 0 760
> > rlineto -517 0 rlineto 0 -760 rlineto  stroke
> >                      0.5 setlinewidth 45 45 moveto 507 0 rlineto 0
> 750
> > rlineto -507 0 rlineto 0 -750 rlineto  stroke
> >                      grestore" }
> >
> > That is, you can make a markup that draws (in this case two) boxes
> > around the page independently of the music on the page, using
> > postscript. That compiles on 2.19.43 I see.
> >
> > HTH
> >
> > Richard




reply via email to

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