A TeX implementation in a single C++ class.