Simulink: How to display italic text in mask using disp()
When editing the Matlab/Simulink mask code, you can display italic text by using disp()
with LaTeX commands and texmode
= on
.
Displaying just italic text
When using texmode
, you can use {\it ...}
to format text as italic.
disp("{\itTest text}", 'texmode', 'on')
Mixing italic with normal text
disp("This is{\it test} text", 'texmode', 'on')
Also see:
- Simulink: How to display bold text in mask using disp()
- Simulink: How to display small/large text in mask using disp() (change font size)
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow