There is no supported method to create atlases at runtime. You do have the source code to 2D Toolkit, if you fancy implementing it yourself...
However, tk2d can load atlases created elsewhere, eg. texture packer, at runtime. Check the runtime sprite collections sample for more details.