Is there a way to copy my mathematica code (with preserved formatting) as text into microsoft word? Below is part of my code.
chemicalpotential1[x_] = A1/2*(1 - Tanh[B1 (x - C1)])*Kb*T1;
chemicalpotential2[x_] = A2/2*(1 - Tanh[B2 (x - C2)])*Kb*T2;
chemicalpotential3[x_] = A3/2*(1 - Tanh[B3 (x - C3)])*Kb*T3;
diffintermediate1[x_] = a[x]x^2chemicalpotential1'[x];
diffintermediate2[x_] = b[x]x^2chemicalpotential2'[x];
diffintermediate3[x_] = (phi[x] - 1)x^2chemicalpotential3'[x];

:=instead of=when you want to use inputs on the right-hand side. – Ben Izd May 16 '22 at 15:20