What is the "Title" syntax for 2 different font types in one title?

I have this as my title for a plot: title({'\it Myotis ciliolabrum - Western small-footed myotis'}); However, I would like everything to the right of the hyphen to be normal font as opposed to italics for the text to the left of the hyphen. How would I do this? Thanks in advance for the help.

 Accepted Answer

title({'{\itMyotis ciliolabrum} - Western small-footed myotis'})
Alternately,
title({'\textit{Myotis ciliolabrum} - Western small-footed myotis'}, 'interpreter', 'latex')
apparently this form is recommended over {\it ...}

3 Comments

Walter,
How would I add 'fontsize' to this expression? I have tried quite a few things and I'm not sure what is wrong.
Here's what I have: title('\fontsize{15},{'\textit{Myotis ciliolabrum} - Western small-footed myotis'}', 'interpreter', 'latex')
Thanks in advance for the help.
Alan
title('\fontsize{15}{0}\textit{Myotis ciliolabrum} - Western small-footed myotis', 'interpreter', 'latex')
or more robustly
>> title('\fontsize{15}{0}{\textit{Myotis ciliolabrum} - Western small-footed myotis}', 'interpreter', 'latex')

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!