Question: Maple Output: Is it possible to format the d in “differentials” of integral expressions to italic?

Maple standard Output

int(f(x), x)

int(f(x), x)

(1)

Desired output with an italic d (here formated manualy with the  in the menu bar)

int(f(x), x)

int(f(x), x)

(2)

which reverts to roman layout either after re-execution of the worksheet or re-evaluation.

  int(f(x), x)

int(f(x), x)

(3)

NULL

Background:
I would like to achieve textbook style formatting of integrals in Maple output. I am aware that interpreting a dx in an integral as a "differential" is controversial. The way Maple displays the integration variable in italic and the d in roman makes sense and avoids confusion with interpretations that are no longer needed.
However, what I want to avoid is mixing
dx and dx in the same document.

Can Maple be set by default that the d in the dx of an integral becomes italic?

If this is not possible and because this question comes from habits in physics: Would a display option in the physics package be possible?

Download Differential_format_in_integrals.mw

Please Wait...