How to type 'U' like this? [duplicate]

I surf the net, but I can't find a clear example on how to type U like this. Could anyone show a related code example?

• I'd say that's \mathcal{U} with Palatino fonts (e.g. package newpxmath). Dec 16, 2021 at 12:30
• @campa Yeah! Thanks for your answer. It is the newpxmath package that works for me. There are so many packages in Latex, I am new to it so I don't load this but the default one before. Moreover, I still don't know how to type the font in the question I asked before, where I find the style I want. Still thanks for your reply again. It is helpful not just the abundant text left!!!! Dec 16, 2021 at 12:44
• In principle it's as simple as \usepackage[cal=mma]{mathalfa} and then \mathcal{...} but that's a commercial font, so it won't work unless you have it... Dec 16, 2021 at 12:49
• @campa So does this mean the newpxmath package contain the commercial font? Dec 16, 2021 at 14:23
• No, newpx is a free font. But the mma in your other question is commercial (I think; anyway it's not part of TeX Live). Dec 16, 2021 at 14:30