]> git.donarmstrong.com Git - lilypond.git/blob - tex.cc
db789e47b3ca953f3bc407dce79aab5fd840eb4d
[lilypond.git] / tex.cc
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 */
7
8
9 /// #h# is in points
10 String
11 vstrut(Real h)
12 {
13     return String("\\vrule height ") + h + "pt depth 0pt width 0pt";
14 }
15
16
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;
24     }    
25 };
26