[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom font commands (for header fields)
From: |
Mats Bengtsson |
Subject: |
Re: Custom font commands (for header fields) |
Date: |
Mon, 14 Jan 2008 14:09:01 +0100 |
User-agent: |
Thunderbird 2.0.0.5 (X11/20070716) |
Please use the default definitions as a starting point, see the file
.../ly/titling-init.ly in your installation directory.
/Mats
Risto Vääräniemi wrote:
Dear All,
I've been trying to create a command that I could use in the header
fields to change font size and such. I'm doing this is because I'm
writing a song book and I'd like to tweak the font size of the songs
with just one command that's specified in an external (.ily) file.
Is there a way to do this? I've also tried scheme but it was no use
(probably because I didn't do it right :-)). You can find my futile
attempts below.
-Risto
%%% Start %%%
\version "2.11.32"
titleText = #(define-music-function (parser location markp) (string?)
#{
\markup \bigger \bigger \normal-text { $markp }
#})
%titleSize = \fontsize #2.0
%titleSize = \bigger \bigger
\header
{
%title = \titleText #"Foo"
%title = \markup \normal-text \titleSize { "Foo" }
title = \markup \normal-text \fontsize #2.0 { "Foo" }
}
{c'1}
%%%% END %%%%
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================