Test latex fomular generating.