A MathJax v3 extension that adds a \num command for printing a localized decimal marker.
npm install @innodoc/mathjax-num> A MathJax v3 extension that adds a \num command for printing a localized decimal marker.


Enable the extension by
configuring MathJax
appropriately, e.g.:
``js`
MathJax = {
loader: {
load: '[mathjaxnum]/num.min.js'],
paths: {
mathjaxnum: 'https://cdn.jsdelivr.net/npm/@innodoc/mathjax-num@latest/dist',
},
},
tex: {
packages: {
'[+]': ['num'],
},
},
};
\num{3.5} (also \num{3,5}) can be used to render a decimal number with alang
localized decimal separator. The separator is determined by the html
attribute.
Also, it is possible to output only the localized decimal marker by using the
\decmarker` command.
MIT