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
    Jun 9 '19 at 10:54

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
    Jun 8 '19 at 23:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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