lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Horizontal Alignment of Numbers in Table of Contents


From: Simon J Mackenzie
Subject: Horizontal Alignment of Numbers in Table of Contents
Date: Fri, 12 Dec 2008 13:59:11 +0700

Hi

I have a table of contents which contains the following...

1.  Joy to the Universe                                                1
56. Woe Beyond Hope                                                3
112. Frankly                                                                9
2001. Same Old Same Old                                          26

This is made up of successive \bookpart \tocItem entries in my \book
eg.

\bookpart {
\tocItem \markup { \small { "1.  Joy to the Universe" } }
...
}
\bookpart {
\tocItem \markup { \small { "56. Woe Beyond Hope" } }
...
}
etc.

Is it possible to right align the preceding numbers in each \tocItem entry above

eg. to produce a table of contents as follows
      1.  Joy to the Universe                                            1
    56. Woe Beyond Hope                                              3
  112. Frankly                                                                9
2001. Same Old Same Old                                          26

The best I can come up with is...

\hcenter-in
length (number) arg (markup)

Is there such a thing as...
\halign-right-in length (number) arg (markup)

or even...
\halign-left-in length (number) arg (markup)

Any suggestions on a solution would be appreciated.

Cheers
New User

"A Lilypond is a peace filled place to behold, restful, unassuming, rarely ever bold and the tune it whispers is invariably deep filled music for thirsty souls."

--------------------------------------------------

Reverend Simon J Mackenzie <address@hidden>

LUTHERAN CHURCH OF AUSTRALIA
197 Archer Street,
North Adelaide,
South Australia,
AUSTRALIA, 5006

reply via email to

[Prev in Thread] Current Thread [Next in Thread]