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, there exist a magical value for > Enrico> \preview_scale_factor by which all previewed images line up > Enrico> correctly with the surrounding text. But, if you change the > Enrico> latex font size in Document->Settings, the dimension of the > Enrico> previewed images, and thus their alignment, change, whereas > Enrico> the text surrounding the images is not affected by the change > Enrico> in latex font size (11pt, 12pt). > > 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 :).
Uh? > This will > break for slides classes like foils or beamer, won't it? I don't think so, Jean-Marc. It is about how things are displayed on screen. If the text on screen is insensitive to a change in the latex font size, the previewed images should also be insensitive. > 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 would also obsolete preview_scale_factor, but I suspect that it is not that simple to implement... -- Enrico