latex and curves in all the right places