Hello, I am starting to use Live Scripts, and have been trying to produce nicely formatted output using the export to Latex option. It works in general very well, but I can't get the functions with subscripts written properly. For instance, this short code that I was using in a live script, when exported to Latex will deliver "f_0" written as f with a subscript 0 (which is ok), but "f_1" remains as "f_1". Certainly I can always edit the latex output file and modify it manually, but I wandered if there exists an automated way to get all "_" texts as function subscripts when exporting to Latex from a live script. Also, for instance, expressions such as "f_{max}". Thanks!
Clear the workspace and define MATLAB symbolic variables for independent variables.
Define symbolic quantities and declare them to be positive (and implicitly then real not complex).
syms t A B f_0 n positive
Perform symbolic integration catching a symbolic expression.
f_1=f_0+int(A*t^n-B*t,t,0,t)
f_1 =
