]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/page-links.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / page-links.ly
diff --git a/input/regression/page-links.ly b/input/regression/page-links.ly
new file mode 100644 (file)
index 0000000..f9be4dd
--- /dev/null
@@ -0,0 +1,31 @@
+\version "2.14.0"
+
+\header {
+
+  texidoc = "Links to labels and explicit page number (PDF backend only)."
+
+}
+
+#(set-default-paper-size "a6" 'landscape)
+
+\book {
+  \label #'front
+  \markup { \with-link #'second \concat { "Link to page " \page-ref #'second "0" "?" " with label #'second."  } }
+  \markup { \page-link #3 "Explicit link to page 3" }
+  \markup { \with-link #'markB "Link to mark B" }
+
+  \pageBreak
+  \label #'second
+
+  \score {
+    { c'2
+      \mark \markup \with-link #'front { front: \concat { \page-ref #'front "0" "?" ) }} 
+      c'
+
+      \pageBreak
+      \mark \markup \with-link #'front "B" 
+      \label #'markB
+      d' d'
+      }
+  }
+}
\ No newline at end of file