Skip to main content

Questions tagged [katex]

KaTeX is a Javascript-based math rendering library for the web. It allows LaTeX commands as input which are then rendered similar to the way LaTeX itself does it. Note that questions dealing with installation of KaTeX, how it works, or rendering problems are widely considered to be off topic and are at risk of being closed. These questions can be asked on Stack Overflow (https://stackoverflow.com) instead.

Filter by
Sorted by
Tagged with
1 vote
0 answers
25 views

Looping macro in KaTex/GitLab README.md [closed]

I feel very silly for asking such a simple question but I'm trying to define a macro which can be used in a GitLab README.md which would be called like \foo{1,2,3}{4,5,6} and result in: {1 \atop \fbox{...
BreakfastScience's user avatar
-1 votes
1 answer
212 views

How do I write the % symbol in KaTeX (in Notion)? [closed]

I tried using backslash but it still just appears as a comment instead of a percent sign, and the same happens for '\qty{70}{%}' or '\qty{70}{\percent}', along with an "Undefined control sequence:...
Ridhima Sunkavilli's user avatar
0 votes
0 answers
252 views

How can I make rendered expressions by KaTex on a p5.js canvas show on downloaded images?

I am trying to render LaTeX-Expressions with KaTeX on a p5.js canvas in order to export them together with the canvas as a png and use that elsewhere. The expressions render just fine, but when I ...
pana pana's user avatar
0 votes
1 answer
1k views

Central superscripts and subscripts with any letter or symbol

I'm trying to write the following in Notion (using KaTeX library): The closest thing I've got is with this code: L_{DNI} = \left( \text{U}_{i=1}^{8} \right) L_A I would like to do the same with ...
Yerasito's user avatar
1 vote
1 answer
53 views

Is there any problem to add a super big number after `\alignat` in ams package? [closed]

In the official document, alignat is followed by the total of "right column and left column" pairs. Here is an examaple of alignat in the document. \begin{alignat}{2} x& = y_1-y_2+y_3-...
IvanaGyro's user avatar
  • 113
5 votes
2 answers
4k views

What's the difference between different LaTeX versions like LiveTex, KaTex MacTex etc?

What's the difference between different LaTeX versions like TeX Live, KaTex Mac TeX etc? There are so many of them but I don't really see a difference.
John's user avatar
  • 185
0 votes
2 answers
154 views

What happened to my underset?

\hat{y} = \hat{f}(x) = \overset{C}{argmax}\underset{c=1}\> p(y = c|x, D) produces this: How can I use \underset to get c=1 under argmax?
Ben's user avatar
  • 3
0 votes
0 answers
475 views

Double perpendicular symbol in *KaTex* for notion

This is for notion KaTex backend for math formulas. I'm aware of the question double perpendicular symbol (for independence) or others solutions for latex. But as notion does not support explicit ...
zsbeta's user avatar
  • 1
0 votes
0 answers
790 views

jupyter-notebook - Wrap text inside align-environment

The following is a snippet from a jupyter-notebooks' markdown cell. $$ \begin{aligned} \mathrm{d}J & = \mathrm{tr}(\frac{\mathrm{d}J}{\mathrm{d}\mathbf{A}^{[3]}} \frac{\mathrm{d}\mathbf{A}^{[3]}}{\...
x.projekt's user avatar
  • 101
1 vote
1 answer
119 views

Is it possible to add a background color just to an accent?

For something like \hat{w} or \vec{v} is it possible to set the background color for just the accent, i.e., the background of w and v would be normal, but the circumflex and vector symbol would be ...
Rax Adaam's user avatar
  • 1,787
1 vote
1 answer
755 views

How do I negate fractions and whole equations [duplicate]

If I'm trying to negate \frac{1}{4} or just whole equations how do I do that? I've tried searching through questions and there are just awnsers on how you do it with symbols like: \neq, \not (etc).
Odysseus101's user avatar
0 votes
1 answer
287 views

Does anyone use Madoko to write LaTeX documents or this is an "evolutionary" impass

I've stumbled upon Madoko that merges markdown and LaTeX features into a kind of markdown syntax beefed up with $\LaTeX$ superpowers for maths, structuring, x-references, bibliography, etc. I am ...
Samusz's user avatar
  • 13
2 votes
1 answer
139 views

Macro for removing font changes that returns number in default font in KaTeX

So this question explains why \mathnormal doesn't actually return numbers in the default font, but doesn't offer any solution for achieving this. I'm working with KaTeX and have a set of macros for ...
Rax Adaam's user avatar
  • 1,787