[英](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. 我正在将Matlab脚本转换为Octave脚本。 I have pretty much completed the task - however, I am having problems using a particular LaTeX command to print out correctly.
我已经完成了任务 - 但是,我在使用特定的LaTeX命令正确打印时遇到问题。
I changed the line in the m script from: 我改变了m脚本中的行:
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. 我不明白为什么会这样,因为我在同一个图中成功使用了LaTeX命令 - 而且这些命令正常工作。
Is there something wrong with the LaTeX commands above?. 上面的LaTeX命令有问题吗? It is supposed to render as a fraction (A over B).
它应该呈现为分数(A在B上)。
The first command renders fine for me (using Matlab). 第一个命令对我来说很好(使用Matlab)。 The second does not.
第二个没有。
Generally 'tex'
expresses lower level concepts than 'latex'
. 通常,
'tex'
表达的概念低于'latex'
。 This demonstrates that the frac
construct is not available in the 'tex'
interpreter. 这表明
'tex'
解释器中没有frac
结构。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.