PHP classes to generate latex code