The theorems of Riemann-Roch and Abel