How to italicize a portion of a plot label while keeping the sans-serif font?
Hi, currently I have this:
I would only like a portion of a label, say c/R_p [-], to be italicized.
This is what I do to get the above upper x-label:
xlabel(ax2, ‘{fontfamily{cmss}selectfont Chord $mathsf{c/R_p} , textsf[-]$}’, ‘Interpreter’, ‘latex’);
I tried combining mathsf with mathit, but, depending on who I use first, either I get no italics or I get italics but in the standard latex font (hence, I lose sans-serif).
I know this can be done somehow, as here they managed to do it:
Thanks for your help!Hi, currently I have this:
I would only like a portion of a label, say c/R_p [-], to be italicized.
This is what I do to get the above upper x-label:
xlabel(ax2, ‘{fontfamily{cmss}selectfont Chord $mathsf{c/R_p} , textsf[-]$}’, ‘Interpreter’, ‘latex’);
I tried combining mathsf with mathit, but, depending on who I use first, either I get no italics or I get italics but in the standard latex font (hence, I lose sans-serif).
I know this can be done somehow, as here they managed to do it:
Thanks for your help! Hi, currently I have this:
I would only like a portion of a label, say c/R_p [-], to be italicized.
This is what I do to get the above upper x-label:
xlabel(ax2, ‘{fontfamily{cmss}selectfont Chord $mathsf{c/R_p} , textsf[-]$}’, ‘Interpreter’, ‘latex’);
I tried combining mathsf with mathit, but, depending on who I use first, either I get no italics or I get italics but in the standard latex font (hence, I lose sans-serif).
I know this can be done somehow, as here they managed to do it:
Thanks for your help! plot, font, latex, label, mathsf, mathit, sans-serif, italics MATLAB Answers — New Questions