13 mtor
<< "texstring: " <<sym
.tex
<<"\n";
31 Atom::TeXstring() const
33 // whugh.. Hard coded...
34 String
s("\\placebox{%}{%}{%}");
36 a
.push(print_dimen(off
.y
));
37 a
.push(print_dimen(off
.x
));
39 return substitute_args(s
, a
);
45 Molecule::TeXstring() const
48 for(iter_top(ats
,c
); c
.ok(); c
++)
54 Molecule::extent() const
57 for(iter_top(ats
,c
); c
.ok(); c
++)
63 Molecule::translate(Offset o
)
65 for (iter_top(ats
,c
); c
.ok(); c
++)
70 Molecule::add(const Molecule
&m
)
72 for (iter_top(m
.ats
,c
); c
.ok(); c
++) {
78 Molecule::add_right(const Molecule
&m
)
84 Real xof
=extent().x
.right
- m
.extent().x
.left
;
86 toadd
.translate(Offset(xof
, 0.0));
91 Molecule::add_left(const Molecule
&m
)
97 Real xof
=extent().x
.left
- m
.extent().x
.right
;
99 toadd
.translate(Offset(xof
, 0.0));
105 Molecule::add_top(const Molecule
&m
)
111 Real yof
=extent().y
.right
- m
.extent().y
.left
;
113 toadd
.translate(Offset(0,yof
));
118 Molecule::add_bottom(const Molecule
&m
)
124 Real yof
=extent().y
.left
- m
.extent().y
.right
;
126 toadd
.translate(Offset(0,yof
));
131 Molecule::operator = (const Molecule
&)
136 Molecule::Molecule(const Molecule
&s
)
142 Molecule::print() const
144 for (iter_top(ats
,c
); c
.ok(); c
++)