Skip to content

Conversation

FrancoisCapon
Copy link
Contributor

Hi,

With my students we discovered that the former equation is not compatible with GitHub and KateX

GitHub

The following macros are not allowed: operatorname

Katex

auto-render.min.js:1 
 KaTeX auto-render: Failed to parse `
\operatorname{ker} f=\{g\in G:f(g)=e_{H}\}{\mbox{.}}
` with  ParseError: KaTeX parse error: Undefined control sequence: \mbox at position 45: …G:f(g)=e_{H}\}{\̲m̲b̲o̲x̲{.}}

@squidfunk
Copy link
Owner

Thanks for the PR. So you're proposing another example that works with both, MathJax and KaTeX, do I understand that correctly? Otherwise, I'm not sure why the entire formula was changed 😅

@alexvoss
Copy link
Collaborator

alexvoss commented Oct 8, 2024

Indeed, \mbox is not supported by KaTeX. The proposed formula works in the KaTeX sandbox on their website and on this MathJax sandbox.

@squidfunk
Copy link
Owner

Alright, let's use this one then.

@squidfunk squidfunk merged commit f0c99d8 into squidfunk:master Oct 8, 2024
@FrancoisCapon FrancoisCapon deleted the patch-1 branch November 6, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants