[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dots in TOC
From: |
Aaron Hill |
Subject: |
Re: Dots in TOC |
Date: |
Thu, 06 Feb 2020 06:53:31 -0800 |
User-agent: |
Roundcube Webmail/1.4.2 |
On 2020-02-06 4:40 am, Vaughan McAlley wrote:
Hi,
I’ve tried adding an extra line of description to the title within a
TOC
entry (it states the voicing of each choral movement). The last
movement
has a description longer than the title, so the dots don’t reach the
title.
I’ve tried overriding X-extents within the markup, but it doesn't seem
to
make any difference.
You could use either \with-dimensions or \with-dimensions-from to adjust
the effective extents of the markup. But likely the better option is
this:
%%%%
\version "2.19.83"
\paper {
tocItemMarkup = \tocItemWithDotsMarkup
tocDescriptionMarkup = \markup \italic \fromproperty #'toc:text
}
tocDescription = #(define-music-function (text) (markup?)
(add-toc-item! 'tocDescriptionMarkup text))
\book {
\markuplist \table-of-contents
\tocItem "One"
\tocDescription "Lorem ipsum"
\tocItem "Two"
\tocDescription "Dolor sit amet"
\markup \null
}
%%%%
You can follow pattern this to add any number of other specialized items
with custom markup.
-- Aaron Hill
- Dots in TOC, Vaughan McAlley, 2020/02/06
- Re: Dots in TOC,
Aaron Hill <=