[Top][All Lists]

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

Re: Help on markups

From: Nicolas Sceaux
Subject: Re: Help on markups
Date: Thu, 15 Apr 2004 19:37:56 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Bonjour Carl!

Thu, 15 Apr 2004 11:03:21 -0600, tu as dit : 

 > Now, I want to print a graphic element in the markup.  It looks to me
 > like I should be able to use the (dot x y) function found in
 > scm/output-tex.scm to create a string that will create an eps dot when
 > it's evaluated by gsview.

 > So I wrote the following markup definition:

 > #(def-markup-command (chord-diagram paper props chord-string) (string?)
 >   "Syntax: \\chord-diagram diagram-string
 >    eg: \\chord-diagram #\"x32010\" to achieve standard C chord"
 >     (interpret-markup paper props (markup (dot 0 0 3)))
 >   )

 > Hoping to be able to get a dot to come out.  Once I can get the dot, I
 > can also draw the lines and everything else needed to generate the chord
 > diagram.

 > But when I try to execute this markup, I get an error message that says
 > "Unbound variable: dot"

 > So I have two questions:

 > 1) Is this the correct approach to get dots and lines into a markup?  If
 > not, what's a better approach?

 > 2) If this is the right approach, how do I make use of the functions in
 > scm/output-tex.scm?

I don't know about 1), but for 2), just add:

#(use-modules (scm output-tex))

before your markup command definition and it will work.


reply via email to

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