2 tex-score.cc -- implement Tex_score
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
10 #include "file-results.hh"
13 #include "paper-def.hh"
14 #include "tex-stream.hh"
15 #include "tex-outputter.hh"
16 #include "tex-score.hh"
19 Tex_score::paper_outputter_p (Paper_stream* os_p) const
22 *os_p << header_global_p->tex_string ();
24 *os_p << _ ("\n% outputting Score, defined at: ") << origin_str_ << '\n';
27 *os_p << header_l_->tex_string();
28 *os_p << paper_l_->output_settings_str ();
30 if (experimental_features_global_b)
31 *os_p << "\\turnOnExperimentalFeatures%\n";
33 *os_p << "\\turnOnPostScript%\n";
35 return new Tex_outputter (os_p);
39 Tex_score::paper_stream_p () const
41 String outname = base_output_str ();
46 *mlog << _f ("TeX output to %s...",
47 outname == "-" ? String ("<stdout>") : outname ) << endl;
48 p = new Tex_stream (outname);
49 target_str_global_array.push (outname);