LaTeX forum ⇒ XeTeXHow to get a bold math colon :?

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

How to get a bold math colon :?

Postby user49915 » Wed Oct 09, 2019 8:01 pm

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
::::
file.jpg (5.29 KiB) Viewed 6180 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?)

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
kaiserkarl13
Posts: 673
Joined: Tue Mar 25, 2008 5:02 pm

How to get a bold math colon :?

Postby kaiserkarl13 » Sat Oct 12, 2019 5:52 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: 81
Joined: Wed Apr 17, 2019 12:51 pm

How to get a bold math colon :?

Postby user49915 » Sun Oct 13, 2019 2:05 am

kaiserkarl13 wrote:but your math font doesn't

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

kaiserkarl13
Posts: 673
Joined: Tue Mar 25, 2008 5:02 pm

How to get a bold math colon :?

Postby kaiserkarl13 » Sun Oct 13, 2019 7:32 am

Does txfonts work?

user49915
Posts: 81
Joined: Wed Apr 17, 2019 12:51 pm

How to get a bold math colon :?

Postby user49915 » Thu Oct 31, 2019 12:04 pm

kaiserkarl13 wrote:Does txfonts work?

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


Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 1 guest