Hydrogen-bonded supramolecular motifs in 2-amino-4,6-dimethoxypyrimidinium picrate and pyrimethaminium picrate dimethyl sulfoxide solvate.