My technique:-
Whichever way the calipers want to go when you're tightening the nut, hold them the other way, against the rim. Then, when it's tight enough, let go of the caliper and just tweak the nut enough to centre the brake. Sometimes you have to just help the caliper to follow that last tweak.