The Question
Hi, I've recently decided to switch over to IBM Plex, and while computer modern is very nice, it doesn't go too well with Plex it seems, and I'm not sure what I can do with regards to maths fonts.
Edit: I'm using pdfLaTeX
I'm looking for either good alternatives from people who have seen / know more than me, and / or some way of finding out what's available. (Most of my google searches have returned results comparing \mathrm
etc.)
Demos
Plex Serif
Plex Sans
Best Answer
Thanks to @Ross showing me
mathastext
I reckon I've got a working solution.Solution
Math Symbols
In my opinion, fourier's symbols matches better stylistically, however I don't want to keep the font-related changes so I add it first (so that the other font packages overwrite that).
Math Font
I want to use a serif font for the math, so I add this after
fourier
so that it overwrites it, and beforemathastext
so that it's actually used for the mathsApply the font to math
mathastext
seems good, but to me it had a few issues when used without any options.mathastext
just grabbed the[]
characters used by the font, and didn't do anything to make them multiline. This was fixed by adding thebasic
option — though this also had the effect of no replacing a few other symbols (a worthwhile price in my mind)italic
symbolgreek
To solve the last issue I used another command, seen at the end of this mini-section.
Text Font
After the serif variant has been set to be used in math by
mathastext
I change to the sans font I want to use for the rest of the document.Spacing Issues
By default, the spacing was the same as italic/slanted text. Which is an issue for math because it can cause overlaps/cramping. To see this in action I drew vertical rules of width
0.1ex
with\hspace{-0.1ex}
after them, producing For most letters adding 0.5mu of space either side fixed things up, however letters with 'tails' required some extra attention. After some tweaking I managed to get this:While I wouldn't consider this 'fixed' it's better. This is the code used (sans):
And then for the serif version:
BeforeAfter
It's minor but it's an improvement
All together
Result
Serif
Sans
Mixed