[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [layout tweaks] 1. fill-line
From: |
Tao Cumplido |
Subject: |
Re: [layout tweaks] 1. fill-line |
Date: |
Tue, 19 Jun 2007 01:05:58 +0200 |
I see. This could complicate things a little.
First of all you will need the following in your code:
%%%%%%%%%%%%%%%%%%
\paper
{
bookTitleMarkup = \markup
{
\column
{
\fill-line
{
\fromproperty #'header:index %index in the left edge
\fromproperty #'header:title %title centered on page
" " %empty space on the right
}
\fill-line
{
\fromproperty #'header:subtitle %subtitle below title
}
}
}
}
%%%%%%%%%%%%%%%%%%%%%
This re-defines properties used in the header.
With the above you'll have 'index aligned with 'title, while 'index is on the
left edge and 'title in the center.
'subtitle will be centered below 'title.
Now you have to understand the \fill-line command.
In the manual it's not so well explained, especially how to use it in this
context.
The outcome depends on the number of arguments in a \fill-line block.
The command will place all arguments equally align, so if you want to have
something placed on the left edge, in the center but nothing on the right you
still need to use three arguments. Otherwise you would only get parts on the
outer edges, not in the center.
For this reason I use the empty string (" ") in the example above.
Now to achieve what you want is a little difficult, since you can't work with
fixed distances here.
I'd suggest to fill in empty strings in the first line.
Just make sure that you always have an odd total of arguments, and that the
title is in the middle.
I hope that was clear.
If not, just ask and I'll try to explain better, or maybe someone else.
I have never been much good in explaining.
Good luck,
Tao
-------- Original-Nachricht --------
Datum: Mon, 18 Jun 2007 23:16:04 +0200
Von: "Germain G. Ivanoff-Trinadtzaty" <address@hidden>
An: "Tao Cumplido" <address@hidden>
CC: "Lilypond users" <address@hidden>
Betreff: Re: [layout tweaks] 1. fill-line
> Hi Tao,
> Thank you for your interest. Actually, I want this:
>
>
> fixed | center
> <---> v
> | |
> | Index Title |
> | Sub-title |
> | |
> | |
> | ======================================= |
> | ======================================= |
> | |
>
> or : (better)
>
> fixed
> <->
> | |
> | Index Title |
> | Sub-title |
> | |
>
>
> regards,
>
> Germain
> (fixed point font)
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
Re: [layout tweaks] 1. fill-line, Rune Zedeler, 2007/06/18