lilypond-user
[Top][All Lists]
Advanced

[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: Mon, 18 Jun 2007 16:27:01 +0200

hi,

I had the same problem recently and also tried to tweak in the header directly.
But what you actually have to do is, to create your own header.
In the manual it's explained in chapter '10.2.2. Custom Titles'.
You'll have to define the bookTitleMarkup variable in the \paper block to make 
the header apear as you want.
I advise to read through the default which is defined in the file 
'titling-init.ly'.
Maybe these two links also help:
http://lists.gnu.org/archive/html/lilypond-user/2007-02/msg00638.html
http://lsr.dsi.unimi.it/LSR/Snippet?id=293

It's not exactly what you want, but maybe they help to understand how the 
variables work a little better.

Hope that helped.

regards,

Tao


-------- Original-Nachricht --------
Datum: Mon, 18 Jun 2007 16:09:56 +0200
Von: "Germain G. Ivanoff-Trinadtzaty" <address@hidden>
An: "Lilypond users" <address@hidden>
Betreff: [layout tweaks] 1. fill-line

> Dear all,
> 
> I'm having trouble with tweaking the layout of non-musical notation.
> Dozens of try/retry sequences didn't get LilyPond to do the job.
> 
> First, I point you at this unexpected feature :
> %%%%%%%%%%%%%%% begin %%%%%%%%%%%%%%%
> %%% The following code outputs <title> and <subtitle> at
> %%% different horizontal shifts
> \version "2.11.26" %(windows)
> \header
> {
>  title = \markup \normalsize \fill-line { "azerty" }
>  subtitle = \markup \normalsize { "azerty" }
> }
> \score {c''} 
> \layout{}
> %%%%%%%%%%%%%%% end %%%%%%%%%%%%%%%
> 
> Now, the job :
> . <index>, <title>, <subtitle> : variable length strings.
> . I want to get <title> and <subtitle> centered on the page,
> while <index> is placed on the left of <title>.
> . I could not place <index> at a _fixed_ position from the _variable_
> position of <title>'s first character.
> . I could not even place <index> at a _fixed_ position from the _fixed_
> left margin of the page.
> 
> %%%%%%%%%%%%%%% begin BROKEN source %%%%%%%%%%%%%%%
> \version "2.11.26" %(windows)
> \header
> {
>  title = \markup \normalsize
>  {
>   %{
>   %% doesn't compile
>   \once \override #'(line-width . 60)
>   \right-align "№ 210" % index
>   %}
> 
>   %% doesn't work
>   \override #'(left-margin . 40)
>   "№ 210"  % index
>   \override #'(left-margin . 18) % can't use \revert ?
> 
>   \fill-line { \center-align
>   {
>    "azerty" % title
>    "azerty" % subtitle
>   }}
>  }
> }
> \score {c''} 
> \layout{}
> %%%%%%%%%%%%%%% end BROKEN source %%%%%%%%%%%%%%%
> 
> For now, I use the following (unsatisfying) trick as a stopgap :
> 
> %%%%%%%%%%%%%%% begin source %%%%%%%%%%%%%%%
> \version "2.11.26" %(windows)
> \header
> {
>  title = \markup \normalsize \fill-line
>  {
>   \hcenter-in #40 "№ 210"  % index
>   \center-align
>   {
>    "azerty" % title
>    "azerty" % subtitle
>   }
>   \hcenter-in #40 ""
>  }
> }
> \score {c''} 
> \layout{}
> %%%%%%%%%%%%%%% end source %%%%%%%%%%%%%%%
> 
> Any piece of advice ?
> 
> Thanks,
> Germain

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger




reply via email to

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