14 mtor << "texstring: " <<sym.tex<<"\n";
32 Atom::TeXstring() const
34 // whugh.. Hard coded...
35 String s("\\placebox{%}{%}{%}");
37 a.add(print_dimen(off.y));
38 a.add(print_dimen(off.x));
40 return substitute_args(s, a);
46 Molecule::TeXstring() const
49 for(PCursor<Atom*> c(ats); c.ok(); c++)
55 Molecule::extent() const
58 for(PCursor<Atom*> c(ats); c.ok(); c++)
64 Molecule::translate(Offset o)
66 for (PCursor<Atom*> c(ats); c.ok(); c++)
71 Molecule::add(const Molecule &m)
73 for (PCursor<Atom*> c(m.ats); c.ok(); c++) {
79 Molecule::add_right(const Molecule &m)
85 Real xof=extent().x.right - m.extent().x.left;
87 toadd.translate(Offset(xof, 0.0));
92 Molecule::add_left(const Molecule &m)
98 Real xof=extent().x.left - m.extent().x.right;
100 toadd.translate(Offset(xof, 0.0));
106 Molecule::add_top(const Molecule &m)
112 Real yof=extent().y.right - m.extent().y.left;
114 toadd.translate(Offset(0,yof));
119 Molecule::add_bottom(const Molecule &m)
125 Real yof=extent().y.left- m.extent().y.right;
127 toadd.translate(Offset(0,yof));
132 Molecule::operator = (const Molecule&)
137 Molecule::Molecule(const Molecule&s)
143 Molecule::print() const
145 for (PCursor<Atom*> c(ats); c.ok(); c++)