Text this: Mathematical Aspects in Non-equilibrium Thermodynamics