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

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
user49915
Posts: 47
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

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{standalone}
  2. \usepackage{unicode-math}
  3. \setmathfont{TeX Gyre Termes Math}
  4. %\setmathfont[BoldFont=XITSMath-Bold.otf]{XITSMath-Regular.otf}%%% Same effect
  5. \begin{document}
  6. \(:\symbf{:}\mathbf{:}{\boldmath :}\)
  7. \end{document}


to xelatex gives us
file.jpg
::::
file.jpg (5.29 KiB) Viewed 136 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: 636
Joined: Tue Mar 25, 2008 5:02 pm

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:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{standalone}
  2. \usepackage{amsmath}
  3. \begin{document}
  4. \(:\mathbf{:}\boldsymbol{:}\)\boldmath{\(:\)}
  5. \end{document}

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

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: 636
Joined: Tue Mar 25, 2008 5:02 pm

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

Does txfonts work?


Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 1 guest