Nonlinear thermodynamicalformalism