#include "boxes.hh"
#include "item.hh"
#include "symbol.hh"
+
/// a symbol which can be translated, and freely copied
struct Atom {
Offset off;
Symbol sym;
+ /****************/
+
void translate(Offset o) {
off += o;
}
Box extent() const;
Atom(Symbol s);
- void print() const;
+ void print() const;
String TeXstring() const;
};
struct Molecule {
IPointerList<Atom*> ats;
+ /****************/
+
Molecule() { }
Molecule(Atom a) { add(a) ; }