TransWikia.com

Fakebold not working on mathbb fonts

TeX - LaTeX Asked by Masum on December 19, 2020

documentclass[a4paper, 12pt]{article}

usepackage{amsmath, amsthm, amssymb, amsfonts}
usepackage{fontspec}
setmainfont{latinmodern-math.otf}[FakeBold=4]

letmathbbaltmathbb
usepackage{unicode-math}
setmathfont{latinmodern-math.otf}[FakeBold=4]
letmathbbmathbbalt

begin{document}

    begin{align*}
        v & inmathbb{V}
        f & inmathbb{F}
    end{align*}

end{document}

This is the output.

Output

    documentclass[a4paper, 12pt]{article}

usepackage{amsmath, amsthm, amssymb, amsfonts}
usepackage{fontspec}
setmainfont{latinmodern-math.otf}[FakeBold=4]

%letmathbbaltmathbb
usepackage{unicode-math}
setmathfont{latinmodern-math.otf}[FakeBold=4]
%letmathbbmathbbalt

begin{document}

    begin{align*}
        v & inmathbb{V}
        f & inmathbb{F}
    end{align*}

end{document}

Here is the output without the let command. It is bolded but the font is not computer modern mathbb. I would like the computer modern mathbb font fakebolded

Here

One Answer

The problem is that you're loading amsfonts and amssymb.

With your let commands you're reverting to the blackboard bold letters from amsfonts that obviously don't respect the FakeBold=2 option.

documentclass[a4paper, 12pt]{article}

usepackage{amsmath, amsthm}
usepackage{fontspec}


usepackage{unicode-math}
setmathfont{NewCMMath-Regular.otf}[FakeBold=10]

begin{document}

begin{align*}
vinmathbb{V}
finmathbb{F}
end{align*}

end{document}

I used 10 in order to make the bolding more evident.

enter image description here

Here's the output with FakeBold=2:

enter image description here

In order to limit the bleeding from my eyes, here's the output without FakeBold:

enter image description here

Correct answer by egreg on December 19, 2020

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