2
$\begingroup$

I try to run:

wolframscript -code "TeXForm[""2+2""]"

But I end up with:

TeXForm[2+2]

I am using Windows.

From my research, I understand that Mathematica can't display this properly on the command line. I also understand that I need to do something tricky, but I have no idea how Linux, or "xvfb-run" works.

Can someone please provide step-by-step instructions on how to solve this issue for us poor Windows users?

$\endgroup$
  • $\begingroup$ It is spelled TeXForm but one set of quotes is enough. $\endgroup$ – Bill Watts Jan 30 at 7:53
4
$\begingroup$

try this?

 wolframscript -code HoldForm[1+1] -format TeXForm

 wolframscript -code Range@10 -format TeXForm

 wolframscript -c ConstantArray[0,{10,10}] -format TeXForm

enter image description here

if on Windows, the Command Line cmd should be run as Administrator to have wolframscript executed. get more info on how to use wolframscript under Windows by this way.

enter image description here

$\endgroup$

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.