Re: [Zim-wiki] equation editor

2016-01-08 Thread Paulo van Breugel
Just FYI, I compiled the latest version of dvisvgm (Ubuntu 14.04 still
packages the ancient 1.2.2). With version 1.14.1, the multiplication sign
(x) is rendered as such. Still, the formula still doesn't look great (see
attached), so the even with the latest dvisvgm version the -n flag is
required.

On Fri, Jan 8, 2016 at 4:44 PM, Paulo van Breugel 
wrote:

> That did the trick.. was just about to compile the latest version of
> dvisvgm, but now this works I'll wait till the packages are updated.
>
> It looks great, really happy with this. One suggestion would be to allow
> one to set the size (equal to setting the size of an image).
>
> For me the svg option is great, but if you still plan to have the option
> to choose between png and svg, it might be a nice idea to have the option
> to set the resolution if one selects the png. But again, just suggestions,
> I am really happy now :-)
>
>
>
> On Fri, Jan 8, 2016 at 4:32 PM, Jaap Karssenberg <
> jaap.karssenb...@gmail.com> wrote:
>
>> Try "-n -o" instead of "-o -n" ..
>>
>> -- Jaap
>>
>> On Fri, Jan 8, 2016 at 4:27 PM, Paulo van Breugel > > wrote:
>>
>>> Hi Jaap,
>>>
>>> I had already tried that like below (not sure that is the correct way)
>>>
>>> dvipngcmd = ('dvisvgm', '-o', '-n')
>>>
>>> But this results in an error "An error occurred while generating the
>>> image. Do you want to save the source text anyway?"
>>>
>>> I'll see if I can install/compile the new version
>>>
>>> Regards
>>>
>>> Paulo
>>>
>>>
>>> On Fri, Jan 8, 2016 at 3:37 PM, Jaap Karssenberg <
>>> jaap.karssenb...@gmail.com> wrote:
>>>
 OK there is a work around for this issue: add the "-n" commandline
 option for dvisvgm.

 Fix for the underlying bug is in newer versions of dvisvgm, but this is
 not a pre-requisite when applying "-n".

 Regards,

 Jaap


 On Fri, Jan 8, 2016 at 2:52 PM, Paulo van Breugel <
 p.vanbreu...@gmail.com> wrote:

> Thanks Jaap, let's hope they can fix this, would be nice
>
>
> On Fri, Jan 8, 2016 at 2:47 PM, Jaap Karssenberg <
> jaap.karssenb...@gmail.com> wrote:
>
>> Weird, it looks like dvisvgm mixes up unicode characters. Reported
>> the bug upstream here: https://github.com/mgieseki/dvisvgm/issues/52
>>
>> Hope they can fix it, would make equations look prettier if we can
>> use svg instead of png.
>>
>> Regards,
>>
>> Jaap
>>
>>
>> On Fri, Jan 8, 2016 at 10:09 AM, Paulo van Breugel <
>> p.vanbreu...@gmail.com> wrote:
>>
>>> Thanks. Unfortunately, the svg file doesn't look correct in my case
>>> (see attached the tex file, the png file originally created and the svg
>>> file after patching). I played around with the dvisgm options, but 
>>> couldn't
>>> find a solution.
>>>
>>> Best wishes,
>>>
>>> Paulo
>>>
>>>
>>>
>>>
>>> On 07-01-16 15:27, Jaap Karssenberg wrote:
>>>
>>> Indeed it works using dvisgm and it looks good, just change 3 lines
>>> in the plugin, see attached diff.
>>>
>>> When I have some time I will try to make it an option in the plugin.
>>>
>>> Regards,
>>>
>>> Jaap
>>>
>>>
>>> On Thu, Nov 26, 2015 at 11:00 AM, Paulo van Breugel <
>>> p.vanbreu...@gmail.com> wrote:
>>>
 Perhaps replacing the dvipng by dvisgm (http://dvisvgm.bplaced.net/)
 could work?



 On 26-11-15 10:56, Paulo van Breugel wrote:

 Thanks, I had been looking in equationeditor.py file, but wasn't
 sure how to add the -D option.

 The reason I want to be able to change the resolution is to make
 the image suitable to be used in printed documents, which normally 
 requires
 a dpi of 300. But that would result in a very large image in the 
 notebook.
 A solution for me (but perhaps not so much for you) would be an option 
 to
 resize the image display in the notebook (like you can do with a normal
 image). The option to use svg instead of png would be even better, 
 perhaps
 also for your user case?


 On 26-11-15 10:28, wzhd wrote:

 I have been thinking about the same thing since I got a HiDPI
 screen. Currently, I have only managed to make the images bigger, by
 passing the option "-D 192" to the "dvipng" command. The modified 
 version
 is here:
 
 https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524


 However this is not perfect, when I open the notebook on other
 computers, the equations are too big.

 On 26 November 2015 at 00:29, Paulo van Breugel <
 p.vanbreu...@gmail.com> w

Re: [Zim-wiki] equation editor

2016-01-08 Thread Paulo van Breugel
That did the trick.. was just about to compile the latest version of
dvisvgm, but now this works I'll wait till the packages are updated.

It looks great, really happy with this. One suggestion would be to allow
one to set the size (equal to setting the size of an image).

For me the svg option is great, but if you still plan to have the option to
choose between png and svg, it might be a nice idea to have the option to
set the resolution if one selects the png. But again, just suggestions, I
am really happy now :-)



