Why doesn’t livescript display the results in LATEX form?

When I was using 2017a the results of symbolic operations resulted in LATEX form but why does it not happening in 2018b? Is there any option to change the settings perhaps?

12 Comments

There is a latex() call that might help for any one expression ?
Yes sir Walter, but the display of results isn't like equations for instance
One possible workaround that I know/found is that if i hover over a specific equation , I am able to see the equation in mathematical form , but it isn't fancy as the result being displayed as mathematical expression :/
madhan ravi Can you share your symbolic expression which you are trying to visualize? Because in my end I can see equations in LaTeX form in the live script.
Koley thank you for replying. I mean any symbolic expression just appears as is.
When I'm executing the following demo code in Live Editor (R2018b) in my end, it is showing formatted output.
syms m1 m2 e1 e2 r1 r2 r
[r1,r2] = solve(m1*r1 + m2*r2 == 0, r == r1 - r2, r1, r2)
d = e1*r1 + e2*r2;
simplify(d)
alpha = sym('alpha');
syms m c
m = m1*m2/(m1 + m2);
r2 = -alpha/(m*r^2);
J = simplify(subs(2/(3*c^3)*d^2, r, r2))
syms E L phi
a = alpha/(2*E)
eccentricity = sqrt(1-2*E*L^2/(m*alpha^2))
symbolicLatex.PNG
Are you getting this output?
Ok let me try that and get back as soon as I have access to my PC.
Koley I tried the code you suggested:
Screen Shot 2020-01-15 at 9.32.29 PM.png
Can you please try that code again after setting the Default Text Interpreter to 'tex' or 'latex' ?
set(0,'DefaultTextInterpreter','latex');
Still the same unfortunately.
It seems not a bug as I am getting expected output in my end. It can be some issue with the installation.

Sign in to comment.

 Accepted Answer

I assume you played around with the sympref command. Please restore the inital value for typeset outputs with
sympref('TypesetOutput','default');
Please note that any sympref changes are persistent over sessions.

More Answers (0)

Categories

Products

Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!