lilypond-user
[Top][All Lists]
Advanced

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

\postscript in \markup


From: Aurèle Duda
Subject: \postscript in \markup
Date: Mon, 10 Jan 2005 21:01:47 +0100
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Hi,

Trying to add some culs-de-lampe (drawn with METAPOST) to a score,
I look on file-inclusion in textmarkup, but don't see anything. So,
I try to add postscript code from my eps file (removing header) like this :

\version "2.5.6"
\markup{ "\embeddedps{ my ps code }" }

and it works very nicely.

But now I want to use the postscript backend and the latex command \embeddedps 
is not understand.
I try the \postscript command (http://lilypond.org/doc/v2.5/Documentation/user/out-www/lilypond/Overview-of-text-markup-commands.html#Overview-of-text-markup-commands)
but I can't compile: lilypond gives me some syntax error, as it can't parse ps 
code in the right way.

Is my use of \postscript wrong ?

Thanks,
Aurèle

\markup{
  \postscript "40.8 2 translate
          0.2 0.2 scale
          0 0.5 dtransform truncate idtransform setlinewidth pop [] 0 setdash
        1 setlinecap 1 setlinejoin 10 setmiterlimit
        newpath 0 0 moveto
        42.51968 0 lineto stroke
        newpath 42.51968 0 moveto
        44.61325 0.36914 46.55753 1.33157 48.6511 1.70071 curveto
        50.03581 1.45656 51.0564 0.24416 52.44112 0 curveto stroke
        newpath 0 0 moveto
        42.51968 0 lineto stroke
        newpath 42.51968 0 moveto
        44.71541 0.38716 46.45537 -2.08788 48.6511 -1.70071 curveto
        50.14355 -1.96388 50.94865 0.26317 52.44112 0 curveto
        closepath
        gsave fill grestore stroke
        newpath 52.44112 0 moveto
        52.44112 0.44872 52.63388 0.87303 52.95134 1.19049 curveto
        53.34293 1.58208 55.47649 1.70071 54.14183 1.70071 curveto
        52.80708 1.70071 54.9408 1.58209 55.33243 1.19049 curveto
        55.64992 0.87303 55.8427 0.44872 55.8427 0 curveto
        55.8427 -0.44872 55.64992 -0.87303 55.33243 -1.19049 curveto
        54.9408 -1.58209 52.80708 -1.70071 54.14183 -1.70071 curveto
        55.47649 -1.70071 53.34293 -1.58208 52.95134 -1.19049 curveto
        52.63388 -0.87303 52.44112 -0.44872 52.44112 0 curveto closepath
        gsave fill grestore stroke
        gsave newpath 108.28366 0 moveto
        65.76398 0 lineto
        -1 1 scale stroke grestore
        gsave newpath 65.76398 0 moveto
        63.67041 0.36914 61.72614 1.33157 59.63257 1.70071 curveto
        58.24785 1.45656 57.22726 0.24416 55.84254 0 curveto
        -1 1 scale stroke grestore
        gsave newpath 108.28366 0 moveto
        65.76398 0 lineto
        -1 1 scale stroke grestore
        gsave newpath 65.76398 0 moveto
        63.56825 0.38716 61.8283 -2.08788 59.63257 -1.70071 curveto
        58.1401 -1.96388 57.335 0.26317 55.84254 0 curveto
        closepath
        gsave fill grestore
        -1 1 scale stroke grestore
        showpage "
}


--
Aurèle Duda
address@hidden




reply via email to

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