Why doesn’t livescript display the results in LATEX form?
Show older comments
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
Walter Roberson
on 11 Sep 2019
There is a latex() call that might help for any one expression ?
madhan ravi
on 12 Sep 2019
madhan ravi
on 13 Sep 2019
Subhadeep Koley
on 13 Jan 2020
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.
madhan ravi
on 13 Jan 2020
Subhadeep Koley
on 13 Jan 2020
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))

Are you getting this output?
madhan ravi
on 13 Jan 2020
madhan ravi
on 15 Jan 2020
Subhadeep Koley
on 16 Jan 2020
Can you please try that code again after setting the Default Text Interpreter to 'tex' or 'latex' ?
set(0,'DefaultTextInterpreter','latex');
madhan ravi
on 16 Jan 2020
madhan ravi
on 18 Jan 2020
Subhadeep Koley
on 19 Jan 2020
It seems not a bug as I am getting expected output in my end. It can be some issue with the installation.
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!