MATLAB 中如何使希腊字符和常规文本在 Tex 标记中具有相同的字体粗细?

13 visualizzazioni (ultimi 30 giorni)
MathWorks Support Team
MathWorks Support Team il 22 Nov 2019
我用 text 函数来标记绘图上的点。其中混合了希腊字符和常规文本,但是希腊字符看起来比其他文本略浅。如何使所有字符看起来都具有相同的字体粗细?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 12 Set 2021
Modificato: MathWorks Support Team il 30 Dic 2021
希腊字母以不同的字体样式显示,因此我们希望它们看起来略有不同。同时,我们提供以下几种使希腊字符和常规文本看起来更相似的方法:
1. 使用 LaTeX interpreter,从而,所有文字都通过 LaTeX 字体显示,参考:
https://www.mathworks.com/help/matlab/creating_plots/greek-letters-and-special-characters-in-graph-text.html#mw_f46705d3-cc38-4f7e-b947-992866f293cc
此时要将“需要解释为公式”的内容,用$$标注
2. 将 text 函数分两次执行,首先将希腊字符显示为粗体,然后将其他文字显示为非粗体:
>> text( 0.5, 0.5, '\bf\alpha');
>> text( 0.55, 0.5, ' name');
3. 另一个方法是更改常规文本的字体样式,您可以使用“ \fontname{}”来修饰
>> text( 0.55, 0.5, '\fontname{Times New Roman} name');

Più risposte (0)

Categorie

Scopri di più su 标签和注释 in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!