1

I have LM fonts from gust.org.pl installed on my system, so I can access LM Roman/Sans/Mono, etc. in programs like LibreOffice Draw.

However, I cannot find a way to recreate the typical font one uses for set notation, the one with double stroke obtained with \mathbb{N} in LaTeX. I installed the file msbm10.pfb from the amsfonts package. Still no luck.

How could I achieve this? this question come close, but it is not what I am looking for.

Edit:

After installing latinmodern-math.otf from https://www.gust.org.pl/projects/e-foundry/lm-math, and attempting what I understood from @David's answer, I got results similar to the desired, but still incorrect.

This is what I get in LibreOffice Draw after inserting the character U+1D54A called "mathematical double-struck capital S" with Latin Modern Math font:

LibreOffice result for double-struck capital S

And this is the rendering that LaTeX produces with \mathbb{S}:

LaTeX rendering of mathbb S

They are clearly different.

  • Is U+1D54A the correct character?
  • I also cannot find (within LibreOffice) several characters on Latin Modern Math, like double-struck P, Q, R, and others.
  • The version of LM Math is 1.959, with a glyph count of 4802.
2
  • As far as I can tell, these characters are just from different fonts. The first is from Latin Modern Math. The second is from the AMS fonts. Aren't these just different styles of the same character?
    – cfr
    Commented Oct 7, 2023 at 4:38
  • The exact style of "blackboard bold" may vary; there are a number of different fonts that may qualify. The important features include the ability to distinguish the particular letter or digit unambiguously, and the doubling of strokes to emulate bold. Commented Oct 7, 2023 at 20:08

2 Answers 2

1

Use latin modern math https://www.gust.org.pl/projects/e-foundry/lm-math

Then use ℕℙℚℝℤ

4
  • I tried that, and typing "P" in my keyboard and I don't get the expected result. However, if I copy and paste (as plain text) the characters that you typed in this answer, I get the correct shapes. Are these characters different from normal uppercase characters?
    – onlycparra
    Commented May 10, 2023 at 1:09
  • 1
    Answering my own comment... Yes. They are. Thanks!
    – onlycparra
    Commented May 10, 2023 at 1:16
  • Upon closer inspection, I notice that I am again not getting the correct font. Please see the edition of my original question.
    – onlycparra
    Commented May 10, 2023 at 2:21
  • Is the 'incorrect' character shown in the updated question the expected output of \mathbb{S} when unicode-math is used with LuaTeX? Is that just the version of the character Latin Modern Math provides?
    – cfr
    Commented Oct 7, 2023 at 4:28
0

\mathbb is the macro of the package amsfonts. Therefore get and install AMSFonts (under the SIL Open Font License) in your operating system to use outside of LaTeX. However, the font format is very outdated, you need to convert to modern one. Some people converted them:

The correct Unicode for \mathbb{S} is U+1D54A "𝕊", as you mentioned, but the converted AMSFonts OTFs encoded them to U+0053 "S". Thus, some procedure will need to treat well.

Installing Latin Modern Math and msbm10, then

<!doctype html>
<html>
  <head>
    <meta charset="utf-8"/>
  </head>
  <body>
    <math display="block" style="font-family: 'Latin Modern Math';">
      <mi>x</mi><mo>∈</mo><mi mathvariant="normal" style="font-family: 'msbm10';">R</mi>
    </math>
  </body>
</html>

gives

x ∈ ℝ

on my macOS and Firefox.

LaTeX version:

\documentclass{article}
\usepackage{amsfonts}
\begin{document}
  \begin{displaymath}
    x \in \mathbb{R}
  \end{displaymath}
\end{document}

x ∈ ℝ

These look the same.

New Computer Modern (link1 link2, under GUST Font License version 1.0) has the right encoding for \mathbb fonts with Computer Modern, so the following gives the same appearance if you installed it:

<!doctype html>
<html>
  <head>
    <meta charset="utf-8"/>
    <style>
      math {
        font-family: "NewComputerModernMath";
      }
    </style>
  </head>
  <body>
    <math display="block">
      <mi>x</mi><mo>∈</mo><mi>ℝ</mi>
    </math>
  </body>
</html>

References:

  1. What font uses \mathbb?
1
  • 2
    NewCM (otf) has AMS mathbb letters at the correct Unicode points. Commented May 12 at 20:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .