-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KaTex cannot render some equations #455
Comments
I find that codes below can work.
So how I fix it? Is that an error that maybe happened in keTax.auto-render? |
@preminstrel, I think it's a configuration setting in Unfortunately, I'm not a KaTeX /LaTeX expert. @emptymalei, could you be of any help? Thanks! For now, using $$
\begin{aligned}
PDE \quad &u_{tt}-a^2u_{xx}=0 \newline
B.C.\quad &u(0,t)=u(l,t)=0\quad t\ge 0 \newline
I.C.\quad & u(x,0)=\varphi(x),u_t(x,0)=\phi(x)\quad 0\le x\le l
\end{aligned}
$$ |
@h-enk I'm not familiar with KaTeX. I've been using Mathjax for math. The double-slash works fine in mathjax. I'll have a look at this. I'm also interested in switching to KaTeX as it is faster than mathjax. |
Thank you for your time! |
It seems to be a Goldmark issue. A better (portable) trick for now, use
|
This method seems extremely good and portable. I will use this one!😀 |
Katex seems to be broken. I checked #181, but the math equation on the site is not working anymore. https://math-typesetting--doks.netlify.app/docs/examples/math/ |
I tried $$
\begin{aligned }
J_n = nqv_d \newline
J_n = nq\dfrac{1}{2} \dfrac{q\tau}{m^{2}}E
\end{aligned }
$$
$$
\begin{aligned}
a &=b+c \cr
d+e &=f
\end{aligned}
$$
$$
\begin{aligned}
a & b \\\\ c & d
\end{aligned}
$$ but none of them works. |
@tuyenld Hmm, I can't confirm your issue — following (the example in) the Doks docs (https://getdoks.org/docs/how-to/extra-features/katex/), it works for me. Also, this works for me:
|
Do you have a repo you could share? |
Yes. Here is my post, and this is my md file. Turn out that if I removed |
Could you try with removing the space in
|
Yes, confirmed. We could configure the Hugo So,
|
It is not enough for this case. $$
\begin{align*}
u(t)={
\begin{cases}
1&{\text{if }}t \ge 0 \newline
0&{\text{if }}t \lt 0 \newline
\end{cases}}
\qquad
u[n]={
\begin{cases}
1&{\text{if }}n \ge 0 \newline
0&{\text{if }}n \lt 0 \newline
\end{cases}}
\end{align*}
$$ I need to use |
Doks now uses the free Math API service. See also Mathematical Expressions |
The problem is that when I use KaTex to render my equations, some eqautions can be rendered while others cannot be.
Such equation like below cannot be rendered: (use env aligned)
And the result is below:
Thanks for your time !
The text was updated successfully, but these errors were encountered: