flower-1.0.2
[lilypond.git] / tex.cc
blobe11ebb90b826ed0b5a287461a6010bf57b7ab942
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 */
11 /// #h# is in points
12 String
13 vstrut(Real h)
15 return String("\\vrule height ") + h + "pt depth 0pt width 0pt";
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;