zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #03216
Re: Equation Editor Thought
Hi Dalon,
Not very difficult to make, but you would need to dig in a bit in the zim
object structure.
Basically you want to modify the equation editor plugin to listen to the
end-of-word signal, and trigger the dialog when you match a latex equation.
The code for this plugin is seperated in zim/plugins/equationeditor.py and
the base class zim/plugins/base/imagegenerators.py
To see an example of how to do the automatic text replacement have a look
at the "insertsymbol" plugin.
Regards,
Jaap
On Mon, Dec 15, 2014 at 8:22 AM, Dalon Work <dwwork@xxxxxxxxx> wrote:
> To the Zim Team,
>
> I've just discovered Zim, and really like what I see. I am a PhD student,
> and think this would be a good way to record notes and research. This would
> include lots of equations, and am wondering how feasible it would be to
> tweak the usage of the equation editor a bit.
>
> My thoughts are to have the equation editor become part of the
> auto-formatting, following the same convention of latex for an inline
> equation:
>
> Typing $ \int_0^x d\phi $ would then activate the equation editor plugin
> and force the picture equation. Right-clicking on the resulting image would
> bring up the editing dialogue box as it already does. The idea is only to
> change the initial input method. This would prevent lots of trips to the
> menu to bring up the equation editor dialogue box.
>
> I'm willing to take a stab at implementing, if I can be pointed in the
> right direction, although I am not as familiar with python programming as I
> am other languages.
>
> Thanks.
>
> Dalon
>
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help : https://help.launchpad.net/ListHelp
>
>
References