XeTeXHow to get a bold math colon :?

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

How to get a bold math colon :?

Post by user49915 »

Feeding

Code: Select all

\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 17664 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 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

How to get a bold math colon :?

Post by kaiserkarl13 »

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:

Code: Select all

\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 :?

Post by user49915 »

kaiserkarl13 wrote:but your math font doesn't
Thx! Any other Times-clone for maths for xetex/lualatex, perhaps?
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

How to get a bold math colon :?

Post by kaiserkarl13 »

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

How to get a bold math colon :?

Post by user49915 »

kaiserkarl13 wrote:Does txfonts work?
txfonts is not an OpenType font and quite dated...
Post Reply