Integrating the following simple equation $te^x$ w.r.t. $t$ using stokes' theorem, $\int_{\partial \Omega} \omega = \int_{\Omega} \mathrm d\omega$, yields the following equation
$$ \int_0^5 te^x\,\mathrm dt = \color{red}{\int_0^5\mathrm d(\frac12t^2 e^x)} = \frac{25}2e^x $$
Integrating w.r.t to $x$ yields
$$ \int_0^5 te^x\,\mathrm dx = \color{purple}{\int_0^5\mathrm d(t e^x)} = t (e^5 - 1) $$
At the first step, it is obvious that we are integrating with respect to $t$ and $x$, because it is the only variable present in the differential. But as soon as we deal with differentials of multiple variables, this becomes ambiguous. There is nothing in the second step indicating what variable we integrate over. They would also appear if we integrated the following expressions:
$$ \int_0^5 \frac12 t^2e^x\,\mathrm dx = \color{red}{\int_0^5\mathrm d(\frac12t^2 e^x)} = \frac12 t^2 (e^5 - 1) $$
or
$$ \int_0^5 e^x\,\mathrm dt = \color{purple}{\int_0^5\mathrm d(t e^x)} = 5e^x $$
Is there an unambiguous way of writing these integrals, such that the integrating variable is clear without context? Preferably one that appears in literature. My immediate thought would be to write $\int_{t=0}^5$ (as in sums), but I haven't seen this use anywhere.
Yes, you can very well enhance the integration range.
$$\int_{t=0}^5 d\left(\frac{t^2}2e^x\right)$$
or
$$\int_{x=0}^5 d(te^x). $$