Text this: Newton polygons and curve gonalities.