Hi,
Personally I'd prefer the KaTeX macro since I'm more used to them, and they
can be reused if you ever want to copy them to a LaTeX file.
And with the new improvement, the macro defined are available globally so
you don't need to worry if they are in the scope or not.
Also I mapped \bA-Z, \cA-Z, \fA-Z to \mathbf{A}, \mathcal{A}, \mathfrak{A}
respectively, and many other operators, e.g. \Id to \operatorname{Id},
which is really convenient.
But based on usage, TW macro may also be very useful (e.g. you can create
multiple equations, and even texts and other stuff, within a single TW
macro.
On Thursday, 5 August 2021 at 18:29:24 UTC+2 Mohammad wrote:
> @8d1h
>
> Many thanks! I like this improvement!
> One question: how do you compare the KaTex macro with the TW macro?
> You may aware that you can call TW macro like below
>
> \define dd(a, b)
> $$
> \frac{$a$}{$b$}
> $$
> \end
>
>
> <<dd "x+1" "sin(x)-1">>
>
>
>
> Best wishes
> Mohammad
>
>
> On Thu, Aug 5, 2021 at 5:16 PM '8d1h' via TiddlyWiki <
> [email protected]> wrote:
>
>> Hi,
>>
>> I made a custom macro editor for the official KaTeX plugin, so one can
>> create macros like \bZ -> \mathbf{Z} or \dd#1#2 -> \frac{d#1}{d#2} which
>> are then available globally, without needing to edit the source code of the
>> plugin. It can be found under the configuration tab of the plugin.
>>
>> Here is a screenshot and a demo html file if you want to try it. I hope
>> it'd be useful for some :) Suggestions and comments are very welcome! I
>> already submitted a pull request
>> <https://github.com/Jermolene/TiddlyWiki5/pull/5933> on GitHub.
>> [image: katex.png]
>>
>> --
>>
> 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 [email protected].
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/3cc3406b-60ab-4078-a48e-50119a02df6cn%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/tiddlywiki/3cc3406b-60ab-4078-a48e-50119a02df6cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/c0579013-bf96-47f2-8951-18250cc36b3an%40googlegroups.com.