Hi David and Павел, Thank you so much for your helpful replies!
As both of you mentioned, using the copyright field in the \header block indeed works perfectly in standalone LilyPond scores — it places the text nicely at the bottom of the first page, just as expected. I also tried the method using oddFooterMarkup with a conditional on \on-first-page, and that worked as well. Much appreciated. However, I noticed a new issue when embedding the score using \lilypondfile inside a LaTeX document (as part of a book I’m compiling). In this setup, both the copyright and tagline fields completely disappear, even though they are correctly rendered when compiling the score on its own. I was wondering: – Is this behavior expected when embedding LilyPond with LaTeX (e.g., via lilypond-book or lytex)? – Or could I have possibly misconfigured something in my file? I’m aware that LilyPond defers headers and footers to LaTeX in such contexts, but I’d love to know if there’s an officially recommended way to preserve the copyright footer even in embedded use. Thanks again for your time and generous advice! Best regards, Peter X On Sat, Apr 26, 2025 at 3:16 PM Павел <budanov.pa...@gmail.com> wrote: > David Poon is completely right, but you can write custom marcaps for > footers and headers: > > \paper { > line-width = 150\mm > oddFooterMarkup = \markup { \if \on-first-page-of-part \column { > \fill-line { \fromproperty #'header:tagline } > } } > } > > More examples can be found in the file titling-init.ly (on linux, it is > in /usr/share/lilypond/2.24.4/ly). > > В Сб, 26 апр 2025 в 14:39:02 -07:00:00, David Poon <dpor...@gmail.com> > написал: > > I believe using 'copyright' instead of 'tagline' in the header works as > desired by default: print only on the first page (whereas 'tagline' is last > page only). > > -David > > On Sat, 26 Apr 2025 at 14:23, <carsonm...@ca.rr.com> wrote: > >> Peter, >> >> >> >> Look at the last entry on >> >> >> https://lilypond.org/doc/v2.24/Documentation/notation/custom-titles-headers-and-footers#custom-layout-for-titles >> >> >> >> Mark >> >> >> >> *From:* lilypond-user-bounces+carsonmark=ca.rr....@gnu.org >> <lilypond-user-bounces+carsonmark=ca.rr....@gnu.org> *On Behalf Of *Peter >> X >> *Sent:* Saturday, April 26, 2025 1:47 PM >> *To:* Lilypond-User Mailing List <lilypond-user@gnu.org> >> *Subject:* How to place a custom copyright tagline at the bottom of the >> first page only? >> >> >> >> Dear LilyPond community, >> >> I’m working on an arrangement that requires a copyright notice (tagline) >> to appear at the bottom of the first page only. The text should not appear >> at the end of the score, nor should it appear on every page. >> >> I’ve created a minimal example using \tagline in the \header block, >> hoping it would place the text at the bottom of the first page. Here’s the >> minimal example I’m working with: >> >> >> >> \version "2.24.4" >> >> >> >> \paper { >> >> line-width = 150\mm >> >> >> >> } >> >> >> >> \header { >> >> title = "Placeholder Title" >> >> composer = "Words and Music by: Firstname Lastname" >> >> tagline = "© Placeholder Publishing Info, Placeholder Rights >> Administered. All Rights Reserved. International Copyright Secured. Used by >> Permission. Placeholder Placeholder Placeholder." >> >> } >> >> >> >> music = \repeat unfold 100 { c'4 c'4 c'4 c'4 | } >> >> >> >> \score { >> >> \new Staff { >> >> \clef treble >> >> \key c \major >> >> \time 4/4 >> >> \music >> >> } >> >> >> >> } >> >> >> As expected, the tagline ends up at the bottom of the last page. >> >> Any suggestions or workarounds on how to force this copyright line to >> appear at the bottom of the first page only would be greatly appreciated! >> >> Best regards, >> >> Peter >> >
test_header_copyright.ly
Description: Binary data