On Fri, Jan 8, 2016 at 4:32 PM, Jaap Karssenberg  wrote:

> Try "-n -o" instead of "-o -n" ..
>
> -- Jaap
>
> On Fri, Jan 8, 2016 at 4:27 PM, Paulo van Breugel 
> wrote:
>
>> Hi Jaap,
>>
>> I had already tried that like below (not sure that is the correct way)
>>
>> dvipngcmd = ('dvisvgm', '-o', '-n')
>>
>> But this results in an error "An error occurred while generating the
>> image. Do you want to save the source text anyway?"
>>
>> I'll see if I can install/compile the new version
>>
>> Regards
>>
>> Paulo
>>
>>
>> On Fri, Jan 8, 2016 at 3:37 PM, Jaap Karssenberg <
>> jaap.karssenb...@gmail.com> wrote:
>>
>>> OK there is a work around for this issue: add the "-n" commandline
>>> option for dvisvgm.
>>>
>>> Fix for the underlying bug is in newer versions of dvisvgm, but this is
>>> not a pre-requisite when applying "-n".
>>>
>>> Regards,
>>>
>>> Jaap
>>>
>>>
>>> On Fri, Jan 8, 2016 at 2:52 PM, Paulo van Breugel <
>>> p.vanbreu...@gmail.com> wrote:
>>>
 Thanks Jaap, let's hope they can fix this, would be nice


 On Fri, Jan 8, 2016 at 2:47 PM, Jaap Karssenberg <
 jaap.karssenb...@gmail.com> wrote:

