]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/titling-init.ly
Issue 2626: add on-page for usage in \on-the-fly
[lilypond.git] / ly / titling-init.ly
index 73fd17fe598106a3953cc0146b73ccce90bd223d..7b004468a91abdb192be3aa691851ac3e34a82d8 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.14.0"
+\version "2.15.20"
 
 slashSeparator = \markup {
   \center-align
@@ -15,11 +15,10 @@ tagline = \markup {
 
     %% 2014 = em dash.
 
-    #(ly:export
-      (format "Music engraving by LilyPond ~a~awww.lilypond.org"
+    #(format #f "Music engraving by LilyPond ~a~awww.lilypond.org"
        (lilypond-version)
        (ly:wide-char->utf-8 #x2014)
-       ))
+       )
   }
 }
 
@@ -102,6 +101,11 @@ book last one."
       (interpret-markup layout props arg)
       empty-stencil))
 
+#(define ((on-page nmbr) layout props arg)
+ (if (= (chain-assoc-get 'page:page-number props -1) nmbr)
+   (interpret-markup layout props arg)
+   empty-stencil))
+
 %% Bookpart first page and last page predicates
 #(define (part-first-page layout props arg)
   (if (= (chain-assoc-get 'page:page-number props -1)