]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.1
authorfred <fred>
Sun, 28 Jul 1996 15:46:55 +0000 (15:46 +0000)
committerfred <fred>
Sun, 28 Jul 1996 15:46:55 +0000 (15:46 +0000)
tex.cc [new file with mode: 0644]

diff --git a/tex.cc b/tex.cc
new file mode 100644 (file)
index 0000000..db789e4
--- /dev/null
+++ b/tex.cc
@@ -0,0 +1,26 @@
+#include "tex.hh"
+#include "const.hh"
+/*
+    #TeXstring# should generate a TeX string to typeset the object in
+  a hbox or vbox of exactly the objects' dimension.
+*/
+
+
+/// #h# is in points
+String
+vstrut(Real h)
+{
+    return String("\\vrule height ") + h + "pt depth 0pt width 0pt";
+}
+
+
+/// the staff with five lines.
+ struct  Fiveline_staff: Stretchable_symbol {
+     String operator()(Real width) {
+       String s("\\normalebalk{ ");
+       s+=width * HOR_TO_PT;
+       s+= "pt}";
+       return s;
+    }    
+};
+