Re: [tw5] Macro editor for KaTeX plugin

2021-08-05 Thread '8d1h' via TiddlyWiki
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
>
>
> <>
>
>
>
> Best wishes
> Mohammad
>
>
> On Thu, Aug 5, 2021 at 5:16 PM '8d1h' via TiddlyWiki <
> tiddl...@googlegroups.com> 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 tiddlywiki+...@googlegroups.com.
>>
> 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_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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c0579013-bf96-47f2-8951-18250cc36b3an%40googlegroups.com.


Re: [tw5] Re: Macro editor for KaTeX plugin

2021-08-05 Thread '8d1h' via TiddlyWiki
Hi,

Just for information, I manually updated my local KaTeX to the latest 
version (simply copy the files to the correct location) and everything 
seems to work nicely. 

On Thursday, 5 August 2021 at 18:19:24 UTC+2 Mohammad wrote:

> @Mario,
>
>  Is it possible to update KaTex to 0.13.13! I am not sure if this PR is 
> affected by the update or not! but TW KaTex needs to be updated from 0.12 
> (Jul 2020) to 0.13.13 (Jun 2021)
>
>
>
> Best wishes
> Mohammad
>
>
> On Thu, Aug 5, 2021 at 8:26 PM PMario  wrote:
>
>> Hi folks, 
>>
>> I want to add, that this is _NOT PRODUCTION READY_ at the moment. The PR 
>> at github looks good, but there is still some discussion going on. 
>>
>> So it will be nice to get your feedback here or at github!
>>
>> -mario
>>
>> -- 
>> 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/ba3a8f4b-3d8d-4bfd-a831-b6edd4e2b5c9n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/95666e5e-92d7-40d1-b4a1-45c8459027den%40googlegroups.com.