Current, position, and shape control in tokamaks