Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(converting MATLAB script to Octave script) LaTeX rendering in output plot

I am in the process of converting a Matlab script to an Octave one. I have pretty much completed the task - however, I am having problems using a particular LaTeX command to print out correctly.

I changed the line in the m script from:

ylabel('Foobar $F=\frac{A}{B}$','Fontsize',20,'FontWeight','Bold','interpreter','latex');

To

ylabel('Foobar $F=\frac{A}{B}$','Fontsize',20,'FontWeight','Bold','interpreter','tex');

However, this does not render correctly (the original character display on the plot - complete with the format specifiers).

I don't understand why this is the case, since I am successfully using LaTeX commands in the same plot - and those work correctly.

Is there something wrong with the LaTeX commands above?. It is supposed to render as a fraction (A over B).

like image 940
Homunculus Reticulli Avatar asked Dec 03 '25 16:12

Homunculus Reticulli


1 Answers

The first command renders fine for me (using Matlab). The second does not.

Generally 'tex' expresses lower level concepts than 'latex'. This demonstrates that the frac construct is not available in the 'tex' interpreter.

like image 151
Pursuit Avatar answered Dec 06 '25 07:12

Pursuit