Is there an alternative to \normalcolor that I can use in MathJax? - mathjax

\normalcolor does not seem to work on my MathJax code. MathJax doesn't seem to support it.
Is there an alternative command that I can use?

Related

How does the Grammarly chrome extension work

I was wondering how the Grammarly extension is able to underline the words in almost any editor (tinyMCE, CKE etc). I thought they are doing that via CSS but it's not.
I am trying to implement something similar and am very thankful for any advice.
Best

converting KaTeX to MathJax

Is there currently any way in javascript to convert a KaTeX formular to MathJax, I want to support exporting to Anki which just works with MathJax.
If not, is there a table which shows which commands of KaTeX are not supported in MathJax, I can't seem to find one.
I just need the conversion from KaTeX to MathJax, not the other way around
A workaround might be the new addon for anki that supports katex. I'm not ready to use it yet (there appears to be some bugs with line-breaking. See comments on the link).
https://ankiweb.net/shared/info/1087328706
I have the same use case as you. I write markdown and katex in vscode (with Markdown+Math extension), and export to anki (using ankdown - slightly modified).
I find that sometimes mathjax causes problems - for example with tags.

How to do a bold 1 (\mathbbm{1}) in MathJax

I'm looking for blackboard bold numerals in LaTeX displayed with MathJax.
It seems that the \mathbbm command is not (yet) available from MathJax (as said in the documentation).
Is there anyway to have support for the \mathbbm command, e.g., to have nice bold 1 ?
I tried to load an extension, or trick from this question, but nothing works.
Here is an example showing the failure: with makebigmaths.
It seems to be a known and old issue of MathJax, coming from a font limitation.
And no third party extensions seem to solve it.
However, Jupyter notebooks supports it in its Markdown cells.
You can use Unicode characters directly, e.g., 𝟙, or via the non-standard macro \unicode{x1D7D9}.
Both of these can be used in macro definitions as well, cf. http://docs.mathjax.org/en/latest/tex.html#defining-tex-macros.
One can use \Bbb instead of \mathbbm which is mentioned under "Font control" in the current documentation. Judging by the question Obsolete command \Bbb, it is an obsolete TeX command.
I use \Bbb in an align environment using MathJax version 3.2.2 for doxygen.

Vim syntax file for TYPO3 Fluid templates

Where can I find a Vim syntax file for TYPO3 Fluid Templates? If it doesn't exist what syntax file could be used as example to create one?
OK, I created vim-fluid, a Vim plugin for the Fluid Template Engine offering indention and syntax highlighting for fluid code together with plain HTML and JavaScript and CSS code. It's working for me.
I have not found one for Fluid templates. However, as the file extension is html, I think the easiest way to include Fluid Regions would be to use the html syntax file. If I find the time, I'll give it a shot.
Even though you did not ask, this is what I use for typoscript:
https://github.com/elmar-hinz/vim.typoscript
The syntax highlighting for fluid looks like this for me:
So the only two things I really miss are an autoformatter that respects fluid tags as well as a fluid inline syntax highlighter. Otherwise it's quite neat already. Looking forward to other answers.

Macros in MathJaX

I would like to add some macros in my MathJax configuration. Specifically I would like to add:
\arcsin and be displayed as {\rm arcsin}
\arccos and be displayed as {\rm arccos}
\arctan and be displayed as {\rm arctan}
\arccot and be displayed as {\rm arccot}
I have read the MathJaX documentation and although I think that I do the steps right, I end up with either the MathJaX not working properly or not loaded at all. By the way, why are these commands not supported at all? I think they should. Is there a specific reason?
How can I add these macros in my configuration?
MathJax 3 supports all the commands you mentioned (\arcsin, \arccos, \arctan and \arccot) so you don't have to create macros for them. For \arccot, the physics extension must be loaded.

Resources