2 atom.cc -- implement Atom
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "interval.hh"
20 DOUT << "texstring: " <<tex_<<"\n";
34 : dim_ (Interval (0,0),Interval (0,0))
39 Atom::Atom (String s, Box b)
49 return "Atom (\'"+tex_+"\', (" + dim_.x().str () + ", "
50 + dim_.y ().str () + "))";
54 Atom::TeX_string() const
56 String tex_str = tex_;
59 /* infinity checks. */
60 for (int a =X_AXIS; a < NO_AXES; a++)
63 if (abs (off[ax]) >= 100 CM)
65 warning ("ridiculous dimension " + axis_name_str (ax) + ", "
66 +print_dimen(off[ax]));
68 tex_str += "\errormark";
71 // whugh.. Hard coded...
72 String s ("\\placebox{");
73 s += print_dimen (off[Y_AXIS])+"}{";
74 s += print_dimen (off[X_AXIS]) + "}{";