Holography and Riemann surfaces