Fix bug in latex convenience function.