Hi James,
I tried it and that's what happened; I've attached the file in case you'd
like a look at the result.
On the other hand, I can confirm that Phil Holme's idea does work -
\override LyricText #'font-shape = #'italic italic text \override LyricText
#'font-shape = #'normal
Gerard
----- Original Message -----
From: "James Bailey" <derhindem...@googlemail.com>
To: "Gerard McConnell" <gerry...@indigo.ie>
Cc: "Kieren MacMillan" <kieren_macmil...@sympatico.ca>;
<lilypond-user@gnu.org>
Sent: Friday, April 23, 2010 6:43 AM
Subject: Re: text formatting inside \addlyrics
On 22.04.2010, at 23:04, Gerard McConnell wrote:
----- Original Message ----- From: "Kieren MacMillan"
<kieren_macmil...@sympatico.ca>
To: "Gerard McConnell" <gerry...@indigo.ie>
Cc: <lilypond-user@gnu.org>
Sent: Thursday, April 22, 2010 12:16 PM
Subject: Re: text formatting inside \addlyrics
Hi Gerard,
How do I italicize a section of text inside \addlyrics?
\markup \italic { a section of text to be italicised }
I don't think that will work; that will italicize the section of text,
but the words will no longer be treated as lyrics, that is, they won't
be aligned under the notes as lyrics would be.
What would lead you to come to this conclusion?
\version "2.12.0"
\layout {
indent = #0
\context {
\Score
\remove "Bar_number_engraver"
}
\context {
\Lyrics \override LyricText #'font-size = #-1
}
}
\header {
title = "All Creatures Of Our God And King"
tagline = ##f
}
% to get an svg output file use the LilyPondTool console and enter - %lilypond -dbackend=svg %buffer
#(set-global-staff-size 25)
\relative c' {
\key d \major
\time 3/2
\partial 2 d2 | d4 e fis d fis g | a1 d,2 | d4 e fis d fis g | a1 d4 cis | b2 a d4 cis
b2 a^\markup { \musicglyph #"scripts.ufermata" } d |
d4 a a g fis g | a1 d2 | d4 a a g fis g | a1 g4( fis) | e2 d g4( fis) | e2 d d'4 cis |
b2 a d4 cis | b2 a g4 fis | e1. | d2 \bar "|."
}
\addlyrics { All crea -- tures of our God and King.
lift up your voice and with us sing
Al -- le -- lu -- ia, al -- le -- lu -- ia!
Thou burn -- ing sun with gol -- den beam,
thou sil -- ver moon with soft -- er gleam;
\markup \italic {
O praise Him, O praise him,
al -- le -- lu -- ia, al -- le -- lu -- ia, al -- le -- lu -- ia! }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user