How to add a title with mixed italic and normal text with Tex interpreter?

17 次查看(过去 30 天)
figure()
title({strcat("\it{Italic title part 1} ","and ","\it{Italic title part 2}"),""}, 'Interpreter', 'tex')
% Note that { ... ,""} is for having a new line after the title
Why "and" is in italics? how can I make it normal (not in italics and bold)?

采纳的回答

Stephen23
Stephen23 2025-5-12
编辑:Stephen23 2025-5-12
There might be better ways, but this seems to work:
title("\it Italic title part 1 \rm\bf and \it Italic title part 2", 'Interpreter', 'tex')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Title 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by