TransWikia.com

How do I write a cursive U in math mode for uncertainty sets?

TeX - LaTeX Asked by Rubikkon on July 8, 2021

enter image description here

I can find fancier cursive U’s, but I can’t find this exact one. mathcal{U} wasn’t just right.

3 Answers

If you’re using LuaLaTeX or XeLaTeX, you want to load unicode-math and a math font of your choice. The default Latin Modern Math mathcal is pretty close in that specimen sheet, but you could use, for example, the mathcal from STIX Two Math with:

setmathfont{Latin Modern Math}
setmathfont{STIX Two Math}[
   range={cal,bfcal},
   Scale=MatchUppercase ]

There’s a more complete list of OpenType math fonts that you can try on this site.

With PDFTeX, the best way to change supplementary math alphabets is mathalpha. The manual has a comprehensive set of specimens, but you might try

usepackage[cal=esstix]{mathalpha}

with a calscaled= parameter if you need to adjust the size.

Answered by Davislor on July 8, 2021

If you are using OpTeX, then load appropriate Unicode font family and use {cal U} or directly ?. For example:

fontfam[lmfonts]

... subject to $f_i(x,u)le 0$ for $uin{cal U}$, $i=1,dots,m$.

or

... subject to $f_i(x,u) ≤ 0$ for $u ∈ ?$, $i = 1,dots, m$.

bye

Answered by wipet on July 8, 2021

Off-topic...I think..But if you want to create your image in LaTeX code you can use optidef package that it is specific.

documentclass[12pt]{article}
usepackage{amsmath,amssymb}
usepackage{optidef}

begin{document}
begin{mini}<b>
{}{f_0(x)}{}{}
addConstraint {f_i(x,u)}{le 0text{ for all } uinmathcal{U},,}{i=1,ldots,m}
end{mini}
end{document}

enter image description here

Answered by Sebastiano on July 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP