[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "header", "layout" and "paper" blocks as variables...
From: |
Mats Bengtsson |
Subject: |
Re: "header", "layout" and "paper" blocks as variables... |
Date: |
Fri, 23 May 2008 10:33:40 +0200 |
User-agent: |
Thunderbird 2.0.0.5 (X11/20070716) |
As far as I can see in the source code, there is no support to assign a
\header block to a variable.
However, for \paper and \layout it should work fine. However, when you
use the variables,
you have to include them in a corresponding \paper or \layout block.
Example:
% Define default paper and layout blocks:
mypaper = \paper{
left-margin = 1.5\cm
}
mylayout = \layout{
raggedright = ##t
}
% Use the definitions:
\paper{\mypaper}
\layout{\mylayout}
Note also that if you want to merge several settings, you cannot do
\layout{\mylayout \mysecondlayout }
rather you have to do
\layout{\mylayout}
\layout{ \mysecondlayout }
which works, since every new \layout block will add to the existing
settings.
/Mats
padovani wrote:
hi.
is there a way to put the header, layout and block values as variables?
I woul like to use something like
myheader = \header { ..... }
mylayout = \layout { .... }
mypaper = \paper { ....}
and then call these variables to construct my score...
I tried but I get errors like:
./instr/comhead.ly:69:8: error: syntax error, unexpected STRING
tagline = ##f
./instr/comhead.ly:70:26: error: unknown escaped string: `\cm'
left-margin = 1.5
\cm
./instr/comhead.ly:71:27: error: unknown escaped string: `\cm'
right-margin = 1.5
\cm
./instr/comhead.ly:72:25: error: unknown escaped string: `\cm'
top-margin = 0.5
\cm
./instr/comhead.ly:73:28: error: unknown escaped string: `\cm'
bottom-margin = 0.5
\cm
(continues.....)
any tips? Or am I doing something stupid?
thanks
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
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
=============================================
- "header", "layout" and "paper" blocks as variables..., padovani, 2008/05/22
- Re: "header", "layout" and "paper" blocks as variables..., Valentin Villenave, 2008/05/23
- Re: "header", "layout" and "paper" blocks as variables...,
Mats Bengtsson <=
- Re: "header", "layout" and "paper" blocks as variables..., Valentin Villenave, 2008/05/23
- Re: "header", "layout" and "paper" blocks as variables..., Mats Bengtsson, 2008/05/23
- Re: "header", "layout" and "paper" blocks as variables..., Valentin Villenave, 2008/05/23
- Re: "header", "layout" and "paper" blocks as variables..., Valentin Villenave, 2008/05/26
- Re: "header", "layout" and "paper" blocks as variables..., Mats Bengtsson, 2008/05/26
- Re: "header", "layout" and "paper" blocks as variables..., Valentin Villenave, 2008/05/26
- Re: "header", "layout" and "paper" blocks as variables..., Mats Bengtsson, 2008/05/26
- Re: "header", "layout" and "paper" blocks as variables..., Mats Bengtsson, 2008/05/26
- Re: "header", "layout" and "paper" blocks as variables..., Valentin Villenave, 2008/05/26