Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
As part of my standard(ish) formatting principles, I like to use UniMath Prime (or another mathematical font, such as IBM Plex Serif or TeX Gyre Schola) to highlight variable/function names in Text Regions.
To make life simpler, because I'm inherently lazy and prefer to put less effort in than I need, I created a Text Style named Variable that allows me to select a variable or function name and apply an italic maths font to that name.
I want to use UniMath Prime for that font, but Mathcad's Text Style editor won't allow me to use it in any style.
UniMath Prime Bad.
Tec Gyre Schola Good
I'm not sure if this is a bug or deliberate, but it's a bug from my point of view, and I'd be grateful if PTC could fix it.
Stuart
I don't experience any problem defining that very style
Interesting, Thanks, Werner.
I wonder why I can't assign UniMath Prime to a Text Style? I get the same problem with trying to edit any Text Style to change the font to UniMath Prime.
Hmm. Give me a minute ...
Even more interesting. On my PC, at least, the UniMath Prime font is shown in the Mathcad font menu as being in the Ptc.Controls.Core DLL. It's not in the Windows Font folder.
AFAIAA, my Mathcad install went without a hitch, as did the licensing. Do you have the UniMath Prime font in your Windows Font folder? Should it be there?
Stuart
I have these in the Windows/Fonts directory:
Success!
Luc
Thanks, Luc.
Stuart
I’m afraid I accidentally marked your answer as the Solution - twice. I’m having a little finger trouble today.
AFAIAA, my Mathcad install went without a hitch, as did the licensing. Do you have the UniMath Prime font in your Windows Font folder? Should it be there?
"Ptc.Controls.Core;component..." does not show up for me in the font list in Prime.
In my Windows Font directory there are two pairs of fonts related to Mathcad/Prime. As you can see they aren't TrueType (ttf) but rather OpenType (otf) fonts.
I don't have "MathSoft Text Regular" as shown by Luc - guess this font belongs to MC11.
Thanks, Werner.
I’ve just rechecked my Windows Fonts folder, which includes all of the fonts I’ve recently installed, but no Mathcad* or *UniMath* fonts. A search of my entire C: drive was no more fruitful.
Nor are any of the Mathcad fonts visible in Character Map.
I’ve got a new install of Mathcad 10 under a fresh install of Windows 11 running on a Dell Precision 5540 (i7-9850H, 32 GiB RAM, 1TB PM981a NVMe SSD. Not that that’s likely to be of much relevance, but, like Zathras, just covering all possibilities).
Stuart
You could fire up a virtual machine and install Prime there and see if the font get installed. If yes you could copy them from he VM int your real machine.
Good idea. Certainly worth a try, Werner.
My main concern, apart from setting up an adequate VM or other “Windows” software, is that it won’t change the outcome. I don’t know why my MP10 installation didn’t copy the UniMath fonts to the Windows Fonts folder.
Stuart
Chances are that you'll never find out what exactly went wrong.
Best practice may be just to try to fix it.
@Werner_E wrote:
Chances are that you'll never find out what exactly went wrong.
Best practice may be just to try to fix it.
If it is a genuine problem with MP10 not installing the UniMath fonts, then the BugRep is also genuine and needs addressing. Although, I'd prefer it if PTC tried to replicate the problem, first!
That's annoying. The word "genuine" started the song "Alley Oop" running around my mind. https://de.wikipedia.org/wiki/Alley_Oop_(Comic)
@StuartBruff wrote:
@Werner_E wrote:
Chances are that you'll never find out what exactly went wrong.
Best practice may be just to try to fix it.
If it is a genuine problem with MP10 not installing the UniMath fonts, then the BugRep is also genuine and needs addressing. Although, I'd prefer it if PTC tried to replicate the problem, first!
That's annoying. The word "genuine" started the song "Alley Oop" running around my mind. https://de.wikipedia.org/wiki/Alley_Oop_(Comic)
So lets hope that Prime R&D catches up and notices this Bug report and acts accordingly ...
@StuartBruff - I do this as well, This doesn't answer your issue, but it is just as easy to insert a math region with <Ctrl><Shift>-M and type the name of your function/variable in it. Since it is a math region, it will match the formatting of your math equations. If you change the Math region default formatting, the text embedded variable with change with it. I started doing this years ago when I couldn't get super, sub-scripts in the text and never looked back.
@JeffH1 wrote:
@StuartBruff - I do this as well, This doesn't answer your issue, but it is just as easy to insert a math region with <Ctrl><Shift>-M and type the name of your function/variable in it. Since it is a math region, it will match the formatting of your math equations. If you change the Math region default formatting, the text embedded variable with change with it. I started doing this years ago when I couldn't get super, sub-scripts in the text and never looked back.
Nice one, Jeff.
I used to do that a lot, but the method had skipped entirely out of my memory and gone walkabout.
However, AFAICT, users can define their own Math ... sorry, Label Styles, so it's not possible to, for example, create a Matrix style and apply that to a variable name, whereas it can be done in a Text Style (for documentation purposes) - provided one has the Mathcad UniMath Prime font installed.
Swings and roundabouts as to whether text or math names are preferable in any given instance: it's easier to change the font size in a Text Box if everything is text, but it's easier to change Text and Math styles independently for mixed text/math.
Here's an example for other interested readers (Googling "mathematics fonts" turned up the fonts shown below, other than UniMath, and I found many of them on the Tec CTAN website) ...
It's hard to tell the difference:
It's difficult to decide which fonts to use when you're a member of the 29th/31st King's Own Perfectionists (Heavy Pedantry Troop).
I like the Mathcad UniMath Prime font, but its subscript alignment and sizing are slightly inconsistent.
Cambria is the best font that I've found for alignment and consistency and was allegedly designed as the serif counterpart to Calibri, but modern web designers turn their noses up at its archaic form and sniff in a most derogatory fashion when forced to gaze upon it ("It might have been good enough for teletype terminals and VGA, my dear boy, but heaven forfend that Cambria should pollute the pool of exquisite modern fonts on 5K monitor.").
Cambria Math is almost there: good alignment and consistency, but it's a slanted, not italic, font .... which is surprising given that it was designed for mathematics and italics (strongly) recommended for quantity names by many mathy journal style guides (eg, IEEE and AMS (the AMS guide tells editors to convert slant to italic).
Still, if Donald Knuth thinks the Tec Gyre fonts are fine for mathematics, who am I to argue?
Stuart