lilypond-devel
[Top][All Lists]
Advanced

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

Re: Table of contents broken?


From: Reinhold Kainhofer
Subject: Re: Table of contents broken?
Date: Sun, 9 Dec 2007 17:12:00 +0100
User-agent: KMail/1.9.7

Am Sonntag, 9. Dezember 2007 schrieb Nicolas Sceaux:
> Le 8 déc. 07 à 23:41, Reinhold Kainhofer a écrit :
> > -) How do I make the TOC not appear at the very bottom of the page
> > (I'm using
> > \pageBreak immediately after \table-of-contents)?
>
> You can add a \markup \null line just before the page break following
> the toc. 

Thanks, but that "moves" the toc only to the middle of the page,,, Adding 
several \null markups moves it further up, but there is always some space 
remaining at the top.

> Or consider setting page-limit-inter-system-space, see 5.5.2 
> Vertical spacing between systems:

Actually, I can't use that as I don't want the setting for the rest of my 
score.

> I'm using commands which
>    a) add a toc item to the table of contents
>    b) add a title with possibly a page break before and always a no page
>    break after it
>    c) insert the score itself
>
> If you're interested, you may have a look at: [...]

Thanks. I see, you do almost all of that stuff in Scheme. I actually prefer to 
do as much as possible directly in Lilypond without resorting to scheme... 
But then, if there is really no possibility to call \tocItem from within the 
scoreTitleMarkup, I suppose I'll have no other choice, anyway.


> > -) The "Title of contents" header is hardcoded, so every non-english
> > speaker
> > will have to override the tocTitleMarkup command. Wouldn't it be
> > better to
> > define the string via \header { tocTitle = "Table of contents" } and
> > use this
> > string in the tocTitleMarkup?
>
> I don't understand. Right now you have to write:
>    \paper { tocTitleMarkup = ... }
> and you'd like to write instead:
>    \header { tocTitle = ... }
>
> Where's the win?

Clear separation of content and display (that's also the reason behind CSS, 
styles in Word and OpenOffice, etc.).

The appearance (ie. the tocTitleMarkup) might be outsorced to a global style 
sheet that controls the appearance, so the appearance is uniform across all 
my scores, while the title for the TOC will be language (and this score) 
dependent.

In particular, I'm writing several masses in Lilypond, and I want all of them 
to have the same toc-style, but some scores should be in German, some in 
English. If I copy the whole tocTitleMarkup into each mass, changing its 
appearance later on will be a lot of work, but if I have it in my style 
sheet .ly file, it's just one change and all masses will still have the same 
appearance.

Of course, I could write my own tocTitleMarkup
\header {
  tocTitle = "Table of Contents"
}
\paper {
  tocTitleMarkup = \markup \huge \column {
    \fill-line { \null \fromproperty #'header:tocTitle \null }
    \hspace #1
  }
}
but why not adding it directly into toc-init.ly and making lilypond easier to 
work with in other languages? 
The tocTitle might then even be translated e.g. in deutsch.ly and users don't 
have to do anything manually to get localized titles... For example, that 
same concept is also applied in Latex.

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/




reply via email to

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