[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble defining markup functiion

From: Carl Sorensen
Subject: Trouble defining markup functiion
Date: Thu, 17 Jan 2019 14:27:08 +0000
User-agent: Microsoft-MacOutlook/

I'm trying to define a markup function for establishing a common set of 
formatting for a number of text markups.

%%% beginning of sample code

\version "2.19.82"

\markup{\sans{\fontsize #10 "C"}}  % Just used to show the scheme markup 
command -- this is what I'm trying

#(define-markup-command  (chord-name-markup layout props chord-name) (markup?)
   "Display a chord name in the desired formatting"
   (interpret-markup layout props 
     (make-line-markup (#:sans (#:fontsize 10 chord-name)))))

\markup \chord-name-markup "E"

%%% end of code

I've used displayScheme to get the representation of the markup function.  I've 
found that is uses #:line so that I have to use make-line-markup.  

When I run this code, I get

 In expression (#:fontsize 10 chord-name):
 Wrong type to apply: #:fontsize

Apparently, in the context of make-line-markup I can't use #:fontsize as the 
first element in a list, because it's not applyable.

How can I do this properly?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]