Hello,
I am using mathjax which is inbuilt in mainroad hugo theme. Here is the way used
create a file mathjax.html
and paste below code in it in theme partials folder.
{{ if and .IsPage (eq (.Param "mathjax") true) }}
<script src="{{ .Param "mathjaxPath" | default "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js" }}{{ with .Param "mathjaxConfig" | default "TeX-AMS-MML_HTMLorMML" }}?config={{ . }}{{ end }}" async></script>
{{ end }}
inside footer.html
have these
{{ if .Params.mathjax}}{{ partial "mathjax.html" . }}{{ end }}
Only the last one of below worked. The first 2 are not working.
1)
\$T(n) = C1*1 + C2*n + C3*(n-1)] + C4*(n-1) + C5*(\sum _{j=2} ^{n} t_{j}) + C5*(\sum _{j=1}^{n-1} (n-j)) + C6*(\sum _{j=2} ^{n} (t_{j}-1)) + C7 *(\sum _{j=2} ^{n} (t_{j}-1)) + C8*(n-1)\$
2)
\$$
T(n) = C1*1 + C2*n + C3*(n-1)] + C4*(n-1) + C5*(\sum _{j=2} ^{n} t_{j}) + C5*(\sum _{j=1}^{n-1} (n-j)) + C6*(\sum _{j=2} ^{n} (t_{j}-1)) + C7 *(\sum _{j=2} ^{n} (t_{j}-1)) + C8*(n-1)
\$$
3)
\<div>
$$
T(n) = C1*1 + C2*n + C3*(n-1)] + C4*(n-1) + C5*(\sum _{j=2} ^{n} t_{j}) + C5*(\sum _{j=1}^{n-1} (n-j)) + C6*(\sum _{j=2} ^{n} (t_{j}-1)) + C7 *(\sum _{j=2} ^{n} (t_{j}-1)) + C8*(n-1)
$$
\</div>
Could anyone please help. Thank you in advance.