Organic layered crystals with adjustable interlayer distances of 1-naphthylmethylammonium n-alkanoates and isomerism of hydrogen-bond networks by steric dimension.