Katex: Vertical Layout

Created on 19 Nov 2017  路  5Comments  路  Source: KaTeX/KaTeX

I try to make equation in markdown file on the gitlab.

I f try to follow this guidelines.

Why this equation

$\Phi_M(c) \overset{def}{=} \Phi_c(c)$

is not rendered ? ( I mean: \overset{def}{=} )

TIA

Adam

All 5 comments

I ran

katex.renderToString('\\Phi_M(c) \\overset{def}{=} \\Phi_c(c)')

on the javascript console both on your site and on https://khan.github.io/KaTeX/. It failed on the former as you indicated and it succeeded on the latter.

Are you by any chance running an old version of KaTeX? Per https://github.com/Khan/KaTeX/releases, \overset was added in v0.8.0.

thx.
I have found that "Gitlab ships with KaTeX starting from v8.15 ".
Maye it is a gitlab not KaTex problem so I have also asked on the gitlab

Agreed. gitlab seems to include this version of katex which clearly doesn't include \overset, while the latest versions do. Hopefully they can upgrade as indicated in the comments there.

Is KaTex using version number ? I have found only 4fb9445a9 or 2015. How do you check it?

KaTeX uses version numbers, but it doesn't seem to have made its way into Gitlab's code (unfortunately). But from the year, it's clearly an old version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hagenw picture hagenw  路  3Comments

StaloneLab picture StaloneLab  路  3Comments

oddhack picture oddhack  路  3Comments

fabiospampinato picture fabiospampinato  路  4Comments

HughGrovesArup picture HughGrovesArup  路  4Comments