Skip to content

Commit 55adf61

Browse files
committed
feat: Add repeattitle
1 parent 8e2bb8f commit 55adf61

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pdq-header.ily

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
%! title - The title of the book (required).
1414
%! subtitle - The subtitle of the book (optional, but recommended).
1515
%! subsubtitle - A subsubtitle of the book.
16+
%! repeattitle - An optional variant of the title that will be used in the header of
17+
%! each page (if repeatTitle is true).
1618
%! dedication - A string containing a dedication of the work. This is displayed above
17-
%! the (sub)titles.
19+
%! the (sub)titles.
1820
%! instrument - The name of the instrument the music is for.
1921
%! publisher - The publisher of a work.
2022
%! version - A string identifying the current version of a work.

pdq.ily

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ opt-default-tagline = #(get-option 'defaultTagline #f)
250250
headerCenter = \markup {
251251
\sans \unless \on-first-page \concat {
252252
\if-true #opt-repeat-title {
253-
\fromproperty #'header:title
253+
\fromproperty #'header:repeattitle
254+
\when-not-property #'header:repeattitle \fromproperty #'header:title
254255
\when-property #'header:instrument " - "
255256
}
256257
\fromproperty #'header:instrument

0 commit comments

Comments
 (0)