Generalized van der Waals theory for the twist elastic modulus and helical pitch of cholesterics.