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
3
votes
1 answer

Katex rendering equations multiple times

I am using Docusaurus to generate a static website. I integrated katex using the official instructions (https://docusaurus.io/docs/next/markdown-features/math-equations). I want to render this: $$ \begin{aligned} \begin{split} u &=…
Leon Bohmann
  • 402
  • 1
  • 4
  • 16
3
votes
2 answers

Make new command in .ipynb markdown in VSCode

I am trying to create new commands for markdown in an ipython notebook file in VSCode, but am having trouble doing so This post shows an example which (kinda) works in jupyter notebook: $\newcommand{\vect}[1]{{\mathbf{\boldsymbol{{#1}}}}}$ This is…
Eknoma
  • 51
  • 3
3
votes
0 answers

adding latex rendering script to django-markdownx admin

I'm making a personal homepage with Django. I am using django-markdownx for the content of article model. In addition, Katex has been implemented to the project with lines of JS in the Django template HTML to render Latex. What I'm having a hard…
Chanwoo Ahn
  • 334
  • 2
  • 13
3
votes
1 answer

How to apply MathJax/KaTex to render a React component

I am making a web editor using React & SlateJS. There are LaTex code in the editor content and I want the user to see the rendered LaTex equations. MathJax and KaTex have auto-rendering feature by loading them as CDNs. Once they are loaded, the…
Xiaohui Liu
  • 51
  • 2
  • 6
3
votes
0 answers

How to use Katex auto-renderer in Angular Project? (v7)

I have a requirement to convert a paragraph that has markdowns and maths equations and display in browser. Markdown is working frine. For maths equation, I tried KaTex but could not figure out how to use it in my angular app. (v7) Here is stackblitz…
Raj
  • 1,100
  • 3
  • 20
  • 33
3
votes
3 answers

Running KaTeX on Jekyll?

Are a couple of days that I'm trying to use KaTeX instead of MathJax on my static Jekyll website. I tried a lot of suggestion found on internet without success. The last one is the jekyll-katex plugin. I followed all the steps in the readme. This is…
gvgramazio
  • 1,115
  • 3
  • 13
  • 30
3
votes
1 answer

vue-katex not rendering math and displaying large black box

I've just tried to use the vue-katex module https://www.npmjs.com/package/vue-katex. I set up a simple example using vue-cli $ vue init webpack-simple my-project And then I added the vue-katex package, added the few lines of code to put some KaTeX…
Gareth Williams
  • 242
  • 4
  • 10
3
votes
1 answer

React auto-render Math Latex

I recently upgraded to ReactJS for my web application. I've been using Angular with MathJax to auto-render math TeX on a page (every time the math changes on the page, MathJax goes through the page, finds the delimiters and renders the math in…
user3768533
  • 1,317
  • 2
  • 13
  • 21
3
votes
0 answers

superscript not shown in katex css

superscripts generated by katex are not shown properly. The style, while saved correctly in the database, is not shown in the show page but it is shown correctly in the edit action. In the simple function 3^5 the 5 in the show page is not…
Ayrad
  • 3,996
  • 8
  • 45
  • 86
3
votes
0 answers

katex, macros when using auto-render

I understand how to use macros with katex.render for on-the-fly rendering, but I can't figure out how to achieve that when using renderMathInElement. The code below doesn't work.