lilypond-user
[Top][All Lists]
Advanced

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

Re: small caps in title


From: Jean Abou Samra
Subject: Re: small caps in title
Date: Tue, 19 Oct 2021 19:48:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2

Le 19/10/2021 à 19:42, type@projectivespace.com a écrit :
I have a quick question about formatting a title in small caps in Lilypond. 
Although I can format scoreTitleMarkup with the usual \bold and \italic for 
markups, I am having trouble getting \smallCaps (or \caps) to work with a title 
retrieved by \fromproperty. The \smallCaps works fine elsewhere in the 
scoreTitleMarkup, but not on the title that I am retrieving with \fromproperty 
#'header:title. A tiny example is below (between the equals signs). I 
appreciate any assistance that anyone can provide.

I do know that I could provide the \smallCaps markup when I set the title, but 
I may want to display the title in different ways in different parts of the 
score, so I don't want to hard code the formatting into its definition.

And since this is my first post to the list, I'd also like to thank everyone on 
the Lilypond team for producing and maintaining such an amazing scoring tool, 
and also those helpful people who reply to people's questions on the 
lilypond-user list. I have learned a lot from reading the emails that I get on 
this list!

Thanks,


Jay

=========================
\version "2.22.1"

\paper {
   scoreTitleMarkup = \markup {
                \fill-line { \bold \italic \fromproperty #'header:title
                             \smallCaps "Small caps work"
                             \smallCaps \fromproperty #'header:title
                }
   }
}

\header { title = "The title" }

{ a b c }
===========================


Hi Jay,

This is an old bug; try the workaround proposed at

https://gitlab.com/lilypond/lilypond/-/issues/1482#note_339750124

Kind regards,
Jean



reply via email to

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