I'm labeling one of my axis in a plot as "# of humans":
Style["# of humans", FontFamily -> "Latin Modern Math"]
"#" appears somehow like a square. How can I make it exactly as it appears in this text: "#"?
I'm labeling one of my axis in a plot as "# of humans":
Style["# of humans", FontFamily -> "Latin Modern Math"]
"#" appears somehow like a square. How can I make it exactly as it appears in this text: "#"?
I found this symbol in Mathematica. You can use the following.
Style["\[NumberSign] of humans", FontFamily -> "Latin Modern Math"]

ok, you can try
<< MaTeX`
Style[MaTeX["\\text{\# of humans}", Magnification -> 2]]

how can I just use this font for # and use my own font for humans?
You could combine them both. Use Matex only for "#" and everything else use normal Mathematica style
myNiceHash = MaTeX["\\text{\#}", Magnification -> 1.5];
Row[{myNiceHash, Style[" of humans", FontFamily -> "Latin Modern Math"]}]

Compare to
Style["# of humans", FontFamily -> "Latin Modern Math"]

"# of humans", and just literally select the#and Command-I (or however you want to perform the action to italicize it). You can do this inside the Style directly, or you can save it for re-use:label = "# of humans"(where the "#" has been italicized). – lericr Nov 02 '22 at 17:21