Other French presidents in recent history , such as François Mitterrand and Jacques Chirac , also fared very badly in mid-term elections and nevertheless managed to be re-elected , sometimes in a triumphant manner .