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
19
votes
4 answers

How can I render all inline formulas in $..$ with KaTeX?

So I want to have KaTeX inline formulas like with MathJax. But so far I've found only render() function which "draws" a string to an element. And I need to modify a part of a text node in DOM. I really couldn't find how to do this with KaTeX. Does…
Sergey
  • 19,487
  • 13
  • 44
  • 68
11
votes
2 answers

compare performance MathJax vs MathQuill vs Katex

I'm looking for the fastest way to create formules inside a web page. I thought I found the solution on jsperf in which MathQuill is by far the quickest. After I studied the tests a bit I noticed that the test for MathQuill runs in sync-mode, but it…
Jeanluca Scaljeri
  • 26,343
  • 56
  • 205
  • 333
10
votes
2 answers

Inline LaTeX equations in shiny app with MathJax

A solution to display LaTeX equations in line is offered here with a working live demo The above mentioned solution to display equations in line is (cutting a few lines of code): ui.R: library(shiny) shinyUI(fluidPage( title = 'MathJax Examples…
tic-toc-choc
  • 815
  • 11
  • 26
7
votes
1 answer

How can I create a line break in Katex?

I am trying to test rendering of katex on my browser. It renders correctly, but when I try using \newline to signal a line break, it throws me an error: ParseError: KaTeX parse error: Expected 'EOF', got '\newline' at position 45:…
AllocSystems
  • 1,049
  • 2
  • 11
  • 16
6
votes
2 answers

KaTex support in Rocket Chat

I feel almost stupid to ask this, but how does one enable KaTeX support in Rocket.Chat? I'm using this application in a constructive way to share some math expressions for study with my friends. What I tried so far: Going through all of the…
Quasar
  • 501
  • 4
  • 16
5
votes
2 answers

KaTeX does not render

I feel almost stupid to ask this, but I can't get KaTeX to work on even the most minimal example:
Philipp Wacker
  • 253
  • 2
  • 7
5
votes
2 answers

KaTeX font size

The function support page of KaTeX states that the dimension of KaTeX units used for font dimensions are computed with respect to the surrounding HTML text. In particular, it states that G = 1.21 by default, because KaTeX font-size is normally 1.21…
gvgramazio
  • 1,115
  • 3
  • 13
  • 30
4
votes
1 answer

GitLab stops rendering in-text LaTeX for markdown files after 50 occurrences

I have been using GitLab's LaTeX rendering feature in Markdown, and enjoy it tremendously. That being said, I have found that there is an upper limit to the number of in-text latex references. After exactly 50 occurrences on one page, rendering will…
4
votes
0 answers

Cannot render LaTeX in VScode Jupyter Notebook

I have homework in VScode Jupyter Notebook but I get a lot of ParseError in it when displaying the LateX. The error is ParseError: kaTeX parse error:Undefined control sequence. for example one of the Markdown cells…
4
votes
0 answers

How to dynamically render TeX equations in input text field in Flutter?

TL;DR I need to render LaTeX equations in a Flutter text input field while the user is typing The Goal I am currently working on a Flutter project for both web/desktop where I need to be able to render LaTeX/TeX equations in an input field while the…
4
votes
2 answers

How to use markdown syntax to write math in Hugo?

I am new to Hugo, or any web development. I want to build a personal site to share my math notes, which are written in markdown. Precisely, I use the template hugo-book. But I find it does not support the math mode in markdown, i.e. it does not work…
User X
  • 141
  • 1
  • 5
4
votes
0 answers

How to display beautiful math equations in p5.js?

Is there an easy way of rendering LaTeX equations in p5.js? I naively tried to use KaTeX by including their auto-render starting template in the index.html of a p5.js editor template and then writing an "equation" like text("$$\\epsilon = 0.4$$",…
Malte
  • 556
  • 5
  • 11
4
votes
4 answers

using katex, '&' alignment symbol displays as 'amp;'

I am using katex to render math. https://github.com/Khan/KaTeX Generally, to get this to work I link to the files katex.min.js and katex.min.css from a cdn, which is one of the ways the directions suggest. I wrap what needs to be rendered in tags…
dactyrafficle
  • 838
  • 8
  • 18
4
votes
1 answer

How to box a formula in KaTex?

This question is similar to 6yrs old MathJax question; How to box a formula in MathJax? How to achieve \boxed{...} with KaTex? The intented output is as below; KaTex code shows some amsmath translations in environments.js, but they are just 1:1…
Youngjae
  • 24,352
  • 18
  • 113
  • 198
4
votes
1 answer

KaTeX with bookdown + gitbook

I am building a bookdown project and rendering it as a gitbook with numerous pages of math and it is rendering sluggishly. I would like to use KaTeX instead of mathJax to render my math but I'm not sure how to get it working. There is a gitbook…
Johan Larsson
  • 3,496
  • 18
  • 34
1
2 3
11 12