fixed math modes in latex, added calcs in graph-tool-test