How to simultaneously bold and italic the label of matlab? Especially for label interpreted by latex.

20 ビュー (過去 30 日間)
I have tried the \bf\it, but the label presents only Italic effect. Hope someone can solve my question!
  2 件のコメント
Jan
Jan 2018 年 11 月 21 日
編集済み: Jan 2018 年 11 月 21 日
Please post the complete line of code. "tried the \bf\it" is not clear. Which "label of Matlab" is meant?
xinghua liu
xinghua liu 2018 年 11 月 21 日
Thanks for your attention! I have solved this problem. The matlab code is attatched below.
"zlabel('$p(\textbf{\emph z}^A_1|\textbf{\emph p})$','interpreter', 'latex')"
The expected figure is also uploaded.

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2018 年 11 月 21 日
編集済み: Jan 2018 年 11 月 21 日
If you mean the X-lable of an axes, this works in the current version:
xlabel('\it{\bf{bold+cursive}} \it{Only cursive}')
or
xlabel('normal \it\bf{bold+cursive}')
ylabel('normal \it\bfbold+cursive')

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by