[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Different markups for odd and even lyrics lines / stanzas
From: |
David Kastrup |
Subject: |
Re: Different markups for odd and even lyrics lines / stanzas |
Date: |
Fri, 20 Jul 2012 18:01:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> Thomas Morley <address@hidden> writes:
>
>> 2012/7/18 Specken Flecken <address@hidden>:
>>> Dear lilypond people,
>>>
>>> Marek from the bug squad suggested, I should post this question here.
>>> Does someone know a solution for the following problem:
>>>
>>> I want to distinguish odd and even lyrics lines, i.e. stanzas. I can
>>> think of 3 variants:
>>>
>>> 1. Colored resp. light gray background,
>>> 2. a vertical line after each even numbered stanza or
>>> 3. extra vertical spacing after each even numbered stanza.
>>>
>>> I would be grateful for suggestions how to accomplish this, e.g.
>>> using scheme.
>>
>> Hi,
>>
>> I've no clue about 1. or 2., but following
>> http://lsr.dsi.unimi.it/LSR/Item?id=641 I've defined a new
>> AltLyrics-context. Offering more lower space and an altered font-shape
>> and color.
>>
>> One problem persists. I didn't manage how to use a command like
>> \override LyricText #'font-size = #-1 in \layout affecting both Lyrics
>> _and_ AltLyrics.
>> You can use \override Lyrics . LyricText #'font-size = #-1 in
>> \lyricmode of both contexts. But in \layout you have to set it twice:
>>
>> \context { \Lyrics \override LyricText #'font-size = #-1 }
>>
>> _and_
>>
>> \context { \AltLyrics \override LyricText #'font-size = #-1 }
>>
>> Perhaps I overlooked something.
>
> Why are you reentering all those engravers when you copy them from
> \Lyrics anyway? You can use
>
> \layout { \override Lyrics.LyricText #'font-size = #-1 }
>
> in order to catch all aliases of Lyrics in one fell swoop.
Oh, and of course if you first do
\context { \Lyrics \override LyricText #'font-size = #-1 }
before defining \AltLyrics with reference to \Lyrics, then this change
will get copied into \AltLyrics as well.
--
David Kastrup