Re: Non-music variables seem not to work in Lilypond 2.19.54-1

2017-02-05 Thread Colin Campbell

On 2017-02-05 04:08 PM, Simon Albrecht wrote:

On 05.02.2017 09:45, Tom Campbell wrote:

I'm not top posting

% Lilypad version required for non-music variables
\version "2.19.54"


% I believe one should now be able to create non-music variables, at 
least

according to:
%
http://lilypond.org/doc/v2.19/Documentation/learning/organizing-pieces-with-variables 

% I am attempting to create style sheet-like thingies for book 
publishing.
% This gives the error "Ignoring non-music expression" in Lilypond 
2.19.54-1


More importantly, before that it gives the error ‘unknown escaped 
string: `\fontsize'’.
That’s because \fontsize is a markup command and you are using it in a 
music expression.

Please refer to  for help on your use case.



Just to expand a bit on Simon's reply: anything inside brackets is taken 
as a music expression by LilyPond, while \fontsize needs to be placed in 
a non-musical container, such as a \markup. I see you are working 
through the Learning Manual, and you will find more help a bit further 
down in 3.4.4 and 4.7.2 of that manual. Simon has also recommended that 
you try posting to the user list first, for your next questions, keeping 
the bug list for those issues which cannot be answered elsewhere.



Cheers

Colin

--
I like to believe that people in the long run are going to do more to 
promote peace than our governments. Indeed, I think that people want 
peace so much that one of these days governments had better get out of 
the way and let them have it.

 - Dwight D. Eisenhower, U.S. general and 34th president (1890-1969)

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Non-music variables seem not to work in Lilypond 2.19.54-1

2017-02-05 Thread Simon Albrecht

On 05.02.2017 09:45, Tom Campbell wrote:

I'm not top posting

% Lilypad version required for non-music variables
\version "2.19.54"


% I believe one should now be able to create non-music variables, at least
according to:
%
http://lilypond.org/doc/v2.19/Documentation/learning/organizing-pieces-with-variables
% I am attempting to create style sheet-like thingies for book publishing.
% This gives the error "Ignoring non-music expression" in Lilypond 2.19.54-1


More importantly, before that it gives the error ‘unknown escaped 
string: `\fontsize'’.
That’s because \fontsize is a markup command and you are using it in a 
music expression.

Please refer to  for help on your use case.

Best, Simon

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Non-music variables seem not to work in Lilypond 2.19.54-1

2017-02-05 Thread Tom Campbell
> I'm not top posting
% Lilypad version required for non-music variables
\version "2.19.54"


% I believe one should now be able to create non-music variables, at least
according to:
%
http://lilypond.org/doc/v2.19/Documentation/learning/organizing-pieces-with-variables
% I am attempting to create style sheet-like thingies for book publishing.
% This gives the error "Ignoring non-music expression" in Lilypond 2.19.54-1
headerone = {
\fontsize #6
}

% Sorry if I did anything wrong. It's my first posting
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond