]> git.donarmstrong.com Git - lilypond.git/blob - tex.cc
release: 0.0.3
[lilypond.git] / tex.cc
1
2 #include "tex.hh"
3 #include "symbol.hh"
4 #include "const.hh"
5 /*
6     #TeXstring# should generate a TeX string to typeset the object in
7   a hbox or vbox of exactly the objects' dimension.
8 */
9
10
11 /// #h# is in points
12 String
13 vstrut(Real h)
14 {
15     return String("\\vrule height ") + h + "pt depth 0pt width 0pt";
16 }
17
18
19 /// the staff with five lines.
20  struct  Fiveline_staff: Stretchable_symbol {
21      String operator()(Real width) {
22         String s("\\normalebalk{ ");
23         s+=width * HOR_TO_PT;
24         s+= "pt}";
25         return s;
26     }    
27 };
28