]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.14
authorfred <fred>
Wed, 4 Dec 1996 22:07:10 +0000 (22:07 +0000)
committerfred <fred>
Wed, 4 Dec 1996 22:07:10 +0000 (22:07 +0000)
hdr/tex.hh
src/tex.cc

index 546797a7c19042c6bc9e90a86802e66f35fa0926..aba60f06c42a0d27a1057a066a16d2ff3ba5129e 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "string.hh"
 #include "boxes.hh"
+#include "scalar.hh"
 
 /// parameter substitution in TeXstrings
 String
@@ -14,6 +15,10 @@ substitute_args(String source, svec<String> args);
   eval({"X","Y"})  == "texXblaY"
   */
 
+/// parameter substitution in TeXstrings
+String
+substitute_args(String source, svec<Scalar> args);
+
 /// #h# is in points
 String vstrut(Real h);
 
index 60d487dfd1a1a9d69ae2ac7cc09f2fc6814df372..372536c20aa31916d1e4cd9824dfbb29a06040d9 100644 (file)
@@ -31,3 +31,12 @@ substitute_args(String source, svec<String> args)
         substitute_arg(retval, "");
     return retval;
 }
+String
+substitute_args(String source, svec<Scalar> args)    
+{
+    svec<String> sv;
+    for (int i = 0 ; i < args.sz(); i++)
+       sv.add(args[i]);
+    
+    return substitute_args(source, sv);
+}