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

조회 수: 14 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by