Add formatter for latex graphs