3 outputter.cc -- implement Tex_outputter
5 source file of the GNU LilyPond music typesetter
7 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "outputter.hh"
11 #include "tex-stream.hh"
12 #include "molecule.hh"
17 Tex_outputter::Tex_outputter (Tex_stream
*s
)
23 Tex_outputter::output_molecule (Molecule
const*m
, Offset o
)
25 String t
= m
->TeX_string();
29 String
s ("\\placebox{%}{%}{%}");
31 a
.push (print_dimen (o
.y()));
32 a
.push (print_dimen (o
.x()));
37 r = String ("\n%start: ") + name() + "\n";
40 r
+= substitute_args (s
, a
);
47 Tex_outputter::start_line ()
49 *outstream_l_
<< "\\hbox{%<- line of score\n";
53 Tex_outputter::stop_line ()
56 *outstream_l_
<< "\\interscoreline";