[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of variables to add lyrics
From: |
Aaron Hill |
Subject: |
Re: Use of variables to add lyrics |
Date: |
Mon, 16 Jul 2018 09:55:55 -0700 |
User-agent: |
Roundcube Webmail/1.3.6 |
On 2018-07-16 07:18, Michael Hendry wrote:
I had tried creating a variable for each \column’s contents, and then
for the \fill-line section, and lost heart when I got error messages
from the compiler.
By any chance, were you attempting to do something like this?
%%%%
foo = \column { "abc" "def" "ghi" }
%%%%
If so, you'd probably see errors like:
error: unknown escaped string: `\column'
error: string outside of text script or \lyricmode
You need to use \markup when defining the variable:
%%%%
\version "2.19.82"
lyrA = \markup \column { "abc" "def" "ghi" }
lyrB = \markup \column { "jkl" "mno" "pqr" }
lyrAB = \markup \fill-line { \null \lyrA \lyrB \null }
\lyrAB \lyrAB
%%%%
-- Aaron Hill