Katex and TiddlyWiki: Some syntax does not work

113 weergaven
Naar het eerste ongelezen bericht

Atronoush Parsi

ongelezen,
20 jul 2021, 10:58:5820-07-2021
aan tiddl...@googlegroups.com
Testing in Tiddlywiki 5.1.23


Some example of KaTex:Supported Functions · KaTeX

like

\begin{align}
   a&=b+c \\
   d+e&=f
\end{align}


return errors! Is there any setting I missed or Tiddlywiki does not support these features?

Mor example which do not work:

$$
\begin{equation}
\begin{split}   a &=b+c\\
      &=e+f
\end{split}
\end{equation}
$$




Pak

ongelezen,
22 jul 2021, 05:51:0022-07-2021
aan TiddlyWiki
My understanding is that in order for TW to parse an expression with katex, the expression needs to be inside $$ (or <$latex> widget). Otherwise the expression is treated as a wikitext/html.  That might explain why \begin{align} does not work - it's not inside $$ so TW does not know to parse this as a LaTeX command.

If you want align environment, you can use
$$
\begin{aligned}
   a&=b+c \\
   d+e&=f
\end{aligned}
$$

PMario

ongelezen,
22 jul 2021, 08:39:0522-07-2021
aan TiddlyWiki
Hi,
It seems {align} support started with KaTex 0.13.0 ... The version used in TW is 0.12.0 which is about 1 year old.
So we will probably need to make an update.
-mario
 

Si

ongelezen,
22 jul 2021, 08:40:5322-07-2021
aan TiddlyWiki
@Atronoush

It's because {align} and {equation} were only added in Katex v0.13.0 (https://github.com/KaTeX/KaTeX/releases?after=v0.13.4)

The current TiddlyWiki plugin is still on v0.10.0, and the pre-release is on v0.12.0. I would suggest adding an issue to github asking if the plugin can be updated to the latest version of Katex.

PMario

ongelezen,
22 jul 2021, 08:48:3722-07-2021
aan TiddlyWiki

Atronoush Parsi

ongelezen,
22 jul 2021, 09:12:2422-07-2021
aan tiddl...@googlegroups.com
@PMario Thank you for help and ticket on GitHub
Yes, please! Hope it gets updated for TW 5.2.0 release! I think TW 5.1.23 would not get the update

@Si - I did not know this I just looked the KaTex help page and try to implement the examples

@Pak - Thank you! While align does not work with current TW+KaTex 0.12 but amazingly aligned worked ;-)

Thank you all

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/df1414dc-338b-4983-8d14-0cbc741f4608n%40googlegroups.com.

Mohammad Rahmani

ongelezen,
22 jul 2021, 09:17:3422-07-2021
aan tiddl...@googlegroups.com
On Thu, Jul 22, 2021 at 5:18 PM PMario <pmar...@gmail.com> wrote:
Thank you Mario! Yes 0.13.3 has tones of new features and bug fixes!


 

On Thursday, July 22, 2021 at 2:39:05 PM UTC+2 PMario wrote:
Hi,
It seems {align} support started with KaTex 0.13.0 ... The version used in TW is 0.12.0 which is about 1 year old.
So we will probably need to make an update.
-mario
 

--
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten