summaryrefslogtreecommitdiff
path: root/ly
diff options
context:
space:
mode:
authorBertrand Bordage <bordage.bertrand@gmail.com>2011-02-24 23:50:18 +0100
committerGraham Percival <graham@percival-music.ca>2011-03-01 09:01:37 +0000
commit6255791221fd8197a23d3299fdad85a3a79336ab (patch)
tree07d799409f92363cf32019c7f01417e665b00812 /ly
parent06f15d45164ec38c546444927300f6fb77cd6b60 (diff)
New markup command : pattern
Issue 1517 * scm/define-markup-commands.scm New markup commands : pattern fill-with-pattern * ly/toc-init.ly Create tocItemWithDotsMarkup * Documentation/changes.tely * Documentation/notation/input.itely How to use tocItemWithDotsMarkup
Diffstat (limited to 'ly')
-rw-r--r--ly/toc-init.ly3
1 files changed, 3 insertions, 0 deletions
diff --git a/ly/toc-init.ly b/ly/toc-init.ly
index dda4f31ab4..488e22ba2a 100644
--- a/ly/toc-init.ly
+++ b/ly/toc-init.ly
@@ -31,6 +31,9 @@
}
}
+tocItemWithDotsMarkup = \markup \fill-with-pattern #1 #RIGHT .
+ \fromproperty #'toc:text \fromproperty #'toc:page
+
#(define-markup-list-command (table-of-contents layout props) ()
( _i "Outputs the table of contents, using the paper variable
@code{tocTitleMarkup} for its title, then the list of lines