2 tex-def.cc -- implement Tex_def
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
10 #include "assoc-iter.hh"
11 #include "identifier.hh"
14 #include "tex-lookup.hh"
15 #include "tex-score.hh"
17 IMPLEMENT_IS_TYPE_B1 (Tex_def, Paper_def);
20 Tex_def::dimension_str (Real r) const
22 return Paper_def::dimension_str (r) + "pt";
26 Tex_def::lookup_p (Lookup const& l) const
28 return new Tex_lookup (l);
32 Tex_def::lookup_p (Symtables const& s) const
34 return new Tex_lookup (s);
38 Tex_def::output_settings_str () const
41 for (Assoc_iter<String,Identifier*> i (*scope_p_); i.ok (); i++)
42 s += String ("\\def\\mudelapaper") + i.key ()
43 + "{" + i.val ()->str () + "}\n";
44 s += *scope_p_->elem ("texsetting")->access_String ();
49 Tex_def::paper_score_p () const
51 return new Tex_score ();
55 Tex_def::unknown_str () const