The Sri Lankan general who led troops to victory over Tamil separatists after decades of war formally announced today that he would try to unseat the president in January elections.