Consider that

$ wolframscript -cloud -code 'TeXForm[ (d u)/(d t)]'


enter image description here

I don't have a local wolframscript kernel installed. Is this something that only works for a local kernel?

  • $\begingroup$ Actually in your expression d is a variable and mathematica would automatically simplify it, hence the \frac{u}{t} result. $\endgroup$
    – Hans Olo
    Commented Jun 9, 2019 at 10:54

1 Answer 1


I didn't check how formatting works in wolframscript but if you force it on your terms then it does not matter:

TL;DR: use:

$ wolframscript -cloud -code 'ToString @ TeXForm[ (d u)/(d t)]'

enter image description here

  • $\begingroup$ Ok. So a good rule of thumb is to always parse output as a string when things aren't displaying properly. $\endgroup$
    – George
    Commented Jun 8, 2019 at 23:45

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.