Let F℘ be a finite extension of Qp. By considering partially de Rham families, we establish a Colmez-Greenberg-Stevens formula (on Fontaine-Mazur L-invariants) for (general) 2-dimensional semi-stable non-crystalline Gal(Qp/F℘)-representations. As an application, we prove local-global compatibility results for completed cohomology of quaternion Shimura curves, and in particular the equality of Fontaine-Mazur L-invariants and Breuil's L-invariants, in critical case. Contents 4. Local-global compatibility 17 4.1. Setup and notations 17 4.2. Completed cohomology and eigenvarieties 18 4.3. Local-global compatibility 25 Appendix A. Partially de Rham trianguline representations 33 References 36