15 Atom::TeXstring() const
17 // whugh.. Hard coded...
19 s+= String(off.y * VERT_TO_PT)+"pt\\hbox to 0pt{\\kern ";
20 s+=String(off.x * HOR_TO_PT) + "pt" + sym->tex + "\\hss}";
24 /****************************************************************/
27 Molecule::TeXstring() const
30 for(Cursor<Atom> c(ats); c.ok(); c++)
36 Molecule::extent() const
39 for(Cursor<Atom> c(ats); c.ok(); c++)
40 b.unite((*c).extent());
45 Molecule::translate(Offset o)
47 for(Cursor<Atom> c(ats); c.ok(); c++)
52 Molecule::add(const Molecule &m)
54 for (Cursor<Atom> c(m.ats); c.ok(); c++) {
61 Molecule::add_right(const Molecule &m)
63 Real xof=extent().x.max - m.extent().x.min;
65 toadd.translate(Offset(xof, 0.0));
70 Molecule::add_left(const Molecule &m)
72 Real xof=extent().x.min - m.extent().x.max;
74 toadd.translate(Offset(xof, 0.0));
80 Molecule::add_top(const Molecule &m)
82 Real yof=extent().y.max - m.extent().y.min;
84 toadd.translate(Offset(0,yof));
89 Molecule::add_bot(const Molecule &m)
91 Real yof=extent().y.min- m.extent().y.max;
93 toadd.translate(Offset(0,yof));