Copy some useful latex settings from NumPy