Abstract: In this talk I will deal with Arakelov geometry on arithmetic surfaces. This theory, initiated by Arakelov and then extended by Gillet-Soulé, gives arithmetic analogues of intersection numbers of line bundles on surfaces. These are no longer integers, but real numbers with some diophantine meaning (e.g. heights). One needs to "complete" line bundles with the data of an hermitian metric, for such intersection products to be defined. In this setting, a major result is a Riemann-Roch type formula, that involves a real spectral invariant (holomorphic analytic torsion). Sometimes line bundles naturally come with flat connections, but not with metrics (for instance, rational points of universal vector extensions of jacobians). In joint work with R. Wentworth, we extend Arakelov geometry on arithmetic surfaces to line bundles with flat connections, and we prove the corresponding Riemann-Roch type formula. The theory is now complex valued, and the Riemann-Roch formula involves now a variant of analytic torsion, used by Hitchin in the theory of Higgs bundles.