7
$\begingroup$

In physics, we often write time derivatives with a dot ($\dot{a}$, $\ddot{a}$, for example).

Is it possible to force Mathematica to use this notation and then apply TeXForm so I can easily copy&paste my results in a TeX file?

If needed, I run Mathematica 10 on a Windows 8.1, 64 bits machine.

$\endgroup$

1 Answer 1

12
$\begingroup$

I can't test robustness, because I don't know what your work flow is, but one can Format the expression:

Format[D[f_[t], {t, n_ /; n < 3}]] := OverDot[f, n]

Then,

expr1 = D[f[t], t]
expr2 = D[f[t], {t, 2}]

looks like:

enter image description here

Then, you can use TeXForm:

TeXForm[expr1 + expr2]
(* \ddot{f}+\dot{f} *)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.