13 mtor << "texstring: " <<sym.tex<<"\n";
31 Atom::TeXstring() const
33 /* infinity checks. */
34 assert( abs(off.x) < 100 CM);
35 assert( abs(off.y) < 100 CM);
37 // whugh.. Hard coded...
38 String s("\\placebox{%}{%}{%}");
40 a.push(print_dimen(off.y));
41 a.push(print_dimen(off.x));
43 return substitute_args(s, a);
49 Molecule::TeXstring() const
52 for(iter_top(ats,c); c.ok(); c++)
58 Molecule::extent() const
61 for(iter_top(ats,c); c.ok(); c++)
67 Molecule::translate(Offset o)
69 for (iter_top(ats,c); c.ok(); c++)
74 Molecule::add(Molecule const &m)
76 for (iter_top(m.ats,c); c.ok(); c++) {
82 Molecule::add_right(Molecule const &m)
88 Real xof=extent().x.right - m.extent().x.left;
90 toadd.translate(Offset(xof, 0.0));
95 Molecule::add_left(Molecule const &m)
101 Real xof=extent().x.left - m.extent().x.right;
103 toadd.translate(Offset(xof, 0.0));
109 Molecule::add_top(Molecule const &m)
115 Real yof=extent().y.right - m.extent().y.left;
117 toadd.translate(Offset(0,yof));
122 Molecule::add_bottom(Molecule const &m)
128 Real yof=extent().y.left- m.extent().y.right;
130 toadd.translate(Offset(0,yof));
135 Molecule::operator = (Molecule const &)
140 Molecule::Molecule(Molecule const &s)
146 Molecule::print() const
148 for (iter_top(ats,c); c.ok(); c++)