For the FrameLabel, I have:
Style["\[NumberSign] Humans per city", FontFamily -> "Latin Modern Math"]
How can I make only "Humans" in the label to be italic?
Something like this might work:
Row[
{"\[NumberSign] ", Style["Humans", FontSlant -> Italic], " per city"},
BaseStyle -> {FontFamily -> "Latin Modern Math"}]
If you don't want to insert your own spaces, you can add a spacer argument to Row:
Row[
{"\[NumberSign]", Style["Humans", FontSlant -> Italic], "per city"},
" ",
BaseStyle -> {FontFamily -> "Latin Modern Math"}]
Select "Humans" and press Ctrl-I (or Command-I on macOS) to format it in italics. This is by far the simplest way.
Note that Latin Modern Math is intended only for math, not text, and does not have an italics version. Your OS will likely fake the italics style by simply slanting letters. Install Latin Modern Roman instead to get proper italics.
Illustration:
lmodern
package. In math mode, lmodern
uses the "Math" variant. In text mode, the "Roman" variant. How these actually show up in Mathematica depends on your system, ...
$\endgroup$
As per WReach
Style[
StringJoin["\[NumberSign] ",
ToString[Style["Humans", Italic], StandardForm], " per city"],
FontFamily -> "Latin Modern Math"]
# Humans per city