Re: [Zim-wiki] Equation Editor Thought

2015-02-03 Thread Jaap Karssenberg
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  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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


[Zim-wiki] Equation Editor Thought

2014-12-14 Thread Dalon Work
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp