Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use numbered LaTeX equations using kramdown in jekyll

Would it be possible to use equation numbers with the kramdown engine in jekyll? It seems that the previous engine maruku had supported equation numbering. I wanted to use equation numbering and cross-referencing supported by MathJax.

I have tried

$$
\begin{equation}
a + b = c \label{abc}
\end{equation}
$$

Equation \eqref{abc} is ...

and I obtained:

a+b=c

like image 208
Chang Avatar asked Oct 18 '22 14:10

Chang


1 Answers

Try this :

$$
\begin{equation}
a + b = c \tag{abc}\label{eq:one}
\end{equation} 
$$

I refer you to e\eqref{eq:one}.
like image 198
CobaltGray Avatar answered Nov 01 '22 15:11

CobaltGray