]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/embedded-postscript.ly
Merge with git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond.git
[lilypond.git] / input / test / embedded-postscript.ly
index cf956ca915eefd350f2f2181789eb22ca0f3bf6e..8240c4baa7e67f61ae647fd8f517d813f5eb590f 100644 (file)
@@ -1,20 +1,28 @@
-\version "1.7.18"
+
+\version "2.10.0"
+
+
 \header {
-  texidoc = "By inserting the @TeX{} command \embeddedps, you can
-insert postscript directly into the output.
 
-TODO: make molecule-callback to do this. 
-  "
+  texidoc = "
+
+@cindex Embedded Postscript
+
+The markup command @code{\postscript} inserts postscript directly into
+the output."
+
+}
+
+\layout {
+  line-width = 70 * 5 \pt
 }
 
-\score {
-  \notes \relative c'' {
-    a-#"\\embeddedps{3 4 moveto 5 3 rlineto stroke}"
-    -#"\\embeddedps{ [ 0 1 ] 0 setdash 3 5 moveto 5 -3 rlineto stroke}"
-    b-#"\\embeddedps{3 4 moveto 0 0 1 2 8 4 20 3.5 rcurveto stroke}"
-    s2
-    a'1
-  }
-  \paper { linewidth = 70 * \staffspace }
+\relative c'' {
+  a-\markup { \postscript #"3 4 moveto 5 3 rlineto stroke" }
+  -\markup { \postscript #"[ 0 1 ] 0 setdash 3 5 moveto 5 -3 rlineto stroke " }
+  
+  b-\markup { \postscript #"3 4 moveto 0 0 1 2 8 4 20 3.5 rcurveto stroke" }
+  s2
+  a'1
 }
-%% new-chords-done %%
+