http://www.lilypond.org/doc/v2.19/Documentation/notation/table-of-contents
At the bottom of the page there is this part:
"""
Dots can be added to fill the line between an item and its page number:
\header { tagline = ##f }
\paper {
tocItemMarkup = \tocItemWithDotsMarkup
}
"""
which is useful, but I think that it would be better to show how a custom tocItemMarkup can use that function. IIUC, the only (?) way is redefining the variable:
\paper {
tocItemMarkup = \markup { \fill-line { \fromproperty #'toc:text \fromproperty #'toc:page } }
tocItemMarkup = \tocItemWithDotsMarkup
}
This may be obvious for a programmer who knows the concept of variable, but not obvious for a musician.
I would add also an example of \fill-with-pattern in the context of a toc, in order to show how you can customize it:
I have a patch done but am struggling getting git-cl to work. If I cannot get git-cl working I will upload the patch here so that we don't have others duplicating work.
The description says
But that does not make a whole lot of sense since
\tocItemWithDotsMarkupdoes not reference the previous value oftocItemMarkupat all, so there is no point in defining it twice.of course you are right, I didn't check how tocItemMarkup is defined in ly/toc-init.ly:
but I would still add an example on how to customize tocItemMarkup with \fill-with-pattern
Doc: NR - input.itely - TOC customization
Issue 4649
Added more examples of how
to customize the tocItemMarkup
function.
Also made minor line-length
fixes and re-worded some
paragraphs to accomodate
a slight re-ordering of the
existing examples.
http://codereview.appspot.com/271220043
TexInfo syntax fixes
http://codereview.appspot.com/271220043
more TexInfo fixes (grr!)
http://codereview.appspot.com/271220043
Passes make, make check and a full make doc.
Forgot to post this (yet another) Texinfo correction
http://codereview.appspot.com/271220043
Passes make, make check and a full make doc
Patch on countdown for November 16th.
Patch counted down - please push.
author James Lowe pkx166h@gmail.com
Sun, 1 Nov 2015 14:35:11 +0000 (14:35 +0000)
committer James Lowe pkx166h@gmail.com
Mon, 16 Nov 2015 12:24:47 +0000 (12:24 +0000)
commit 4d8ae12d918b0183f85c3b1dc93f65c7711104a3