From: fred Date: Sun, 28 Jul 1996 15:46:55 +0000 (+0000) Subject: lilypond-0.0.1 X-Git-Tag: release/1.5.59~7217 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bf9dd8ef19f7f04eea00c8e684eb62fb8f278d83;p=lilypond.git lilypond-0.0.1 --- diff --git a/tex.cc b/tex.cc new file mode 100644 index 0000000000..db789e47b3 --- /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; + } +}; +