12 mtor << "texstring: " <<sym.tex<<"\n";
30 Atom::TeXstring() const
32 // whugh.. Hard coded...
33 String s("\\placebox{%}{%}{%}");
35 a.add(print_dimen(off.y));
36 a.add(print_dimen(off.x));
38 return substitute_args(s, a);
43 Molecule::TeXstring() const
46 for(PCursor<Atom*> c(ats); c.ok(); c++)
52 Molecule::extent() const
55 for(PCursor<Atom*> c(ats); c.ok(); c++)
61 Molecule::translate(Offset o)
63 for (PCursor<Atom*> c(ats); c.ok(); c++)
68 Molecule::add(const Molecule &m)
70 for (PCursor<Atom*> c(m.ats); c.ok(); c++) {
76 Molecule::add_right(const Molecule &m)
82 Real xof=extent().x.max - m.extent().x.min;
84 toadd.translate(Offset(xof, 0.0));
89 Molecule::add_left(const Molecule &m)
95 Real xof=extent().x.min - m.extent().x.max;
97 toadd.translate(Offset(xof, 0.0));
103 Molecule::add_top(const Molecule &m)
109 Real yof=extent().y.max - m.extent().y.min;
111 toadd.translate(Offset(0,yof));
116 Molecule::add_bot(const Molecule &m)
122 Real yof=extent().y.min- m.extent().y.max;
124 toadd.translate(Offset(0,yof));
129 Molecule::operator = (const Molecule&)
134 Molecule::Molecule(const Molecule&s)
140 Molecule::print() const
142 for (PCursor<Atom*> c(ats); c.ok(); c++)