> Weird, it looks like dvisvgm mixes up unicode characters. Reported the
> bug upstream here: https://github.com/mgieseki/dvisvgm/issues/52
>
> Hope they can fix it, would make equations look prettier if we can use
> svg instead of png.
>
> Regards,
>
> Jaap
>
>
> On Fri, Jan 8, 2016 at 10:09 AM, Paulo van Breugel <
> p.vanbreu...@gmail.com> wrote:
>
>> Thanks. Unfortunately, the svg file doesn't look correct in my case
>> (see attached the tex file, the png file originally created and the svg
>> file after patching). I played around with the dvisgm options, but 
>> couldn't
>> find a solution.
>>
>> Best wishes,
>>
>> Paulo
>>
>>
>>
>>
>> On 07-01-16 15:27, Jaap Karssenberg wrote:
>>
>> Indeed it works using dvisgm and it looks good, just change 3 lines
>> in the plugin, see attached diff.
>>
>> When I have some time I will try to make it an option in the plugin.
>>
>> Regards,
>>
>> Jaap
>>
>>
>> On Thu, Nov 26, 2015 at 11:00 AM, Paulo van Breugel <
>> p.vanbreu...@gmail.com> wrote:
>>
>>> Perhaps replacing the dvipng by dvisgm (http://dvisvgm.bplaced.net/)
>>> could work?
>>>
>>>
>>>
>>> On 26-11-15 10:56, Paulo van Breugel wrote:
>>>
>>> Thanks, I had been looking in equationeditor.py file, but wasn't
>>> sure how to add the -D option.
>>>
>>> The reason I want to be able to change the resolution is to make the
>>> image suitable to be used in printed documents, which normally requires 
>>> a
>>> dpi of 300. But that would result in a very large image in the 
>>> notebook. A
>>> solution for me (but perhaps not so much for you) would be an option to
>>> resize the image display in the notebook (like you can do with a normal
>>> image). The option to use svg instead of png would be even better, 
>>> perhaps
>>> also for your user case?
>>>
>>>
>>> On 26-11-15 10:28, wzhd wrote:
>>>
>>> I have been thinking about the same thing since I got a HiDPI
>>> screen. Currently, I have only managed to make the images bigger, by
>>> passing the option "-D 192" to the "dvipng" command. The modified 
>>> version
>>> is here:
>>> 
>>> https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524
>>>
>>>
>>> However this is not perfect, when I open the notebook on other
>>> computers, the equations are too big.
>>>
>>> On 26 November 2015 at 00:29, Paulo van Breugel <
>>> p.vanbreu...@gmail.com> wrote:
>>>
 Hi Jaap and other Zim devs,

 The 'insert equation' function is a great function, producing nice
 looking equations in Zim. However, the resolution of the image (png 
 file)
 that is generated by the addon is fairly low. Is there a way to change 
 the
 resolution of the image? Or even better, would it be possible to add 
 the
 option to store the on-the-fly generaged image as svg instead of png? 
 This
 would provide in perfectly scala

Re: [Zim-wiki] equation editor

2016-01-08 Thread Jaap Karssenberg
Try "-n -o" instead of "-o -n" ..

-- Jaap

On Fri, Jan 8, 2016 at 4:27 PM, Paulo van Breugel 
wrote:

> Hi Jaap,
>
> I had already tried that like below (not sure that is the correct way)
>
> dvipngcmd = ('dvisvgm', '-o', '-n')
>
> But this results in an error "An error occurred while generating the
> image. Do you want to save the source text anyway?"
>
> I'll see if I can install/compile the new version
>
> Regards
>
> Paulo
>
>
> On Fri, Jan 8, 2016 at 3:37 PM, Jaap Karssenberg <
> jaap.karssenb...@gmail.com> wrote:
>
>> OK there is a work around for this issue: add the "-n" commandline option
>> for dvisvgm.
>>
>> Fix for the underlying bug is in newer versions of dvisvgm, but this is
>> not a pre-requisite when applying "-n".
>>
>> Regards,
>>
>> Jaap
>>
>>
>> On Fri, Jan 8, 2016 at 2:52 PM, Paulo van Breugel > > wrote:
>>
>>> Thanks Jaap, let's hope they can fix this, would be nice
>>>
>>>
>>> On Fri, Jan 8, 2016 at 2:47 PM, Jaap Karssenberg <
>>> jaap.karssenb...@gmail.com> wrote:
>>>
 Weird, it looks like dvisvgm mixes up unicode characters. Reported the
 bug upstream here: https://github.com/mgieseki/dvisvgm/issues/52

 Hope they can fix it, would make equations look prettier if we can use
 svg instead of png.

 Regards,

 Jaap


 On Fri, Jan 8, 2016 at 10:09 AM, Paulo van Breugel <
 p.vanbreu...@gmail.com> wrote:

> Thanks. Unfortunately, the svg file doesn't look correct in my case
> (see attached the tex file, the png file originally created and the svg
> file after patching). I played around with the dvisgm options, but 
> couldn't
> find a solution.
>
> Best wishes,
>
> Paulo
>
>
>
>
> On 07-01-16 15:27, Jaap Karssenberg wrote:
>
> Indeed it works using dvisgm and it looks good, just change 3 lines in
> the plugin, see attached diff.
>
> When I have some time I will try to make it an option in the plugin.
>
> Regards,
>
> Jaap
>
>
> On Thu, Nov 26, 2015 at 11:00 AM, Paulo van Breugel <
> p.vanbreu...@gmail.com> wrote:
>
>> Perhaps replacing the dvipng by dvisgm (http://dvisvgm.bplaced.net/)
>> could work?
>>
>>
>>
>> On 26-11-15 10:56, Paulo van Breugel wrote:
>>
>> Thanks, I had been looking in equationeditor.py file, but wasn't sure
>> how to add the -D option.
>>
>> The reason I want to be able to change the resolution is to make the
>> image suitable to be used in printed documents, which normally requires a
>> dpi of 300. But that would result in a very large image in the notebook. 
>> A
>> solution for me (but perhaps not so much for you) would be an option to
>> resize the image display in the notebook (like you can do with a normal
>> image). The option to use svg instead of png would be even better, 
>> perhaps
>> also for your user case?
>>
>>
>> On 26-11-15 10:28, wzhd wrote:
>>
>> I have been thinking about the same thing since I got a HiDPI screen.
>> Currently, I have only managed to make the images bigger, by passing the
>> option "-D 192" to the "dvipng" command. The modified version is here:
>> 
>> https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524
>>
>>
>> However this is not perfect, when I open the notebook on other
>> computers, the equations are too big.
>>
>> On 26 November 2015 at 00:29, Paulo van Breugel <
>> p.vanbreu...@gmail.com> wrote:
>>
>>> Hi Jaap and other Zim devs,
>>>
>>> The 'insert equation' function is a great function, producing nice
>>> looking equations in Zim. However, the resolution of the image (png 
>>> file)
>>> that is generated by the addon is fairly low. Is there a way to change 
>>> the
>>> resolution of the image? Or even better, would it be possible to add the
>>> option to store the on-the-fly generaged image as svg instead of png? 
>>> This
>>> would provide in perfectly scalable solution for any document.
>>>
>>> Best regards
>>>
>>> Paulo
>>>
>>> ___
>>> 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
>>
>>
>
>

>>>
>>
>
___
Mailing list: https://launch

Re: [Zim-wiki] equation editor

2016-01-08 Thread Paulo van Breugel
Hi Jaap,

I had already tried that like below (not sure that is the correct way)

dvipngcmd = ('dvisvgm', '-o', '-n')

But this results in an error "An error occurred while generating the image.
Do you want to save the source text anyway?"

I'll see if I can install/compile the new version

Regards

Paulo


On Fri, Jan 8, 2016 at 3:37 PM, Jaap Karssenberg  wrote:

> OK there is a work around for this issue: add the "-n" commandline option
> for dvisvgm.
>
> Fix for the underlying bug is in newer versions of dvisvgm, but this is
> not a pre-requisite when applying "-n".
>
> Regards,
>
> Jaap
>
>
> On Fri, Jan 8, 2016 at 2:52 PM, Paulo van Breugel 
> wrote:
>
>> Thanks Jaap, let's hope they can fix this, would be nice
>>
>>
>> On Fri, Jan 8, 2016 at 2:47 PM, Jaap Karssenberg <
>> jaap.karssenb...@gmail.com> wrote:
>>
>>> Weird, it looks like dvisvgm mixes up unicode characters. Reported the
>>> bug upstream here: https://github.com/mgieseki/dvisvgm/issues/52
>>>
>>> Hope they can fix it, would make equations look prettier if we can use
>>> svg instead of png.
>>>
>>> Regards,
>>>
>>> Jaap
>>>
>>>
>>> On Fri, Jan 8, 2016 at 10:09 AM, Paulo van Breugel <
>>> p.vanbreu...@gmail.com> wrote:
>>>
 Thanks. Unfortunately, the svg file doesn't look correct in my case
 (see attached the tex file, the png file originally created and the svg
 file after patching). I played around with the dvisgm options, but couldn't
 find a solution.

 Best wishes,

 Paulo




 On 07-01-16 15:27, Jaap Karssenberg wrote:

 Indeed it works using dvisgm and it looks good, just change 3 lines in
 the plugin, see attached diff.

 When I have some time I will try to make it an option in the plugin.

 Regards,

 Jaap


 On Thu, Nov 26, 2015 at 11:00 AM, Paulo van Breugel <
 p.vanbreu...@gmail.com> wrote:

> Perhaps replacing the dvipng by dvisgm (http://dvisvgm.bplaced.net/)
> could work?
>
>
>
> On 26-11-15 10:56, Paulo van Breugel wrote:
>
> Thanks, I had been looking in equationeditor.py file, but wasn't sure
> how to add the -D option.
>
> The reason I want to be able to change the resolution is to make the
> image suitable to be used in printed documents, which normally requires a
> dpi of 300. But that would result in a very large image in the notebook. A
> solution for me (but perhaps not so much for you) would be an option to
> resize the image display in the notebook (like you can do with a normal
> image). The option to use svg instead of png would be even better, perhaps
> also for your user case?
>
>
> On 26-11-15 10:28, wzhd wrote:
>
> I have been thinking about the same thing since I got a HiDPI screen.
> Currently, I have only managed to make the images bigger, by passing the
> option "-D 192" to the "dvipng" command. The modified version is here:
> 
> https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524
>
>
> However this is not perfect, when I open the notebook on other
> computers, the equations are too big.
>
> On 26 November 2015 at 00:29, Paulo van Breugel <
> p.vanbreu...@gmail.com> wrote:
>
>> Hi Jaap and other Zim devs,
>>
>> The 'insert equation' function is a great function, producing nice
>> looking equations in Zim. However, the resolution of the image (png file)
>> that is generated by the addon is fairly low. Is there a way to change 
>> the
>> resolution of the image? Or even better, would it be possible to add the
>> option to store the on-the-fly generaged image as svg instead of png? 
>> This
>> would provide in perfectly scalable solution for any document.
>>
>> Best regards
>>
>> Paulo
>>
>> ___
>> 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
>
>


>>>
>>
>
___
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


Re: [Zim-wiki] equation editor

2016-01-08 Thread Jaap Karssenberg
OK there is a work around for this issue: add the "-n" commandline option
for dvisvgm.

Fix for the underlying bug is in newer versions of dvisvgm, but this is not
a pre-requisite when applying "-n".

Regards,

Jaap


On Fri, Jan 8, 2016 at 2:52 PM, Paulo van Breugel 
wrote:

> Thanks Jaap, let's hope they can fix this, would be nice
>
>
> On Fri, Jan 8, 2016 at 2:47 PM, Jaap Karssenberg <
> jaap.karssenb...@gmail.com> wrote:
>
>> Weird, it looks like dvisvgm mixes up unicode characters. Reported the
>> bug upstream here: https://github.com/mgieseki/dvisvgm/issues/52
>>
>> Hope they can fix it, would make equations look prettier if we can use
>> svg instead of png.
>>
>> Regards,
>>
>> Jaap
>>
>>
>> On Fri, Jan 8, 2016 at 10:09 AM, Paulo van Breugel <
>> p.vanbreu...@gmail.com> wrote:
>>
>>> Thanks. Unfortunately, the svg file doesn't look correct in my case (see
>>> attached the tex file, the png file originally created and the svg file
>>> after patching). I played around with the dvisgm options, but couldn't find
>>> a solution.
>>>
>>> Best wishes,
>>>
>>> Paulo
>>>
>>>
>>>
>>>
>>> On 07-01-16 15:27, Jaap Karssenberg wrote:
>>>
>>> Indeed it works using dvisgm and it looks good, just change 3 lines in
>>> the plugin, see attached diff.
>>>
>>> When I have some time I will try to make it an option in the plugin.
>>>
>>> Regards,
>>>
>>> Jaap
>>>
>>>
>>> On Thu, Nov 26, 2015 at 11:00 AM, Paulo van Breugel <
>>> p.vanbreu...@gmail.com> wrote:
>>>
 Perhaps replacing the dvipng by dvisgm (http://dvisvgm.bplaced.net/)
 could work?



 On 26-11-15 10:56, Paulo van Breugel wrote:

 Thanks, I had been looking in equationeditor.py file, but wasn't sure
 how to add the -D option.

 The reason I want to be able to change the resolution is to make the
 image suitable to be used in printed documents, which normally requires a
 dpi of 300. But that would result in a very large image in the notebook. A
 solution for me (but perhaps not so much for you) would be an option to
 resize the image display in the notebook (like you can do with a normal
 image). The option to use svg instead of png would be even better, perhaps
 also for your user case?


 On 26-11-15 10:28, wzhd wrote:

 I have been thinking about the same thing since I got a HiDPI screen.
 Currently, I have only managed to make the images bigger, by passing the
 option "-D 192" to the "dvipng" command. The modified version is here:
 
 https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524


 However this is not perfect, when I open the notebook on other
 computers, the equations are too big.

 On 26 November 2015 at 00:29, Paulo van Breugel <
 p.vanbreu...@gmail.com> wrote:

> Hi Jaap and other Zim devs,
>
> The 'insert equation' function is a great function, producing nice
> looking equations in Zim. However, the resolution of the image (png file)
> that is generated by the addon is fairly low. Is there a way to change the
> resolution of the image? Or even better, would it be possible to add the
> option to store the on-the-fly generaged image as svg instead of png? This
> would provide in perfectly scalable solution for any document.
>
> Best regards
>
> Paulo
>
> ___
> 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


>>>
>>>
>>
>
___
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


Re: [Zim-wiki] equation editor

2016-01-08 Thread Paulo van Breugel
Thanks Jaap, let's hope they can fix this, would be nice

On Fri, Jan 8, 2016 at 2:47 PM, Jaap Karssenberg  wrote:

> Weird, it looks like dvisvgm mixes up unicode characters. Reported the bug
> upstream here: https://github.com/mgieseki/dvisvgm/issues/52
>
> Hope they can fix it, would make equations look prettier if we can use svg
> instead of png.
>
> Regards,
>
> Jaap
>
>
> On Fri, Jan 8, 2016 at 10:09 AM, Paulo van Breugel  > wrote:
>
>> Thanks. Unfortunately, the svg file doesn't look correct in my case (see
>> attached the tex file, the png file originally created and the svg file
>> after patching). I played around with the dvisgm options, but couldn't find
>> a solution.
>>
>> Best wishes,
>>
>> Paulo
>>
>>
>>
>>
>> On 07-01-16 15:27, Jaap Karssenberg wrote:
>>
>> Indeed it works using dvisgm and it looks good, just change 3 lines in
>> the plugin, see attached diff.
>>
>> When I have some time I will try to make it an option in the plugin.
>>
>> Regards,
>>
>> Jaap
>>
>>
>> On Thu, Nov 26, 2015 at 11:00 AM, Paulo van Breugel <
>> p.vanbreu...@gmail.com> wrote:
>>
>>> Perhaps replacing the dvipng by dvisgm (http://dvisvgm.bplaced.net/)
>>> could work?
>>>
>>>
>>>
>>> On 26-11-15 10:56, Paulo van Breugel wrote:
>>>
>>> Thanks, I had been looking in equationeditor.py file, but wasn't sure
>>> how to add the -D option.
>>>
>>> The reason I want to be able to change the resolution is to make the
>>> image suitable to be used in printed documents, which normally requires a
>>> dpi of 300. But that would result in a very large image in the notebook. A
>>> solution for me (but perhaps not so much for you) would be an option to
>>> resize the image display in the notebook (like you can do with a normal
>>> image). The option to use svg instead of png would be even better, perhaps
>>> also for your user case?
>>>
>>>
>>> On 26-11-15 10:28, wzhd wrote:
>>>
>>> I have been thinking about the same thing since I got a HiDPI screen.
>>> Currently, I have only managed to make the images bigger, by passing the
>>> option "-D 192" to the "dvipng" command. The modified version is here:
>>> 
>>> https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524
>>>
>>>
>>> However this is not perfect, when I open the notebook on other
>>> computers, the equations are too big.
>>>
>>> On 26 November 2015 at 00:29, Paulo van Breugel <
>>> p.vanbreu...@gmail.com> wrote:
>>>
 Hi Jaap and other Zim devs,

 The 'insert equation' function is a great function, producing nice
 looking equations in Zim. However, the resolution of the image (png file)
 that is generated by the addon is fairly low. Is there a way to change the
 resolution of the image? Or even better, would it be possible to add the
 option to store the on-the-fly generaged image as svg instead of png? This
 would provide in perfectly scalable solution for any document.

 Best regards

 Paulo

 ___
 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
>>>
>>>
>>
>>
>
___
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


Re: [Zim-wiki] equation editor

2016-01-08 Thread Jaap Karssenberg
Weird, it looks like dvisvgm mixes up unicode characters. Reported the bug
upstream here: https://github.com/mgieseki/dvisvgm/issues/52

Hope they can fix it, would make equations look prettier if we can use svg
instead of png.

Regards,

Jaap


On Fri, Jan 8, 2016 at 10:09 AM, Paulo van Breugel 
wrote:

> Thanks. Unfortunately, the svg file doesn't look correct in my case (see
> attached the tex file, the png file originally created and the svg file
> after patching). I played around with the dvisgm options, but couldn't find
> a solution.
>
> Best wishes,
>
> Paulo
>
>
>
>
> On 07-01-16 15:27, Jaap Karssenberg wrote:
>
> Indeed it works using dvisgm and it looks good, just change 3 lines in the
> plugin, see attached diff.
>
> When I have some time I will try to make it an option in the plugin.
>
> Regards,
>
> Jaap
>
>
> On Thu, Nov 26, 2015 at 11:00 AM, Paulo van Breugel <
> p.vanbreu...@gmail.com> wrote:
>
>> Perhaps replacing the dvipng by dvisgm (http://dvisvgm.bplaced.net/)
>> could work?
>>
>>
>>
>> On 26-11-15 10:56, Paulo van Breugel wrote:
>>
>> Thanks, I had been looking in equationeditor.py file, but wasn't sure how
>> to add the -D option.
>>
>> The reason I want to be able to change the resolution is to make the
>> image suitable to be used in printed documents, which normally requires a
>> dpi of 300. But that would result in a very large image in the notebook. A
>> solution for me (but perhaps not so much for you) would be an option to
>> resize the image display in the notebook (like you can do with a normal
>> image). The option to use svg instead of png would be even better, perhaps
>> also for your user case?
>>
>>
>> On 26-11-15 10:28, wzhd wrote:
>>
>> I have been thinking about the same thing since I got a HiDPI screen.
>> Currently, I have only managed to make the images bigger, by passing the
>> option "-D 192" to the "dvipng" command. The modified version is here:
>> 
>> https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524
>>
>>
>> However this is not perfect, when I open the notebook on other computers,
>> the equations are too big.
>>
>> On 26 November 2015 at 00:29, Paulo van Breugel <
>> p.vanbreu...@gmail.com> wrote:
>>
>>> Hi Jaap and other Zim devs,
>>>
>>> The 'insert equation' function is a great function, producing nice
>>> looking equations in Zim. However, the resolution of the image (png file)
>>> that is generated by the addon is fairly low. Is there a way to change the
>>> resolution of the image? Or even better, would it be possible to add the
>>> option to store the on-the-fly generaged image as svg instead of png? This
>>> would provide in perfectly scalable solution for any document.
>>>
>>> Best regards
>>>
>>> Paulo
>>>
>>> ___
>>> 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
>>
>>
>
>
___
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


Re: [Zim-wiki] equation editor

2016-01-08 Thread Paulo van Breugel
Thanks. Unfortunately, the svg file doesn't look correct in my case (see 
attached the tex file, the png file originally created and the svg file 
after patching). I played around with the dvisgm options, but couldn't 
find a solution.


Best wishes,

Paulo



On 07-01-16 15:27, Jaap Karssenberg wrote:
Indeed it works using dvisgm and it looks good, just change 3 lines in 
the plugin, see attached diff.


When I have some time I will try to make it an option in the plugin.

Regards,

Jaap


On Thu, Nov 26, 2015 at 11:00 AM, Paulo van Breugel 
mailto:p.vanbreu...@gmail.com>> wrote:


Perhaps replacing the dvipng by dvisgm
(http://dvisvgm.bplaced.net/) could work?



On 26-11-15 10:56, Paulo van Breugel wrote:

Thanks, I had been looking in equationeditor.py file, but wasn't
sure how to add the -D option.

The reason I want to be able to change the resolution is to make
the image suitable to be used in printed documents, which
normally requires a dpi of 300. But that would result in a very
large image in the notebook. A solution for me (but perhaps not
so much for you) would be an option to resize the image display
in the notebook (like you can do with a normal image). The option
to use svg instead of png would be even better, perhaps also for
your user case?


On 26-11-15 10:28, wzhd wrote:

I have been thinking about the same thing since I got a HiDPI
screen. Currently, I have only managed to make the images
bigger, by passing the option "-D 192" to the "dvipng" command.
The modified version is here:

https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524


However this is not perfect, when I open the notebook on other
computers, the equations are too big.

On 26 November 2015 at 00:29, Paulo van Breugel
mailto:p.vanbreu...@gmail.com>> wrote:

Hi Jaap and other Zim devs,

The 'insert equation' function is a great function,
producing nice looking equations in Zim. However, the
resolution of the image (png file) that is generated by the
addon is fairly low. Is there a way to change the resolution
of the image? Or even better, would it be possible to add
the option to store the on-the-fly generaged image as svg
instead of png? This would provide in perfectly scalable
solution for any document.

Best regards

Paulo

___
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




T = 100 \times \frac{L + G}{SR + G}___
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


Re: [Zim-wiki] equation editor

2015-11-26 Thread Paulo van Breugel
Perhaps replacing the dvipng by dvisgm (http://dvisvgm.bplaced.net/) 
could work?



On 26-11-15 10:56, Paulo van Breugel wrote:
Thanks, I had been looking in equationeditor.py file, but wasn't sure 
how to add the -D option.


The reason I want to be able to change the resolution is to make the 
image suitable to be used in printed documents, which normally 
requires a dpi of 300. But that would result in a very large image in 
the notebook. A solution for me (but perhaps not so much for you) 
would be an option to resize the image display in the notebook (like 
you can do with a normal image). The option to use svg instead of png 
would be even better, perhaps also for your user case?



On 26-11-15 10:28, wzhd wrote:
I have been thinking about the same thing since I got a HiDPI screen. 
Currently, I have only managed to make the images bigger, by passing 
the option "-D 192" to the "dvipng" command. The modified version is 
here: 
https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524 



However this is not perfect, when I open the notebook on other 
computers, the equations are too big.


On 26 November 2015 at 00:29, Paulo van Breugel 
mailto:p.vanbreu...@gmail.com>> wrote:


Hi Jaap and other Zim devs,

The 'insert equation' function is a great function, producing
nice looking equations in Zim. However, the resolution of the
image (png file) that is generated by the addon is fairly low. Is
there a way to change the resolution of the image? Or even
better, would it be possible to add the option to store the
on-the-fly generaged image as svg instead of png? This would
provide in perfectly scalable solution for any document.

Best regards

Paulo

___
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


Re: [Zim-wiki] equation editor

2015-11-26 Thread Paulo van Breugel
Thanks, I had been looking in equationeditor.py file, but wasn't sure 
how to add the -D option.


The reason I want to be able to change the resolution is to make the 
image suitable to be used in printed documents, which normally requires 
a dpi of 300. But that would result in a very large image in the 
notebook. A solution for me (but perhaps not so much for you) would be 
an option to resize the image display in the notebook (like you can do 
with a normal image). The option to use svg instead of png would be even 
better, perhaps also for your user case?



On 26-11-15 10:28, wzhd wrote:
I have been thinking about the same thing since I got a HiDPI screen. 
Currently, I have only managed to make the images bigger, by passing 
the option "-D 192" to the "dvipng" command. The modified version is 
here: 
https://github.com/wzhd/zim-plugin-equation-editor/commit/c3c42d0668ca8dcf69dc1d25d9450d81514d5524 



However this is not perfect, when I open the notebook on other 
computers, the equations are too big.


On 26 November 2015 at 00:29, Paulo van Breugel 
mailto:p.vanbreu...@gmail.com>> wrote:


Hi Jaap and other Zim devs,

The 'insert equation' function is a great function, producing nice
looking equations in Zim. However, the resolution of the image
(png file) that is generated by the addon is fairly low. Is there
a way to change the resolution of the image? Or even better, would
it be possible to add the option to store the on-the-fly generaged
image as svg instead of png? This would provide in perfectly
scalable solution for any document.

Best regards

Paulo

___
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

2015-11-25 Thread Paulo van Breugel

Hi Jaap and other Zim devs,

The 'insert equation' function is a great function, producing nice 
looking equations in Zim. However, the resolution of the image (png 
file) that is generated by the addon is fairly low. Is there a way to 
change the resolution of the image? Or even better, would it be possible 
to add the option to store the on-the-fly generaged image as svg instead 
of png? This would provide in perfectly scalable solution for any document.


Best regards

Paulo

___
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


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


Re: [Zim-wiki] Equation editor in Windows

2012-11-12 Thread klo uo
Just install MiKTeX


On Mon, Nov 12, 2012 at 6:12 PM, Jeff Cox  wrote:

> Hi all.
> I've successfully used the LaTeX equation editor on Ubuntu.  Just
> wondering if someone has a recommendation on how to get this working in
> Windows.
>
> Thanks,
> Jeff
>
>
> ___
> 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 in Windows

2012-11-12 Thread Jeff Cox
Hi all.
I've successfully used the LaTeX equation editor on Ubuntu.  Just
wondering if someone has a recommendation on how to get this working in
Windows.

Thanks,
Jeff
___
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


Re: [Zim-wiki] equation editor dialog box

2010-12-09 Thread Jaap Karssenberg
On Sun, Dec 5, 2010 at 1:48 AM, Ramiro Magno  wrote:
> I noticed that the equation editor dialog box is not scrollable. Could
> this be implemented in zim's next release? Otherwise long latex input
> can make the dialog box too long, actually going over the screen size.
> Besides equations, I'm also using the equation editor plugin to make
> tables in Zim and I just made a huge table and the dialog box grew
> with it :) ...

Sure, but please put these kind of things in the bug tracker instead
of sending to the mailing list.

Regards,

Jaap

___
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 dialog box

2010-12-04 Thread Ramiro Magno
Hi

I noticed that the equation editor dialog box is not scrollable. Could
this be implemented in zim's next release? Otherwise long latex input
can make the dialog box too long, actually going over the screen size.
Besides equations, I'm also using the equation editor plugin to make
tables in Zim and I just made a huge table and the dialog box grew
with it :) ...

Thank you.
Ramiro

___
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