dsfont

The dsfont extension implements the dsfont style package from LaTeX. See the dsfont CTAN page for more information and documentation.

This extension defines the following commands:

\mathds{math}

Typesets math using the dsfont blackboard-bold fonts.

The dsfonts come in two forms: serifed and san-serif; which one is used is determined by an option described :ref`below <tex-dsfont-options>`.

The normal version of these fonts is shown below:

The sans-serif version of these fonts is shown below:

This package is not autoloaded, so you must request it explicitly if you want to use it. To load the dsfont extension, add '[tex]/dsfont' to the load array of the loader block of your MathJax configuration, and add 'dsfont' to the packages array of the tex block.

window.MathJax = {
  loader: {load: ['[tex]/dsfont']},
  tex: {packages: {'[+]': ['dsfont']}}
};

Alternatively, use \require{dsfont} in a TeX expression to load it dynamically from within the math on the page, if the require extension is loaded.


dsfont Options

Adding the dsfont extension to the packages array defines an dsfont sub-block of the tex configuration block with the following values:

MathJax = {
  tex: {
    dsfont: {
      sans: false
    }
  }
};
sans: false

Determines whether the sans-serif font is used rather than the serifed version.


dsfont Commands

The dsfont extension implements the following macros: \mathds