Homunculus Reticulli
Homunculus Reticulli

Reputation: 68376

(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).

Upvotes: 3

Views: 411

Answers (1)

Pursuit
Pursuit

Reputation: 12345

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.

Upvotes: 1

Related Questions