]> git.donarmstrong.com Git - lilypond.git/blobdiff - ps/music-drawing-routines.ps
* ps/music-drawing-routines.ps (mark_file_line): Switch Action
[lilypond.git] / ps / music-drawing-routines.ps
index d15141a1997f0249db1b2ed710eb4f27041db36b..0c5c3ce9b7aebe650b1f03c17aab230cabff9995 100644 (file)
        /Rect [ llx lly urx ury ]
        /Border [ 0 0 0 0 ]
 
-       %% following for xpdf
-%      /Action /Launch
-%      /File command
-
-       %% following for acroread
-       /Action <<
-           /Subtype /URI
-           /URI command
-       >>
-    
+       pdf-viewer (acroread) eq
+       {
+           /Action
+           <<
+               /Subtype /URI
+               /URI command
+           >>
+       }
+       {
+           % xpdf.  FIXME: gpdf, kpdf etc?
+           /Action
+           <<
+               /Launch
+               /File command
+           >>
+       } ifelse
         /Subtype /Link
     /ANN
     pdfmark
 }
 bind def
 
-/set_tex_dimen {
+/set_tex_dimen
+{
        cvr def
 } bind def