Re: [Zim-wiki] html export template: center images

2010-12-04 Thread Bill Oldroyd
Hi Ramiro,

Could you do this by making two changes?. It would mean all images would be
centred.

In /usr/share/zim/Templates/Default.html add a CSS statement

  img.center { display: block; margin-left: auto;
margin-right: auto; }

and then in /usr/share/pyshred/zim/formats/html.py add class=center the
string used for translating the element tag for an image to html img ... /
:

  output.append('img src=%s* class=center* alt=%s%s'
% (src, text, opt))

Providing control over where individual images should be placed is
considerably more complicated.

Bill

On Fri, Dec 3, 2010 at 2:55 PM, Ramiro Magno ramiro.ma...@gmail.com wrote:

 Hi

 is there a way of editing an html template such that all images get
 automatically centered?

 Thanks
 Ramiro

 ___
 Mailing list: 
 https://launchpad.net/~zim-wikihttps://launchpad.net/%7Ezim-wiki
 Post to : zim-wiki@lists.launchpad.net
 Unsubscribe : 
 https://launchpad.net/~zim-wikihttps://launchpad.net/%7Ezim-wiki
 More help   : https://help.launchpad.net/ListHelp




-- 
Bill Oldroyd
Technical consultant for The European Library
___
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