Re: Another (small) problem with instant preview in 1.4.0

2006-01-10 Thread Enrico Forestieri
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > Enrico> I suspect that there is a misunderstanding here. I am talking > Enrico> about the files that LyX constructs for the preview-latex > Enrico> thing, i.e., the files named

Re: Another (small) problem with instant preview in 1.4.0

2006-01-10 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> I suspect that there is a misunderstanding here. I am talking Enrico> about the files that LyX constructs for the preview-latex Enrico> thing, i.e., the files named "#lyxpreview.tex", not the latex Enrico> file used for typese

Re: Another (small) problem with instant preview in 1.4.0

2006-01-10 Thread Enrico Forestieri
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > >> Yes, but you have to assume that the default size is 10pt for this > >> to work (and incidentally the work you have to do is ugly :). > > Enrico> Uh? > > I said ugly beca

Re: Another (small) problem with instant preview in 1.4.0

2006-01-10 Thread Enrico Forestieri
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Enrico> $ identify 0lyxpreview1.png 0lyxpreview1.png PNG 11x11 > Enrico> 11x11+0+0 PseudoClass 14c 186 > > Are you sure? Don't you want the ascent and descent? That info is already provided by dvipng. What is passed back through the metrics file

Re: Another (small) problem with instant preview in 1.4.0

2006-01-09 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> I meant simple to implement in the right way in LyX. Isn't it Enrico> possible just now to get that info through ImageMagick? Enrico> $ identify 0lyxpreview1.png 0lyxpreview1.png PNG 11x11 Enrico> 11x11+0+0 PseudoClass 14c 18

Re: Another (small) problem with instant preview in 1.4.0

2006-01-09 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: >> Yes, but you have to assume that the default size is 10pt for this >> to work (and incidentally the work you have to do is ugly :). Enrico> Uh? I said ugly because adding things and then removing them is ugly :) >> This will br

Re: Another (small) problem with instant preview in 1.4.0

2006-01-09 Thread Enrico Forestieri
Angus Leeming <[EMAIL PROTECTED]> writes: > > Enrico Forestieri wrote: > > >> I suspect that there is a way to output in the .log file what is the > >> height of, say, a 'x' in math mode, and use this information to scale > >> the preview to that it fits the height of a 'x' in lyx default font. >

Re: Another (small) problem with instant preview in 1.4.0

2006-01-09 Thread Angus Leeming
Enrico Forestieri wrote: >> I suspect that there is a way to output in the .log file what is the >> height of, say, a 'x' in math mode, and use this information to scale >> the preview to that it fits the height of a 'x' in lyx default font. > > This would definitely be the right approach, and wo

Re: Another (small) problem with instant preview in 1.4.0

2006-01-09 Thread Enrico Forestieri
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > Enrico> The problem I am referring to here is different. By trial and > Enrico> error I found that for a given "Screen DPI" and "Zoom %" set > Enrico> in Tools->Preferences, th

Re: Another (small) problem with instant preview in 1.4.0

2006-01-09 Thread Enrico Forestieri
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > I see. That patch has not been committed to cvs, no? Could you please add it > to the above bugzilla report, so that it will not be lost? Done. > Yes, I can reproduce that. You should open a separate report for it on > bugzilla and add your pa

Re: Another (small) problem with instant preview in 1.4.0

2006-01-09 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> The problem I am referring to here is different. By trial and Enrico> error I found that for a given "Screen DPI" and "Zoom %" set Enrico> in Tools->Preferences, there exist a magical value for Enrico> \preview_scale_factor by

Re: Another (small) problem with instant preview in 1.4.0

2006-01-08 Thread Juergen Spitzmueller
Enrico Forestieri wrote: > Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > > could this be bug 2167? If yes, could you get Bo Peng testing your patch? > > http://bugzilla.lyx.org/show_bug.cgi?id=2167 > > Hi Jürgen, > > no, it is not the same. The patch for bug 2167 is buried in the patch you > c

Re: Another (small) problem with instant preview in 1.4.0

2006-01-08 Thread Enrico Forestieri
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > could this be bug 2167? If yes, could you get Bo Peng testing your patch? > http://bugzilla.lyx.org/show_bug.cgi?id=2167 Hi Jürgen, no, it is not the same. The patch for bug 2167 is buried in the patch you can find in this thread: http://thread.

Re: Another (small) problem with instant preview in 1.4.0

2006-01-08 Thread Juergen Spitzmueller
Enrico Forestieri wrote: > However, when the latex font size is changed in Document->Settings, > this change is not reflected in the LyX window but it is for the > images generated by dvipng, so the images turn out having the wrong > size and alignment. Hi Enrico, could this be bug 2167? If yes,

Another (small) problem with instant preview in 1.4.0

2006-01-07 Thread Enrico Forestieri
Hi all! In 1.4.0 dvipng is used by default for generating instant preview images of math formulas. One has to adjust preview_scale_factor in the preference file in order to have a correct size and alignment for the images. However, when the latex font size is changed in Document->Settings, this c