[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replacement Macros - Ooops! Try Again Again
From: |
Simon J Mackenzie |
Subject: |
Re: Replacement Macros - Ooops! Try Again Again |
Date: |
Sun, 14 Dec 2008 17:21:57 +0700 |
Hi Tao,
Except this is an assignment and not a macro substitution so it wont
work in my situation...
\header {
%Common settings
poet = #(markup lyricist)
}
\book {
\bookpart {
\header {
lyricist = \markup { \bold "Yaahda Ohda" }
composer = \markup { \italics "Bill G.t.s" }
}
etc...
}
\bookpart {
\header {
lyricist = \markup { \bold "Tom Albany" }
composer = \markup { \italics "Bill G.t.s" }
}
etc...
}
etc...
}
This code will fail to compile because lyricist is an unbound variable
in the first instance.
Cheers
Simon
On Sun, 14 Dec 2008 10:34:57 +0100, "Tao Cumplido"
<address@hidden> said:
> Hi,
>
> I solved this for by using scheme in the header, like this:
>
> poet = #(markup lyricist)
>
> I don't know if you have to use scheme there but it works.
> Hope that helps.
>
> Regards,
>
> Tao
>
> -------- Original-Nachricht --------
> > Datum: Sun, 14 Dec 2008 14:00:25 +0700
> > Von: "Simon J Mackenzie" <address@hidden>
> > An: "LilyPond Mailing List" <address@hidden>
> > Betreff: Replacement Macros - Ooops! Try Again Again
>
> > Hi
> > How do you go about defining replacement macros so that ...
> > lyricist = \markup { \bold "Fred" "J" \italic "Bones" }
> > is transformed into say a form of...
> > poet = lyricist
> > Cheers
> > Simon
> > --------------------------------------------------
> >
> > Reverend Simon J Mackenzie <address@hidden>
> >
> > LUTHERAN CHURCH OF AUSTRALIA
> > 197 Archer Street,
> > North Adelaide,
> > South Australia,
> > AUSTRALIA, 5006
> >
>
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
> http://www.gmx.net/de/go/multimessenger
--------------------------------------------------
Reverend Simon J Mackenzie <address@hidden>
LUTHERAN CHURCH OF AUSTRALIA
197 Archer Street,
North Adelaide,
South Australia,
AUSTRALIA, 5006