improved latex settings