Hmm. One of these days, when I've time (!!!!) I suppose I really should
learn how to do that. "That" being know that simply removing
"\when-property #'header:title" from what you provided was all that was
required to output boxes.
I did try, though -- thinking the original was supposed to be a
variable, I put \bookTitleMarkup in the header block and also assigned
title = to it. Of course that did not work.
But, as you say, it does work by removing \when-property #'header:title"
and for that I thank you because you answered by question. 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.
Much thanks!
Guy
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
Guy
Guy Stalnaker
jimmyg...@gmail.com
On Thu, Apr 6, 2017 at 10:47 AM, Richard Shann
<rich...@rshann.plus.com> wrote:
On Thu, 2017-04-06 at 10:33 -0500, Guy Stalnaker wrote:
> All,
>
>
> I've done a search for this in the documentation and list
archives,
> but because the only terms I can think to search with (line,
box,
> draw) are so common, I cannot get useful results.
>
>
> What I want to do is put a box, visually, around the
engraved score,
> but independent of the engraved score. There will be two
boxes, one
> (dashed or dotted) representing the margins of the document,
and
> another .25" larger that represents a paper-size (this has
to do with
> providing engraved music output that will be placed on
non-standard
> sized paper by another person). The boxes show them where
their
> margins/paper is on the engraving to allow them a sense for
how much
> space the score will consume in their final document.
>
> This is basically four straight lines, two horizontal and
two vertical
> but with reference to absolute page positioning, e.g.,
Line1: start
> 1.5" down from top margin and 1" in from left margin and
draw
> horizontal for 7.5", Line2: start 1.5" down from top margin
and 1" in
> from left margin and draw down 8.0", etc.. Everything that
I've seen
> thus far are markup of some kind that are entered in
reference to the
> score or, with the Notation Reference entries for
\draw-hline for
> example, only seem to draw a line wherever the markup is
place and not
> at an absolute position.
>
>
> I can, of course, output to png, open png in image editor
and add the
> boxes manually, but it would be easier :-) to do this in
lilypond.
> Maybe.
Not sure if it will help, but when creating the book title
page for
Denemo I cooked up this:
bookTitleMarkup = \markup \when-property #'header:title {
{ \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" }
I don't remember much about it now, but the gsave and grestore
were
things that made the thing work independently of the rest
IIRC, so it
may be what you need ...
Richard
--
“Happiness is the meaning and the purpose of life, the whole aim and end
of human existence.”
― Aristotle
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user