Questions tagged [katex]

KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. KaTeX supports all major browsers, including Chrome, Safari, Firefox, Opera, and IE 8 - IE 11.

KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. KaTeX supports all major browsers, including Chrome, Safari, Firefox, Opera, and IE 8 - IE 11.

Useful Links

180 questions
2
votes
1 answer

LaTeX commands to type > (greater than) and < (less than) in KaTeX

Youtrack and many other web apps use KaTeX to render mathematical notation and markdown for all other things. However markdown parser treats certain characters in a special way and interferes with KaTeX. For example the following…
Dima Chubarov
  • 16,199
  • 6
  • 40
  • 76
2
votes
1 answer

How to use regex to find in between words and spaces?

I'm so frustrated and lost. I would really appreciate your help here. I'm trying to fix an issue in Katex and Guppy keyboard. I'm trying to generate a regex to find between the word matrix and find the slash that has spaces before and after and…
timmyx
  • 166
  • 9
2
votes
2 answers

Latex equation does not properly split in quarto

Goal To render a long latex equation in two lines in quarto YAML --- title: "ABC" description: "XYZ" format: html: page-layout: full toc-location: left html-math-method: katex --- Attempts The attempts and renders are as…
umair durrani
  • 5,597
  • 8
  • 45
  • 85
2
votes
1 answer

render math equations in vue

Math equations are not rendered the way it should be when fetched from database in vue. Its happening in chrome but working fine in firefox. Like this - In chrome: In firefox: Through some research I found that some third party libraries are there…
alprazolam
  • 111
  • 1
  • 14
2
votes
1 answer

\usepackage fails in VsCode Jupyter Notebook: Katex parse error undefined control sequence

I want to usepackage{amsmath} so I can get access to various features in my markdown. When I put $$\usepackage{amsmath}$$ in a markdown cell and try to display it, it says: ParseError: KaTeX parse error: Undefined control sequence: \usepackage at…
Ben G
  • 26,091
  • 34
  • 103
  • 170
2
votes
0 answers

Mathjax vs Katex

I would like to write a small web application to host a bunch of math questions for my students. It appears that MathJax and Katex are two of the most popular libraries for doing this. I have read a few articles comparing the two, but they are…
Andrew Einhorn
  • 741
  • 8
  • 23
2
votes
1 answer

Katex showing duplicate equations

I am currently using Jekyll to render markdown to html which uses Katex for math equations. I have the following lines in the markdown file $$ \begin{align} A & = \frac{\pi r^2}{2} \\ & = \frac{1}{2} \pi r^2 \end{align} $$ $$ e = mc^2 $$ And…
milkyway42
  • 144
  • 1
  • 6
2
votes
1 answer

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…
Paul Müller
  • 103
  • 8
2
votes
1 answer

How to get a heart filled of black color in katex?

What I know/I tried so far: \spadesuit or \spades renders spade with filled black color. Similarly, \clubs or \clubsuit renders club with filled black color. Now \hearts or \heartsuit just renders heart with white filled bg. \colorbox treats…
JustCurious
  • 344
  • 5
  • 15
2
votes
0 answers

Katex auto rendering not working in a Vue project

I'm trying to implement this Katex auto-rendering extension: https://katex.org/docs/autorender.html, it looks for specific delimiters to find katex strings and renders them in the HTML. I've followed the instructions and added the CDN to the header…
averageUsername123
  • 725
  • 2
  • 10
  • 22
2
votes
1 answer

Why KaTeX is not loaded locally?

I can't setup KaTeX. It works if I load KaTeX remotely, but it refuses to work locally. Here is my code: