.. _tex-dsfont: ###### 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: .. describe:: \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 `. .. raw:: html

The normal version of these fonts is shown below:

.. raw:: html

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 :data:`load` array of the :data:`loader` block of your MathJax configuration, and add ``'dsfont'`` to the :data:`packages` array of the :data:`tex` block. .. code-block:: javascript 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 :ref:`tex-require` extension is loaded. ----- .. _tex-dsfont-options: dsfont Options -------------- Adding the `dsfont` extension to the :data:`packages` array defines an :data:`dsfont` sub-block of the :data:`tex` configuration block with the following values: .. code-block:: javascript MathJax = { tex: { dsfont: { sans: false } } }; .. _tex-dsfont-sans: .. describe:: sans: false Determines whether the sans-serif font is used rather than the serifed version. ----- .. _tex-dsfont-commands: dsfont Commands --------------- The `dsfont` extension implements the following macros: ``\mathds`` |-----|