7
$\begingroup$

Consider that

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

yet

enter image description here

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

$\endgroup$
1
  • $\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, 2019 at 10:54

1 Answer 1

10
$\begingroup$

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

$\endgroup$
1
  • $\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, 2019 at 23:45

Your Answer

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

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