From: fred Date: Sun, 14 Sep 1997 00:42:23 +0000 (+0000) Subject: lilypond-0.1.14 X-Git-Tag: release/1.5.59~6055 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=08e0186876a77dc2a5fd913cf35dc2c2b9b07e54;p=lilypond.git lilypond-0.1.14 --- diff --git a/lily/outputter.cc b/lily/outputter.cc new file mode 100644 index 0000000000..a533ea8e48 --- /dev/null +++ b/lily/outputter.cc @@ -0,0 +1,57 @@ + +/* + outputter.cc -- implement Tex_outputter + + source file of the GNU LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + +#include "outputter.hh" +#include "tex-stream.hh" +#include "molecule.hh" +#include "varray.hh" +#include "dimen.hh" +#include "tex.hh" + +Tex_outputter::Tex_outputter (Tex_stream *s) +{ + outstream_l_ = s; +} + +void +Tex_outputter::output_molecule (Molecule const*m, Offset o) +{ + String t = m->TeX_string(); + if (!t) + return ; + + String s ("\\placebox{%}{%}{%}"); + Array a; + a.push (print_dimen (o.y())); + a.push (print_dimen (o.x())); + a.push (t); + String r; + /* + if (check_debug) + r = String ("\n%start: ") + name() + "\n"; + */ + + r += substitute_args (s, a); + + *outstream_l_ << r; +} + + +void +Tex_outputter::start_line () +{ + *outstream_l_ << "\\hbox{%<- line of score\n"; +} + +void +Tex_outputter::stop_line () +{ + *outstream_l_ << "}"; + *outstream_l_ << "\\interscoreline"; +}