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

How can I make double bars align vertically over a variable in KaTeX? They are offset currently

First post! I am looking to figure out how to align multiple bars over variables in KaTeX. Currently, they are offset: double bars are offset This is the partial code where I am trying to implement the double bar: \$$\bar{\bar{X}}\$$
0
votes
1 answer

Equation rendering is not as expected

I'm playing around with equations, which I'm trying to render in LaTeX using KaTeX. I think I'm doing something wrong, because the HTML render is not like it is shown on the demo output on KaTeX website. For example, for the LaTeX…
Quentin S.
  • 328
  • 2
  • 16
0
votes
0 answers

JavaScript: avoid flickering when updating webpage via websockets

I am building a small web application, which includes a webpage that is updated regularly via a websocket. Each message is a string containing many HTML tags, including LaTeX code. The content of this string is put in a div container. Then I use…
Erich
  • 1,838
  • 16
  • 20
0
votes
1 answer

KaTeX is not rendering

I would really appreciate if someone could please take a look at my webpage and help me to figure out the reason why KaTeX does not render inline equations: https://vladivanov20.github.io/#!economics/cf.md Thank you!
0
votes
1 answer

Waiting for Jinja to fully finish rendering a page before executing a script

Is it possible to wait for Jinja2 to finish inserting all template elements before executing a certain script? I'm attempting to render some math using KaTeX on a page, that also contains a bunch of template blocks. However, the math is rendered…
sesodesa
  • 1,473
  • 2
  • 15
  • 24
0
votes
1 answer

Rendering math with KaTex

I download the latest katex build release here. I'm trying to integrate it into my electron project. As a beginner developer, I'm having trouble achieving what I want. The following code renders (one line of code) the string "c = \\pm\\sqrt{a^2 +…
0
votes
1 answer

External js for math mode in shiny tables

This questions is related to this one. EDIT I reformulated the question to reproduce the problem in more complex app. I'm trying to include math mode in tables. Solution of @Stéphane Laurent using katex in EDIT 2 works excellent. I edited the code…
Adela
  • 1,757
  • 19
  • 37
0
votes
0 answers

jQuery not finding a `span` element returned by Django

I'm having trouble using jQuery to retrieve a HTML string retuned by Django. In a Django template I have the line {{ generated_files.exercise_instructions.content | safe}} which when expanded contains the string 2. Määritä luvun
sesodesa
  • 1,473
  • 2
  • 15
  • 24
0
votes
1 answer

Why isn't jQuery finding the div containing display mathematics in this case

I'm attempting to construct a minimal working example of KaTeX rendering a bunch of math on a web page. I've put together the following HTML file for this purpose: $(".inline-math").each( function(element) { console.log("Rivimatikkaa: " +…
sesodesa
  • 1,473
  • 2
  • 15
  • 24
0
votes
1 answer

how to set the same height as the parent element

I would like to know to align the text in a p element to be vertically centered. Here is my code: p.task{font-family: Arial,Helvetica Neue,Helvetica,sans-serif; font-weight: 700; display: table-cell; vertical-align: middle;} span.label {float:…
user9226029
0
votes
1 answer

how to use katex macros in gitlab?

I just started using GitLab, and to avoid having the math and the code in different places, I would like to use the GitLab wiki to "store" the math. Writing the equation would be simpler if I had katex macros or definitions available. However, they…
slozano
  • 3
  • 4
0
votes
1 answer

\mathbf with greeksymbol is not working using katex

I would like to get the all the greeksymbols should be display with bold (and not bold-italic). But \mathversion{bold} and \mathversion{normal} is not working in KaTeX. How do configure to work \mathversion{bold} and \mathversion{normal}?
user49758
  • 51
  • 8
0
votes
2 answers

how to add css style to katex html

I'm using katex for math symbol in my html. The elements overflow form the parent div, When I'm adding style to the container div, overflow: hidden to parent div those elements not shown at all, it is possible to limit the size of the…
h.poe
  • 31
  • 5
0
votes
1 answer

how to bind an in an javascript to get mathematic formulas

I have an little problem to understand how i could implement an formula out of an existing KaTex Js file in an canvas element to get the same symbols as i get it with ...