PARIS — Officers of the French Republican Guard, riding motorcycles and wearing blue uniforms and white helmets, formed the honor guard escorting the simple dark car carrying the body of Col. Arnaud Beltrame to the Invalides in Paris for a hero’s memorial on Wednesday.

President Emmanuel Macron gave a eulogy for Colonel Beltrame, and the gendarme was honored with a full military ceremony for his act of courage in voluntarily exchanging himself for a female hostage during a terrorist attack last week in the town of Trèbes, in southwest France, an act that saved the woman and possibly others, but that cost the gendarme his life.