11 mtor << "texstring: " <<sym.tex<<"\n";
29 Atom::TeXstring() const
31 // whugh.. Hard coded...
33 s+= print_dimen(off.y) +"\\hbox to 0pt{\\kern ";
34 s+= print_dimen(off.x);
35 s+= sym.tex + "\\hss}";
41 Molecule::TeXstring() const
44 for(PCursor<Atom*> c(ats); c.ok(); c++)
50 Molecule::extent() const
53 for(PCursor<Atom*> c(ats); c.ok(); c++)
59 Molecule::translate(Offset o)
61 for (PCursor<Atom*> c(ats); c.ok(); c++)
66 Molecule::add(const Molecule &m)
68 for (PCursor<Atom*> c(m.ats); c.ok(); c++) {
74 Molecule::add_right(const Molecule &m)
76 Real xof=extent().x.max - m.extent().x.min;
78 toadd.translate(Offset(xof, 0.0));
83 Molecule::add_left(const Molecule &m)
85 Real xof=extent().x.min - m.extent().x.max;
87 toadd.translate(Offset(xof, 0.0));
93 Molecule::add_top(const Molecule &m)
95 Real yof=extent().y.max - m.extent().y.min;
97 toadd.translate(Offset(0,yof));
102 Molecule::add_bot(const Molecule &m)
104 Real yof=extent().y.min- m.extent().y.max;
106 toadd.translate(Offset(0,yof));
111 Molecule::operator = (const Molecule&)
116 Molecule::Molecule(const Molecule&s)
122 Molecule::print() const
124 for (PCursor<Atom*> c(ats); c.ok(); c++)