LaTeX forum ⇒ XeTeX ⇒ How to get a bold math colon :?

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
user49915
Posts: 76
Joined: Wed Apr 17, 2019 12:51 pm

How to get a bold math colon :?

Feeding

\documentclass{standalone}\usepackage{unicode-math}\setmathfont{TeX Gyre Termes Math}%\setmathfont[BoldFont=XITSMath-Bold.otf]{XITSMath-Regular.otf}%%% Same effect\begin{document}$$:\symbf{:}\mathbf{:}{\boldmath :}$$\end{document}

to xelatex gives us
::::
file.jpg (5.29 KiB) Viewed 2121 times

As you see, all four colons are completely the same up to the amount of horizontal white space in between. Any way to get a bold colon in math mode? (Of course I know you can do it with \textbf{:} inside math, but is there a possibility not to escape into text mode?)

kaiserkarl13
Posts: 649
Joined: Tue Mar 25, 2008 5:02 pm
This is because of the unicode-math package. I think it's because the font doesn't include it, and unicode-math doesn't let TeX fake it. The following code does work, but your math font doesn't:
\documentclass{standalone}\usepackage{amsmath}\begin{document}$$:\mathbf{:}\boldsymbol{:}$$\boldmath{$$:$$}\end{document}

user49915
Posts: 76
Joined: Wed Apr 17, 2019 12:51 pm
kaiserkarl13 wrote:but your math font doesn't

Thx! Any other Times-clone for maths for xetex/lualatex, perhaps?

kaiserkarl13
Posts: 649
Joined: Tue Mar 25, 2008 5:02 pm
Does txfonts work?

user49915
Posts: 76
Joined: Wed Apr 17, 2019 12:51 pm
kaiserkarl13 wrote:Does txfonts work?

txfonts is not an OpenType font and quite dated...

Who is online

Users browsing this forum: No registered users and 2 guests