Synthesis of polyaniline with low polydispersity by using a supramolecular ionic assembly as the reaction medium.