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.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de En. de 2016
Editada: Walter Roberson el 9 de En. de 2016
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 comentarios

That worked! Thanks Walter!
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')

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 8 de En. de 2016

Comentada:

el 15 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by