Allow results to be returned in latex or plain text