flower-1.0.2
[lilypond.git] / tex.cc
blobdb789e47b3ca953f3bc407dce79aab5fd840eb4d
1 #include "tex.hh"
2 #include "const.hh"
3 /*
4 #TeXstring# should generate a TeX string to typeset the object in
5 a hbox or vbox of exactly the objects' dimension.
6 */
9 /// #h# is in points
10 String
11 vstrut(Real h)
13 return String("\\vrule height ") + h + "pt depth 0pt width 0pt";
17 /// the staff with five lines.
18 struct Fiveline_staff: Stretchable_symbol {
19 String operator()(Real width) {
20 String s("\\normalebalk{ ");
21 s+=width * HOR_TO_PT;
22 s+= "pt}";
23 return s;