[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme function and top-level markup
From: |
Simon Albrecht |
Subject: |
Re: Scheme function and top-level markup |
Date: |
Fri, 27 May 2022 12:33:57 +0200 |
Sorry for the garbled line breaks, I’ll try again:
%%%%%%%%%%%%%%%%%%%%%%%%%%% \version "2.23.9"
pieceTitle =
#(define-scheme-function (str) (markup?)
#{
\markup \huge $str
\noPageBreak
#})
\pieceTitle "I. Kyrie"
{ c'1 }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Parsing...
/tmp/frescobaldi-0fy0zxi0/tmpkd3e8qov/document.ly:7:6: error: markup outside of
text script or \lyricmode
\markup \huge $str
/tmp/frescobaldi-0fy0zxi0/tmpkd3e8qov/document.ly:11:1: error: error in #{ ...
#}
\pieceTitle "I. Kyrie"
/tmp/frescobaldi-0fy0zxi0/tmpkd3e8qov/document.ly:11:1: error: bad expression
type
\pieceTitle "I. Kyrie"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
On 27/05/2022 12:21, Simon Albrecht wrote:
Hello everyone,
I’m a bit surprised that the following doesn’t work and don’t know
where to look for a solution.
%%%%%%%%%%%%%%%%%%%%%%%%% \version "2.23.9" pieceTitle =
#(define-scheme-function (str) (markup?) #{ \markup \huge $str
\noPageBreak #}) \pieceTitle "I. Kyrie" { c'1 }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Here are the error messages:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Parsing...
/tmp/frescobaldi-0fy0zxi0/tmpkd3e8qov/document.ly:7:6: error: markup
outside of text script or \lyricmode \markup \huge $str
/tmp/frescobaldi-0fy0zxi0/tmpkd3e8qov/document.ly:11:1: error: error
in #{ ... #} \pieceTitle "I. Kyrie"
/tmp/frescobaldi-0fy0zxi0/tmpkd3e8qov/document.ly:11:1: error: bad
expression type \pieceTitle "I. Kyrie" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
What can I do?
Best, Simon