6
$\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$
  • $\begingroup$ Actually in your expression d is a variable and mathematica would automatically simplify it, hence the \frac{u}{t} result. $\endgroup$ – Rebel-Scum Jun 9 at 10:54
8
$\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$
  • $\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 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.