TransWikia.com

Error with latexalpha2 package

TeX - LaTeX Asked on March 19, 2021

This is a simple MWE including latexalpha2 package. I have Wolfram Engine installed on my PC and added the WolframScript into the path.

documentclass{article}
usepackage{latexalpha2}
usepackage{amsmath}
begin{document}
[  wolfram{Solve[x+1==0,x]} ]
end{document}

I get the following error:

Package latexalpha2 Error: WolframScript cannot be found, which is required to use latexalpha2. begin{document}


EDIT

The output is produced correctly but the error remains.
enter image description here


EDIT 2

I tried to produce a 3D plot which took a while to be compile. During complilation I got the following messages before the error shows up

‘command’ is not recognized as an internal or external command, operable program or batch file.

‘rm’ is not recognized as an internal or external command, operable program or batch file.

One Answer

This result can be obtained c

running this code (tested with windows, pdflatex and lualatex)

documentclass[12pt,a4paper]{article}
RequirePackage{float}% 
RequirePackage{booktabs}%

RequirePackage[nocache]{latexalpha2wlua} % option cache (faster the second run) or nocache (recalculate always)

begin{document}

begin{figure}[H]
    wolframgraphics{Plot3D[Sin[x]Cos[y],{x,-2Pi,2Pi},{y,-2Pi,2Pi}]}{Plot3Db}
    includegraphics{Plot3Db.pdf}
    caption{Plot 3D of $f(x,y)=sin(x)cos(y)$}
    centering
end{figure}

Laplace Transform of $t^4 sin(t)$

$$ wolfram{LaplaceTransform[t^4 Sin[t],t,s]} $$

Generates a power series expansion

$$ wolfram{Series[Exp[x],{x,0,5}]} $$

bigskip    

Compton scattering for electron bigskip

$wolframalpha{Compton scattering for electron}$

bigskip    

Solve the equation  $a x^2+b x+c=0$ and display the corresponding results

wolframsolve{a x^2+b x+c==0}{x}

newpage
begin{table}[H]
    centering
    begin{tabular}{ccc}
    toprule
    wolframtable{Join[{{x,x^2,x^3}}, Table[{i,i^2,i^3},{i,5}]]}
    bottomrule
    end{tabular}
    caption{Generate a table of $x$, $x^2$, $x^2$}
end{table} 

bigskip

The population of Shanghai is $wolframalpha{Shanghai population}$, which
is $wolframalpha{ratio of Shanghai population and NYC population}$ times the
population of New York City.

bigskip

Solve differential equations $y'(x) + y(x) = a *sin(x)*y(x)*x $

wolframdsolve{y'[x]+y[x]==a Sin[x]}{y[x]}{x}

end{document}

The code for the package latexalpha2wlua and some comments can be found in

https://tex.stackexchange.com/a/579254/161015

Answered by Simon Dispa on March 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP