Re: Question about baseline-skip.

2018-07-14 Thread Torsten Hämmerle
Hi Hwaen,

I get your point (although a minimal example for demonstration purposes
would have helped).

In a 20 pt score, the default font size will be 11 pt and the default
baseline-skip will be 3 staff spaces (set in paper-defaults-init.ly).
Within a \wordwrap block (or anything comparable), this baseline-skip will
apply.


Between two \markup blocks, however, there will be no baseline-skip at all:
these boxes will just be stacked on top of each other with no padding at
all. This becomes apparent when enclosing the markup blocks in boxes:

%%
\version "2.19.82"

\paper { line-width = #70 } 

\markup \override #'(box-padding . 0) \column {
  \box \wordwrap {
To be, or not to be, that is the question: 
Whether ’tis nobler in the mind to suffer
  }
  \box \wordwrap { 
The slings and arrows of outrageous fortune,
Or to take Arms against a Sea of troubles,
And by opposing end them: to die, to sleep
  }
  \box \wordwrap {
No more; and by a sleep, to say we end
the heart-ache, and the thousand natural shocks
that Flesh is heir to?
  }
}
%

 

The boxes stick together without any space between them. 
The distance between the last line of the second box and the first line of
the third box is a bit wider, but only because of the descender ("p") in the
last line of the second box.


To avoid this unwanted effect (for text paragraphs, it might be desirable
for graphic elements), you might use \markuplist instead of \markup:

%
\version "2.19.82"

\paper { line-width = #70 } 

\markuplist {
  \wordwrap-lines {
To be, or not to be, that is the question: 
Whether ’tis nobler in the mind to suffer
  }
  \wordwrap-lines { 
The slings and arrows of outrageous fortune,
Or to take Arms against a Sea of troubles,
And by opposing end them: to die, to sleep
  }
  \wordwrap-lines {
No more; and by a sleep, to say we end
the heart-ache, and the thousand natural shocks
that Flesh is heir to?
  }
}
%

 

HTH,
Torsten



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Question about baseline-skip.

2018-07-15 Thread Hwaen Ch'uqi
Greetings Torsten,

Thank you so much for the explanation AND for the examples, despite my
lack of a minimal example. It was most helpful.

Hwaen Ch'uqi


On 7/14/18, Torsten Hämmerle  wrote:
> Hi Hwaen,
>
> I get your point (although a minimal example for demonstration purposes
> would have helped).
>
> In a 20 pt score, the default font size will be 11 pt and the default
> baseline-skip will be 3 staff spaces (set in paper-defaults-init.ly).
> Within a \wordwrap block (or anything comparable), this baseline-skip will
> apply.
>
>
> Between two \markup blocks, however, there will be no baseline-skip at all:
> these boxes will just be stacked on top of each other with no padding at
> all. This becomes apparent when enclosing the markup blocks in boxes:
>
> %%
> \version "2.19.82"
>
> \paper { line-width = #70 }
>
> \markup \override #'(box-padding . 0) \column {
>   \box \wordwrap {
> To be, or not to be, that is the question:
> Whether ’tis nobler in the mind to suffer
>   }
>   \box \wordwrap {
> The slings and arrows of outrageous fortune,
> Or to take Arms against a Sea of troubles,
> And by opposing end them: to die, to sleep
>   }
>   \box \wordwrap {
> No more; and by a sleep, to say we end
> the heart-ache, and the thousand natural shocks
> that Flesh is heir to?
>   }
> }
> %
>
> 
>
> The boxes stick together without any space between them.
> The distance between the last line of the second box and the first line of
> the third box is a bit wider, but only because of the descender ("p") in the
> last line of the second box.
>
>
> To avoid this unwanted effect (for text paragraphs, it might be desirable
> for graphic elements), you might use \markuplist instead of \markup:
>
> %
> \version "2.19.82"
>
> \paper { line-width = #70 }
>
> \markuplist {
>   \wordwrap-lines {
> To be, or not to be, that is the question:
> Whether ’tis nobler in the mind to suffer
>   }
>   \wordwrap-lines {
> The slings and arrows of outrageous fortune,
> Or to take Arms against a Sea of troubles,
> And by opposing end them: to die, to sleep
>   }
>   \wordwrap-lines {
> No more; and by a sleep, to say we end
> the heart-ache, and the thousand natural shocks
> that Flesh is heir to?
>   }
> }
> %
>
> 
>
> HTH,
> Torsten
>
>
>
> --
> Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user