Text this: Mathematical foundations of thermodynamics